Commit 08328b1e authored by Rob Swindell's avatar Rob Swindell

Remove the old Java Telnet app that we haven't used - in a decade?

parent a866c314
Pipeline #205 passed with stage
in 17 minutes and 52 seconds
The Java(tm) Telnet Applet
There are still some bugs we know of and we will draw attention to during
development. Take a look at http://www.first.gmd.de/persons/leo/java/Telnet
from time to time to get new versions or mail to leo@first.gmd.de to get
notified of new versions.
Report bugs to leo@first.gmd.de stating the Operating System you use plus
the Web browser or Applet Viewer version. Attach the java console log if
possible.
Known BUGS:
* There is still a bug when you try to resize the window too much.
SYMPTOMS: The font/screen rssize gets switched off and the font
is set to default
WORKAROUND: None yet.
* Redraw problems on Win* platforms.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
<HTML>
<HEAD>
<TITLE>The JAVA Telnet Applet: Test drive</TITLE>
</HEAD>
<H1>The JAVA Telnet Applet: Test drive</H1>
<P>&copy; 1996, 97 <A HREF="mailto:leo@first.gmd.de">Matthias L. Jugel</A>,
<A HREF="mailto:msmeissn@cip.informatik.uni-erlangen.de">Marcus
Mei&szlig;ner</A>
<P>
<CENTER>
<TABLE BORDER>
<APPLET CODE="CharDisplayTest.class" WIDTH=600 HEIGHT=480> </APPLET>
</TABLE>
</HTML>
/**
* CharDisplayTest
* --
* $Id: CharDisplayTest.java,v 1.1.1.1 2005/09/25 22:40:20 rswindell Exp $
* $timestamp: Mon Feb 17 20:11:20 1997 by Matthias L. Jugel :$
*
* This file is part of "The Java Telnet Applet".
*
* This is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* "The Java Telnet Applet" is distributed 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. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this software; see the file COPYING. If not, write to the
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
* Boston, MA 02111-1307, USA.
*/
import java.applet.Applet;
import java.awt.Button;
import java.awt.Panel;
import java.awt.Event;
import java.awt.FlowLayout;
import java.awt.BorderLayout;
import java.awt.Choice;
import java.awt.TextField;
import java.awt.Font;
import display.CharDisplay;
/**
* CharDisplayTest -- a test applet to show the display/CharDisplay features
* --
* @version $Id: CharDisplayTest.java,v 1.1.1.1 2005/09/25 22:40:20 rswindell Exp $
* @author Matthias L. Jugel, Marcus Meiner
*/
public class CharDisplayTest extends Applet
{
CharDisplay display = new CharDisplay(80, 24, "Courier", 14);
Panel buttons = new Panel();
Button info = new Button("Information");
Button chars = new Button("Character Table");
Button attr = new Button("Attributes");
Choice fonts = new Choice();
TextField from = new TextField("0", 4);
public void init()
{
setLayout(new BorderLayout());
fonts.addItem("Helvetica");
fonts.addItem("TimesRoman");
fonts.addItem("Courier");
fonts.addItem("Dialog");
fonts.addItem("DialogInput");
fonts.addItem("ZapfDingBats");
fonts.addItem("default");
buttons.add(info);
buttons.add(chars);
buttons.add(attr);
buttons.add(fonts);
buttons.add(from);
add("North", buttons);
display.setResizeStrategy(CharDisplay.RESIZE_FONT);
add("Center", display);
Info();
}
public boolean handleEvent(Event evt)
{
if(evt.target == info) { Info(); return true; }
if(evt.target == chars) { CharacterTable(); return true; }
if(evt.target == attr) { Attributes(); return true; }
if(evt.id == Event.ACTION_EVENT &&
(evt.target == fonts || evt.target == from))
{
remove(display);
display = new CharDisplay(80, 24, fonts.getSelectedItem(), 12);
add("Center", display);
CharacterTable();
layout();
return true;
}
return false;
}
private void Clear()
{
display.deleteArea(0, 0, 80, 24);
}
private void Info()
{
Clear();
display.putString(4, 1, "CharDisplay.class Information", CharDisplay.INVERT);
display.putString(4, 3, "Version: "+display.version, CharDisplay.BOLD);
display.putString(4, 5, "This class implements several hardware features needed to implement");
display.putString(4, 6, "a video terminal.");
display.putString(4, 7, "This includes simple operations, such as putting and inserting single");
display.putString(4, 8, "characters or strings on the screen, character attributes and colors.");
display.putString(4, 9, "Special features like inserting lines, scrolling text up or down and");
display.putString(4,10, "defining scrollareas help implementing terminal emulations.");
display.redraw();
}
private void CharacterTable()
{
int ch = (new Integer(from.getText())).intValue();
Clear();
display.putString( 4, 1, "Character Table", CharDisplay.INVERT);
for(int c = 1; c < 80; c += 6)
for(int l = 3; l < 23; l++)
{
display.putString(c, l, ""+ch, CharDisplay.INVERT);
display.putChar(c+4, l, (char)ch++);
}
display.markLine(3, 20);
display.redraw();
}
private void Attributes()
{
int c = 4, l = 8;
Clear();
display.putString( 4, 1, "Character attributes", CharDisplay.INVERT);
display.putString( 4, 3, "Normal", CharDisplay.NORMAL);
display.putString(22, 3, "Bold", CharDisplay.BOLD);
display.putString(40, 3, "Underline", CharDisplay.UNDERLINE);
display.putString(58, 3, "Invert", CharDisplay.INVERT);
display.putString( 4, 5, "Black", 1 << 3 | 8 << 7);
display.putString(13, 5, "Red", 2 << 3);
display.putString(22, 5, "Green", 3 << 3);
display.putString(31, 5, "Yellow", 4 << 3);
display.putString(40, 5, "Blue", 5 << 3);
display.putString(49, 5, "Magenta", 6 << 3);
display.putString(58, 5, "Cyan", 7 << 3);
display.putString(67, 5, "LightGray", 8 << 3);
for(int bg = 1; bg <= 8; bg++)
{
for(int fg = 1; fg <= 8; fg++)
{
for(int a = 0; a <= 7; a++)
{
display.putChar(c++, l, '@', (fg << 3) | (bg << 7) | a);
display.redraw();
}
c++;
}
l += 2; c = 4;
}
}
}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Wed Jun 16 11:44:31 CEST 1999 -->
<TITLE>
All Classes
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">
<FONT size="+1" ID="FrameHeadingFont">
<B>All Classes</B></FONT>
<BR>
<TABLE BORDER="0" WIDTH="100%">
<TR>
<TD NOWRAP><FONT ID="FrameItemFont"><A HREF="appWrapper.html" TARGET="classFrame">appWrapper</A>
<BR>
<A HREF="modules/BSXModule.html" TARGET="classFrame">BSXModule</A>
<BR>
<A HREF="modules/ButtonBar.html" TARGET="classFrame">ButtonBar</A>
<BR>
<A HREF="display/CharDisplay.html" TARGET="classFrame">CharDisplay</A>
<BR>
<A HREF="CharDisplayTest.html" TARGET="classFrame">CharDisplayTest</A>
<BR>
<A HREF="modules/Module.html" TARGET="classFrame"><I>Module</I></A>
<BR>
<A HREF="modules/MudConnector.html" TARGET="classFrame">MudConnector</A>
<BR>
<A HREF="proxy.html" TARGET="classFrame">proxy</A>
<BR>
<A HREF="modules/Script.html" TARGET="classFrame">Script</A>
<BR>
<A HREF="display/SoftFont.html" TARGET="classFrame">SoftFont</A>
<BR>
<A HREF="socket/StatusPeer.html" TARGET="classFrame"><I>StatusPeer</I></A>
<BR>
<A HREF="telnet.html" TARGET="classFrame">telnet</A>
<BR>
<A HREF="socket/TelnetIO.html" TARGET="classFrame">TelnetIO</A>
<BR>
<A HREF="socket/TelnetWrapper.html" TARGET="classFrame">TelnetWrapper</A>
<BR>
<A HREF="display/Terminal.html" TARGET="classFrame">Terminal</A>
<BR>
<A HREF="display/TerminalHost.html" TARGET="classFrame"><I>TerminalHost</I></A>
<BR>
<A HREF="modules/TextLabel.html" TARGET="classFrame">TextLabel</A>
<BR>
<A HREF="socket/TimedOutException.html" TARGET="classFrame">TimedOutException</A>
<BR>
<A HREF="display/vt320.html" TARGET="classFrame">vt320</A>
<BR>
</FONT></TD>
</TR>
</TABLE>
</BODY>
</HTML>
This diff is collapsed.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Wed Jun 16 11:44:31 CEST 1999 -->
<TITLE>
: Deprecated List
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <FONT ID="NavBarFont1">Package</FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <FONT ID="NavBarFont1">Class</FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="overview-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Deprecated</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV&nbsp;
&nbsp;NEXT</FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
<A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="deprecated-list.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<CENTER>
<H2>
<B>Deprecated API</B></H2>
</CENTER>
<HR>
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_bottom"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_bottom_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <FONT ID="NavBarFont1">Package</FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <FONT ID="NavBarFont1">Class</FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="overview-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Deprecated</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;PREV&nbsp;
&nbsp;NEXT</FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
<A HREF="index.html" TARGET="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="deprecated-list.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
</BODY>
</HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Wed Jun 16 11:44:34 CEST 1999 -->
<TITLE>
: Class SoftFont
</TITLE>
<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
</HEAD>
<BODY BGCOLOR="white">
<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A>
<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=2 BGCOLOR="#EEEEFF" ID="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A>
<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
<TR ALIGN="center" VALIGN="top">
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../overview-summary.html"><FONT ID="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-summary.html"><FONT ID="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#FFFFFF" ID="NavBarCell1Rev"> &nbsp;<FONT ID="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="package-tree.html"><FONT ID="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../deprecated-list.html"><FONT ID="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../index-all.html"><FONT ID="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
<TD BGCOLOR="#EEEEFF" ID="NavBarCell1"> <A HREF="../help-doc.html"><FONT ID="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
</TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>
<TR>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../display/CharDisplay.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../display/Terminal.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" ID="NavBarCell2"><FONT SIZE="-2">
<A HREF="../index.html" TARGET="_top"><B>FRAMES</B></A> &nbsp;
&nbsp;<A HREF="SoftFont.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
SUMMARY: &nbsp;INNER&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" ID="NavBarCell3"><FONT SIZE="-2">
DETAIL: &nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->
<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
display</FONT>
<BR>
Class SoftFont</H2>
<PRE>
java.lang.Object
|
+--<B>display.SoftFont</B>
</PRE>
<HR>
<DL>
<DT>public class <B>SoftFont</B><DT>extends java.lang.Object</DL>
<P>
<HR>
<P>
<!-- ======== INNER CLASS SUMMARY ======== -->
<!-- =========== FIELD SUMMARY =========== -->
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<A NAME="constructor_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE><B><A HREF="../display/SoftFont.html#SoftFont()">SoftFont</A></B>()</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->
<A NAME="method_summary"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../display/SoftFont.html#drawChar(java.awt.Graphics, char, int, int, int, int)">drawChar</A></B>(java.awt.Graphics&nbsp;g,
char&nbsp;c,
int&nbsp;x,
int&nbsp;y,
int&nbsp;cw,
int&nbsp;ch)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../display/SoftFont.html#inSoftFont(char)">inSoftFont</A></B>(char&nbsp;c)</CODE>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" ID="TableSubHeadingColor">
<TD><B>Methods inherited from class java.lang.Object</B></TD>
</TR>
<TR BGCOLOR="white" ID="TableRowColor">
<TD><CODE>clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait</CODE></TD>
</TR>
</TABLE>
&nbsp;
<P>
<!-- ============ FIELD DETAIL =========== -->
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<A NAME="constructor_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Constructor Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="SoftFont()"><!-- --></A><H3>
SoftFont</H3>
<PRE>
public <B>SoftFont</B>()</PRE>
<DL>
</DL>
<!-- ============ METHOD DETAIL ========== -->
<A NAME="method_detail"><!-- --></A>
<TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" ID="TableHeadingColor">
<TD COLSPAN=1><FONT SIZE="+2">
<B>Method Detail</B></FONT></TD>
</TR>
</TABLE>
<A NAME="inSoftFont(char)"><!-- --></A><H3>
inSoftFont</H3>
<PRE>
public boolean <B>inSoftFont</B>(char&nbsp;c)</PRE>
<DL>
</DL>
<HR>
<A NAME="drawChar(java.awt.Graphics, char, int, int, int, int)"><!-- --></A><H3>
drawChar</H3>