Changeset 14449 for misc/runpugs/data
- Timestamp:
- 10/22/06 01:37:16 (2 years ago)
- Files:
-
- 1 modified
-
misc/runpugs/data/runpugs2.html (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
misc/runpugs/data/runpugs2.html
r14430 r14449 22 22 return true; 23 23 } 24 25 function select_enter() 26 { 27 document.terminal.cmdline.value=document.terminal.hist.options[document.terminal.hist.selectedIndex].value; 28 document.terminal.hist.selectedIndex=0; 29 document.terminal.cmdline.focus(); 30 } 31 32 function select_enter_OFF(myfield,e) 33 { 34 var keycode; 35 if (window.event) keycode = window.event.keyCode; 36 else if (e) keycode = e.which; 37 else return true; 38 if (keycode == 13) 39 { 40 //document.terminal.submit(); 41 document.terminal.cmdline.value=document.terminal.hist.options[document.terminal.hist.selectedIndex].value; 42 return false; 43 } 44 else 45 return true; 46 } 24 47 </script> 25 48 </head> … … 32 55 href="http://feather.perl6.nl/~andara/runpugs/">info page</a>. 33 56 </p> 34 <form style="text-align: center" id="term" name="terminal"57 <form style="text-align: left" id="term" name="terminal" 35 58 action="/cgi-bin/runpugs2" method="POST"> 36 59 37 60 <input type="hidden" name="testing" value="_TESTING_"> 61 <input type="hidden" name="prompt" value="_PROMPTW_"> 38 62 <input type="hidden" name="sessionid" value=""> 39 63 <input type="hidden" name="action" value="runpugs"> 40 <!--<textarea id="history" name="history" rows="1" cols="1" 41 style="overflow: hidden; border: 0px; width: 0px; 42 font-size:0px">_CMD_</textarea>--> 43 <label for="cmd">Interactive Pugs Session<br> 64 <!--<label for="cmd">Interactive Pugs Session<br>--> 65 <h2>Interactive Pugs Session</h2> 66 <div id="termwindow"> 67 <select name="history" id="hist" onChange="select_enter()"><!--onKeyPress="return 68 select_enter(this,event)">--> 69 <option value="">--- Recent commands ---</option> 44 70 _HIST_ 45 <textarea id="cmd" name="cmd" rows="24" cols="80" wrap="virtual" onKeyPress="return submitenter(this,event)"> 46 pugs> 71 </select> 72 <br> 73 <!-- 74 <span class="prompt"> 75 _PROMPTW_ 76 </span> 77 <span class="termfont"> 78 _CMDW_ 79 </span> 80 <br> 81 --> 82 <textarea readonly id="output" name="output" rows="_NROWS_" cols="80" wrap="virtual"> 83 _REPLYW_ 47 84 </textarea> 85 <br> 86 <label for="cmdline"><span class="prompt"> 87 _NPROMPTW_ 88 </span> 89 <input type="text" size="74" id="cmdline" name="cmdline" value="" 90 onKeyPress="return submitenter(this,event)"> 48 91 </label> 92 </div> 49 93 <br> 50 94 <input id="enter" type="submit" value="Submit"> … … 52 96 <script language="JavaScript"> 53 97 document.terminal.enter.style.display='none'; 54 document.terminal.cmd.focus() 98 document.terminal.cmdline.focus() 99 document.terminal.output.scrollTop =document.terminal.output.scrollHeight; 100 if (document.terminal.output.rows==1) { 101 //document.terminal.output.style.height="2ex"; 102 } 55 103 </script> 56 104 <p class="copyright">© Copyright 2006 by Wim Vanderbauwhede</p>
