Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat <<EOF
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
- <html>
- <head>
- <style type="text/css" media="screen">
- /* <![CDATA[ */
- * {
- margin:0;
- padding:0;
- }
- body {
- background:black;
- color:white;
- font: 11px "Consolas", monospace;
- padding:10px;
- }
- /* ]]> */
- </style>
- <script type="text/javascript">
- function unixify(arg) {
- // double Escaped because this is a shell script
- var cmd = "osascript -e 'tell the application \\"TextMate\\" to insert \\""+ arg +"\\"'&>/dev/null &";
- var res = TextMate.system(cmd, null).outputString;
- document.getElementById("history").innerText += cmd+'\n';
- document.getElementById("result").innerText = res;
- window.location.hash = "result";
- false
- }
- </script>
- <title></title>
- <style type="text/css">
- input.c1 {width:100%;}
- </style>
- </head>
- <body>
- <pre id="history"></pre>
- <form onsubmit="unixify(document.getElementById('command').value);return false">
- <input type="text" name="command" value="howdy!" id="command" class="c1">
- </form>
- <hr>
- <pre id="result"></pre>
- </body>
- </html>
- EOF
Add Comment
Please, Sign In to add comment