readCharExt

HC Communication Receivers readCharExt
readChar rCE

readCharExt
rCE


If the read stream is the keyboard and special keys like the arrow keys are typed, then rc returns char 255 and a consecutive call to readCharExt returns the extended char value.

Output is the extended char value as an integer number.

Example:

to keyptest
	forever
	[	if key?
		[	c=readchar
			ifelse c == char 255
			[	c=readCharExt
				(pr "ext c)
			]
			[	(pr rawASCII c c)
			]
		]
	]
end

Examples:

References:

readChar rCE