207 lines
6.1 KiB
HTML
207 lines
6.1 KiB
HTML
<HTML>
|
|
<HEAD>
|
|
<TITLE>mass:werk termlib</TITLE>
|
|
|
|
<STYLE TYPE="text/css">
|
|
body,p,a,td {
|
|
font-family: courier,fixed,swiss,sans-serif;
|
|
font-size: 12px;
|
|
color: #cccccc;
|
|
}
|
|
.lh13 {
|
|
line-height: 13px;
|
|
}
|
|
.lh15 {
|
|
line-height: 15px;
|
|
}
|
|
pre {
|
|
font-family: courier,fixed,swiss,sans-serif;
|
|
font-size: 12px;
|
|
color: #ccffaa;
|
|
line-height: 15px;
|
|
}
|
|
.prop {
|
|
font-family: courier,fixed,swiss,sans-serif;
|
|
color: #bbee99;
|
|
font-size: 12px;
|
|
line-height: 15px;
|
|
}
|
|
h1 {
|
|
font-family: courier,fixed,swiss,sans-serif;
|
|
font-size: 16px;
|
|
color: #cccccc;
|
|
}
|
|
a,a:link,a:visited {
|
|
text-decoration: none;
|
|
color: #77dd11;
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
color: #77dd11;
|
|
}
|
|
a:active {
|
|
text-decoration: underline;
|
|
color: #dddddd;
|
|
}
|
|
|
|
@media print {
|
|
body { background-color: #ffffff; }
|
|
body,p,a,td {
|
|
font-family: courier,fixed,swiss,sans-serif;
|
|
font-size: 12px;
|
|
color: #000000;
|
|
}
|
|
.lh13 {
|
|
line-height: 13px;
|
|
}
|
|
.lh15 {
|
|
line-height: 15px;
|
|
}
|
|
pre,.prop {
|
|
font-family: courier,fixed,swiss,sans-serif;
|
|
font-size: 12px;
|
|
color: #000000;
|
|
line-height: 15px;
|
|
}
|
|
h1 {
|
|
font-family: courier,fixed,swiss,sans-serif;
|
|
font-size: 16px;
|
|
color: #000000;
|
|
}
|
|
a,a:link,a:visited {
|
|
text-decoration: none;
|
|
color: #000000;
|
|
}
|
|
a:hover {
|
|
text-decoration: underline;
|
|
color: #000000;
|
|
}
|
|
a:active {
|
|
text-decoration: underline;
|
|
color: #000000;
|
|
}
|
|
}
|
|
</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"><A NAME="top"></A>
|
|
|
|
<TABLE BORDER="0" CELLSPACING="20" CELLPADDING="0" ALIGN="center">
|
|
<TR>
|
|
<TD NOWRAP>termlib.js home</TD>
|
|
<TD>|</TD>
|
|
<TD NOWRAP><A HREF="multiterm_test.html">multiple terminal test</A></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" WIDTH="700" ALIGN="center">
|
|
<TR><TD>
|
|
<H1>mass:werk termlib.js</H1>
|
|
</TD></TR>
|
|
<TR><TD CLASS="lh13">
|
|
The JavaScript library "termlib.js" provides a `Terminal' object, which
|
|
facillitates a simple and object oriented approach to generate and control a
|
|
terminal-like interface for web services.<BR><BR>
|
|
|
|
"termlib.js" features direct keyboard input and powerful output methods
|
|
for multiple and simultanious instances of the `Terminal' object.<BR><BR>
|
|
|
|
The library was written with the aim of simple usage and a maximum of compatibility
|
|
with minimal foot print in the global namespace.<BR><BR><BR>
|
|
|
|
|
|
A short example:<BR>
|
|
<PRE>
|
|
var term = new Terminal( {handler: termHandler} );
|
|
term.open();
|
|
|
|
function termHandler() {
|
|
this.newLine();
|
|
var line = this.lineBuffer;
|
|
if (line != "") {
|
|
this.write("You typed: "+line);
|
|
}
|
|
this.prompt();
|
|
}
|
|
</PRE>
|
|
</TD></TR>
|
|
<TR><TD CLASS="lh13">
|
|
<B>License</B><BR><BR>
|
|
|
|
This JavaScript-library is <U>free for private and academic use</U>.
|
|
Please include a readable copyright statement and a backlink to <http://www.masswerk.at> in the
|
|
web page. The library should always be accompanied by the "readme.txt" and the sample HTML-documents.<BR><BR>
|
|
|
|
The term "private use" includes any personal or non-commercial use, which is not related
|
|
to commercial activites, but excludes intranet, extranet and/or public net applications
|
|
that are related to any kind of commercial or profit oriented activity.<BR><BR>
|
|
|
|
For commercial use see <<A HREF="http://www.masswerk.at/" TARGET="_blank">http://www.masswerk.at</A>> for contact information.
|
|
</TD></TR>
|
|
<TR><TD CLASS="lh13">
|
|
<B>Distribution</B><BR><BR>
|
|
|
|
This JavaScript-library may be distributed freely as long it is distributed together with the "readme.txt" and the sample HTML-documents and this document.<BR><BR>
|
|
|
|
Any changes to the library should be commented and be documented in the readme-file.<BR>
|
|
Any changes must be reflected in the `Terminal.version' string as "Version.Subversion (compatibility)".
|
|
</TD></TR>
|
|
<TR><TD CLASS="lh13">
|
|
<B>Disclaimer</B><BR><BR>
|
|
|
|
This software is distributed AS IS and in the hope that it will be useful, but WITHOUT ANY
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
PURPOSE. The entire risk as to the quality and performance of the product is borne by the
|
|
user. No use of the product is authorized hereunder except under this disclaimer.
|
|
</TD></TR>
|
|
<TR><TD CLASS="lh13">
|
|
<B>History</B><BR><BR>
|
|
|
|
This library evolved from the terminal script "TermApp" ((c) N. Landsteiner 2003) and is in its
|
|
current form a down scaled spinn-off of the "JS/UIX" project. (JS/UIX is not a free software by now.)
|
|
c.f.: <<A HREF="http://www.masswerk.at/jsuix/" TARGET="_blank">http://www.masswerk.at/jsuix</A>><BR><BR>
|
|
|
|
For version history: see the <A HREF="readme.txt">readme.txt</A>.
|
|
</TD></TR>
|
|
<TR><TD CLASS="lh13">
|
|
<BR>
|
|
<B>Download</B><BR><BR>
|
|
Be sure to have read the license information and the disclamer and that you are willing to respect copyrights.<BR><BR>
|
|
|
|
<SPAN CLASS="prop">Download:</SPAN> <A HREF="termlib.zip">termlib.zip</A> (~ 40 KB, incl. docs)<BR><BR>
|
|
Current version is "1.07 (original)".<BR>
|
|
The files are now provided with line breaks in format <CRLF>.<BR>
|
|
|
|
</TD></TR>
|
|
<TR><TD CLASS="lh13">
|
|
<B>Author</B><BR><BR>
|
|
© Norbert Landsteiner 2003-2005<BR>
|
|
mass:werk – media environments<BR>
|
|
<A HREF="http://www.masswerk.at/" TARGET="_blank">http://www.masswerk.at</A>
|
|
</TD></TR>
|
|
<TR><TD CLASS="lh13">
|
|
<BR>
|
|
Author's note:<BR>
|
|
Please do not contact me on questions of simple usage. There is an extensive documentation (readme.txt) including plenty of sample code that should provide all information you need.
|
|
</TD></TR>
|
|
<TR><TD CLASS="lh13">
|
|
<BR>
|
|
<A HREF="#top">> top of page</A>
|
|
</TD></TR>
|
|
<TR><TD CLASS="lh13">
|
|
|
|
</TD></TR>
|
|
</TABLE>
|
|
|
|
<DIV ID="termDiv" STYLE="position:absolute; top:20px; left:100px;"></DIV>
|
|
|
|
</BODY>
|
|
</HTML> |