You should be able to make 'test' and 'testkey'.

Most port hacking should be confined to "hackterm.h".

'test' will draw some X's and O's and slide them around.  Press SPACE
between each screen.

'testkey' will print the virtual keycode for each function key you press.
ESC should get you out - unless VTIME is broken on your system.  It has
been on every system I've ever used, but I report it right away and
it gets fixed after a year or so.  If ESC doesn't work, 'q' will get
you out.  Don't worry, I have a work around for VTIME in tuipeer - it is
only used for ambiguous prefixes.  Ambiguous prefixes don't work very
well over telnet connections even when VTIME works.

'secho' will print the raw bytes sent by terminal keys.

(I really should use select or nap to time ambiguous prefixes.)
