2913 (the java keywords)

abstract boolean break byte
case catch char class
const continue default do
double else extends final
finally float for goto
if implements import instanceof
int interface long native
new (null) package private
protected public return short
static super switch synchronized
this throw throws transient
try void volatile while
assert enum strictfp (true)
(false)

() literals

some keys

#

#


the following javaprogram reads any keypress without Enter and its output is the key and its asciivalue in brackets. as precaution jcurses has to be properly set up. ctrl-c or ‘#’ ends the program. only the input is coded, a simple System.out.println serves as output. as processing of the values nearly anything can be imagined.

import jcurses.system.InputChar;
import jcurses.system.Toolkit;

public class readchar3 {
public static void main (String[] args)
{
String st;
char ch;
int i;
st = “”;
ch = ‘ ‘;
i = 0;
while (true)
{
InputChar c = Toolkit.readCharacter();
ch = c.getCharacter();
i = (int) ch;
System.out.print (“you typed ” + ch + “(” + i + “)\n\r”);
// break on ‘#’
if (ch == ‘#’) break;
}
System.out.println (“Programm wird beendet. Verarbeitung kann beginnen.”);
}
}
—-
https://www.minds.com/blog/view/487276494029070336/some-keys
https://minds.com/ewing