]> gitweb.factorcode.org Git - factor.git/blobdiff - extra/webapps/fjsc/www/termlib/multiterm_test.html
core: Add the shuffler words but without primitives.
[factor.git] / extra / webapps / fjsc / www / termlib / multiterm_test.html
index 0a4e1ec63a7305de30b9ade57164a9ab65c0594b..23aaaefb72b91e6e68b13393b9d16504e05e2852 100644 (file)
-<HTML>\r
-<HEAD>\r
-       <TITLE>termlib Multiple Terminal Test</TITLE>\r
-       <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="termlib.js"></SCRIPT>\r
-\r
-<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">\r
-<!--\r
-\r
-/*\r
-  multiple terminal test for termlib.js\r
-\r
-  (c) Norbert Landsteiner 2003-2005\r
-  mass:werk - media environments\r
-  <http://www.masswerk.at>\r
-\r
-*/\r
-\r
-var term=new Array();\r
-\r
-var helpPage=[\r
-       '%CS%+r Terminal Help %-r%n',\r
-       '  This is just a tiny test for multiple terminals.',\r
-       '  use one of the following commands:',\r
-       '     clear .... clear the terminal',\r
-       '     exit ..... close the terminal (or <ESC>)',\r
-       '     id ....... show terminal\'s id',\r
-       '     switch ... switch to other terminal',\r
-       '     help ..... show this help page',\r
-       '  other input will be echoed to the terminal.',\r
-       ' '\r
-];\r
-\r
-function termOpen(n) {\r
-       if (!term[n]) {\r
-               var y=(n==1)? 70: 280;\r
-               term[n]=new Terminal(\r
-                       {\r
-                               x: 220,\r
-                               y: y,\r
-                               rows: 12,\r
-                               greeting: '%+r +++ Terminal #'+n+' ready. +++ %-r%nType "help" for help.%n',\r
-                               id: n,\r
-                               termDiv: 'termDiv'+n,\r
-                               crsrBlinkMode: true,\r
-                               handler: termHandler,\r
-                               exitHandler: termExitHandler\r
-                       }\r
-               );\r
-               if (term[n]) term[n].open();\r
-       }\r
-       else if (term[n].closed) {\r
-               term[n].open();\r
-       }\r
-       else {\r
-               term[n].focus();\r
-       }\r
-}\r
-\r
-function termHandler() {\r
-       // called on <CR> or <ENTER>\r
-       this.newLine();\r
-       var cmd=this.lineBuffer;\r
-       if (cmd!='') {\r
-               if (cmd=='switch') {\r
-                       var other=(this.id==1)? 2:1;\r
-                       termOpen(other);\r
-               }\r
-               else if (cmd=='clear') {\r
-                       this.clear();\r
-               }\r
-               else if (cmd=='exit') {\r
-                       this.close();\r
-               }\r
-               else if (cmd=='help') {\r
-                       this.write(helpPage);\r
-               }\r
-               else if (cmd=='id') {\r
-                       this.write('terminal id: '+this.id);\r
-               }\r
-               else {\r
-                       this.type('You typed: '+cmd);\r
-                       this.newLine();\r
-               }\r
-       }\r
-       this.prompt();\r
-}\r
-\r
-function termExitHandler() {\r
-       // optional handler called on exit\r
-       // activate other terminal if open\r
-       var other=(this.id==1)? 2:1;\r
-       if ((term[other]) && (term[other].closed==false)) term[other].focus();\r
-}\r
-\r
-//-->\r
-</SCRIPT>\r
-\r
-<STYLE TYPE="text/css">\r
-body,p,a,td {\r
-       font-family: courier,fixed,swiss,sans-serif;\r
-       font-size: 12px;\r
-       color: #cccccc;\r
-}\r
-.lh15 {\r
-       line-height: 15px;\r
-}\r
-.term {\r
-       font-family: courier,fixed,swiss,sans-serif;\r
-       font-size: 12px;\r
-       color: #33d011;\r
-       background: none;\r
-}\r
-.termReverse {\r
-       color: #111111;\r
-       background: #33d011;\r
-}\r
-a,a:link,a:visited {\r
-       text-decoration: none;\r
-       color: #77dd11;\r
-}\r
-a:hover {\r
-       text-decoration: underline;\r
-       color: #77dd11;\r
-}\r
-a:active {\r
-       text-decoration: underline;\r
-       color: #dddddd;\r
-}\r
-\r
-a.termopen,a.termopen:link,a.termopen:visited {\r
-       text-decoration: none;\r
-       color: #77dd11;\r
-       background: none;\r
-}\r
-a.termopen:hover {\r
-       text-decoration: none;\r
-       color: #222222;\r
-       background: #77dd11;\r
-}\r
-a.termopen:active {\r
-       text-decoration: none;\r
-       color: #222222;\r
-       background: #dddddd;\r
-}\r
-\r
-</STYLE>\r
-</HEAD>\r
-\r
-\r
-<BODY BGCOLOR="#222222" LINK="#77dd11" TEXT="#cccccc" ALINK="#dddddd" VLINK="#77dd11"\r
-TOPMARGIN="0" BOTTOMMARGIN="0" LEFTMARGIN="0" RIGHTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">\r
-\r
-<TABLE BORDER="0" CELLSPACING="20" CELLPADDING="0" ALIGN="center">\r
-<TR>\r
-       <TD NOWRAP><A HREF="index.html">termlib.js home</A></TD>\r
-       <TD>|</TD>\r
-       <TD NOWRAP>multiple terminal test</TD>\r
-       <TD>|</TD>\r
-       <TD NOWRAP><A HREF="parser_sample.html">sample parser</A></TD>\r
-       <TD>|</TD>\r
-       <TD NOWRAP><A HREF="faq.html">faq</A></TD>\r
-       <TD>|</TD>\r
-       <TD NOWRAP><A HREF="readme.txt" TITLE="readme.txt (text/plain)">documentation</A></TD>\r
-</TR>\r
-</TABLE>\r
-\r
-<TABLE BORDER="0" CELLSPACING="20" CELLPADDING="0">\r
-       <TR><TD NOWRAP>\r
-               Multiple Terminal Test<BR>&nbsp;\r
-       </TD></TR>\r
-       <TR><TD NOWRAP>\r
-               <A HREF="javascript:termOpen(1)" onfocus="if(this.blur)this.blur();" onmouseover="window.status='terminal 1'; return true" onmouseout="window.status=''; return true" CLASS="termopen">&gt; open terminal 1 &nbsp;</A>\r
-       </TD></TR>\r
-       <TR><TD NOWRAP>\r
-               <A HREF="javascript:termOpen(2)" onfocus="if(this.blur)this.blur();" onmouseover="window.status='terminal 2'; return true" onmouseout="window.status=''; return true" CLASS="termopen">&gt; open terminal 2 &nbsp;</A>\r
-       </TD></TR>\r
-       <TR><TD NOWRAP CLASS="lh15">\r
-               &nbsp;<BR>\r
-               (c) mass:werk,<BR>N. Landsteiner 2003-2005<BR>\r
-               <A HREF="http://www.masswerk.at/" TARGET="_blank">http://www.masswerk.at</A>\r
-       </TD></TR>\r
-</TABLE>\r
-\r
-<DIV ID="termDiv1" STYLE="position:absolute; top:20px; left:100px;"></DIV>\r
-<DIV ID="termDiv2" STYLE="position:absolute; top:20px; left:100px;"></DIV>\r
-\r
-</BODY>\r
+<HTML>
+<HEAD>
+       <TITLE>termlib Multiple Terminal Test</TITLE>
+       <SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript" SRC="termlib.js"></SCRIPT>
+
+<SCRIPT LANGUAGE="JavaScript" TYPE="text/javascript">
+<!--
+
+/*
+  multiple terminal test for termlib.js
+
+  (c) Norbert Landsteiner 2003-2005
+  mass:werk - media environments
+  <http://www.masswerk.at>
+
+*/
+
+var term=new Array();
+
+var helpPage=[
+       '%CS%+r Terminal Help %-r%n',
+       '  This is just a tiny test for multiple terminals.',
+       '  use one of the following commands:',
+       '     clear .... clear the terminal',
+       '     exit ..... close the terminal (or <ESC>)',
+       '     id ....... show terminal\'s id',
+       '     switch ... switch to other terminal',
+       '     help ..... show this help page',
+       '  other input will be echoed to the terminal.',
+       ' '
+];
+
+function termOpen(n) {
+       if (!term[n]) {
+               var y=(n==1)? 70: 280;
+               term[n]=new Terminal(
+                       {
+                               x: 220,
+                               y: y,
+                               rows: 12,
+                               greeting: '%+r +++ Terminal #'+n+' ready. +++ %-r%nType "help" for help.%n',
+                               id: n,
+                               termDiv: 'termDiv'+n,
+                               crsrBlinkMode: true,
+                               handler: termHandler,
+                               exitHandler: termExitHandler
+                       }
+               );
+               if (term[n]) term[n].open();
+       }
+       else if (term[n].closed) {
+               term[n].open();
+       }
+       else {
+               term[n].focus();
+       }
+}
+
+function termHandler() {
+       // called on <CR> or <ENTER>
+       this.newLine();
+       var cmd=this.lineBuffer;
+       if (cmd!='') {
+               if (cmd=='switch') {
+                       var other=(this.id==1)? 2:1;
+                       termOpen(other);
+               }
+               else if (cmd=='clear') {
+                       this.clear();
+               }
+               else if (cmd=='exit') {
+                       this.close();
+               }
+               else if (cmd=='help') {
+                       this.write(helpPage);
+               }
+               else if (cmd=='id') {
+                       this.write('terminal id: '+this.id);
+               }
+               else {
+                       this.type('You typed: '+cmd);
+                       this.newLine();
+               }
+       }
+       this.prompt();
+}
+
+function termExitHandler() {
+       // optional handler called on exit
+       // activate other terminal if open
+       var other=(this.id==1)? 2:1;
+       if ((term[other]) && (term[other].closed==false)) term[other].focus();
+}
+
+//-->
+</SCRIPT>
+
+<STYLE TYPE="text/css">
+body,p,a,td {
+       font-family: courier,fixed,swiss,sans-serif;
+       font-size: 12px;
+       color: #cccccc;
+}
+.lh15 {
+       line-height: 15px;
+}
+.term {
+       font-family: courier,fixed,swiss,sans-serif;
+       font-size: 12px;
+       color: #33d011;
+       background: none;
+}
+.termReverse {
+       color: #111111;
+       background: #33d011;
+}
+a,a:link,a:visited {
+       text-decoration: none;
+       color: #77dd11;
+}
+a:hover {
+       text-decoration: underline;
+       color: #77dd11;
+}
+a:active {
+       text-decoration: underline;
+       color: #dddddd;
+}
+
+a.termopen,a.termopen:link,a.termopen:visited {
+       text-decoration: none;
+       color: #77dd11;
+       background: none;
+}
+a.termopen:hover {
+       text-decoration: none;
+       color: #222222;
+       background: #77dd11;
+}
+a.termopen:active {
+       text-decoration: none;
+       color: #222222;
+       background: #dddddd;
+}
+
+</STYLE>
+</HEAD>
+
+
+<BODY BGCOLOR="#222222" LINK="#77dd11" TEXT="#cccccc" ALINK="#dddddd" VLINK="#77dd11"
+TOPMARGIN="0" BOTTOMMARGIN="0" LEFTMARGIN="0" RIGHTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0">
+
+<TABLE BORDER="0" CELLSPACING="20" CELLPADDING="0" ALIGN="center">
+<TR>
+       <TD NOWRAP><A HREF="index.html">termlib.js home</A></TD>
+       <TD>|</TD>
+       <TD NOWRAP>multiple terminal test</TD>
+       <TD>|</TD>
+       <TD NOWRAP><A HREF="parser_sample.html">sample parser</A></TD>
+       <TD>|</TD>
+       <TD NOWRAP><A HREF="faq.html">faq</A></TD>
+       <TD>|</TD>
+       <TD NOWRAP><A HREF="readme.txt" TITLE="readme.txt (text/plain)">documentation</A></TD>
+</TR>
+</TABLE>
+
+<TABLE BORDER="0" CELLSPACING="20" CELLPADDING="0">
+       <TR><TD NOWRAP>
+               Multiple Terminal Test<BR>&nbsp;
+       </TD></TR>
+       <TR><TD NOWRAP>
+               <A HREF="javascript:termOpen(1)" onfocus="if(this.blur)this.blur();" onmouseover="window.status='terminal 1'; return true" onmouseout="window.status=''; return true" CLASS="termopen">&gt; open terminal 1 &nbsp;</A>
+       </TD></TR>
+       <TR><TD NOWRAP>
+               <A HREF="javascript:termOpen(2)" onfocus="if(this.blur)this.blur();" onmouseover="window.status='terminal 2'; return true" onmouseout="window.status=''; return true" CLASS="termopen">&gt; open terminal 2 &nbsp;</A>
+       </TD></TR>
+       <TR><TD NOWRAP CLASS="lh15">
+               &nbsp;<BR>
+               (c) mass:werk,<BR>N. Landsteiner 2003-2005<BR>
+               <A HREF="http://www.masswerk.at/" TARGET="_blank">http://www.masswerk.at</A>
+       </TD></TR>
+</TABLE>
+
+<DIV ID="termDiv1" STYLE="position:absolute; top:20px; left:100px;"></DIV>
+<DIV ID="termDiv2" STYLE="position:absolute; top:20px; left:100px;"></DIV>
+
+</BODY>
 </HTML>
\ No newline at end of file