Dumb.java

key0-96/src/terminals/Dumb.java · 667 B

From the archive key0-96.tar.bz2

Download the archive   « Back to the archive contents

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 Dumb extends Terminal
{
	String ourNames[] = { "none", "dumb" };
	
	public Dumb()
	{
		super();
		names = ourNames;
	}

	public String codeLookup( char code )
	{
		switch( code )
		{
			case 'n':
			case 'N':
				normal = true;
		}
	
		return( "" );
	}
	
	public String beep()
	{
		return( new Character( (char) 7 ).toString() );
	}
}

Site Stats

Snippets: 1791
Codebases: 571