/* ** j###t ########## #### #### ** j###t ########## #### #### ** j###T "###L J###" ** ######P' ########## ######### ** ######k, ########## T######T ** ####~###L #### ** #### q###L ########## .##### ** #### \###L ########## #####" ** ** $Id: Sun.java,v 1.1 1997/07/28 11:33:59 subtle Exp subtle $ ** ** Class History ** ** Date Name Description ** ---------|------------|----------------------------------------------- ** 28Jul97 subtle created ** */ package key.terminals; import java.util.Enumeration; import java.util.StringTokenizer; import key.*; /** * This class defines the basic abstract implementation of * a terminal type. It's specific to a TelnetConnection, * since the other (custom) terminals will need changes at * a much higher level. */ public class Sun extends Terminal { String ourNames[] = { "sun" }; public Sun() { super(); names = ourNames; } public String codeLookup( char code ) { switch( code ) { case 'h': case 'H': return( "\033[1m" ); case 'n': case 'N': normal = true; return( "\033[m" ); } return( "" ); } public String clearScreen() { return( "\014" ); } public String beep() { return( new Character( (char) 7 ).toString() ); } }