02-19-04 07:34 AM
Hi all
on a linux 2.4.18 I'm using ncurses for a vt220-terminal-program and
want it to replay from prevoulsly recorded keyins:
ncursesProg < keyin.
This is no problem for ascii-chars but KEY_CODES must be input in the
proper vt220-esc-sequence.
Currently I manually convert the KEY_CODES back to vt220-escape
sequences, e.g. KEY_F1 \0411 is converted back to \033OP and so on.
By manually I mean that I check the result of getch() if it's KEY_CODE_YES.
I wonder if there would'nt be an easier methode.
Thanks 4 reading and hints,
Wolf
[ Post a follow-up to this message ]
|