key0-96/
key0-96/doc/key/
key0-96/doc/key/credits/
key0-96/doc/key/developers/
key0-96/doc/key/developers/resources/
key0-96/setup/caves/
key0-96/setup/help/
key0-96/setup/ruins/
key0-96/src/
key0-96/src/commands/
key0-96/src/events/
key0-96/src/hack/
key0-96/src/sql/
key0-96/src/swing/
key0-96/src/talker/forest/
key0-96/src/talker/objects/
key0-96/src/terminals/
/*
**               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() );
	}
}