From: Petr M. <mi...@ph...> - 2004-05-28 15:00:03
|
Currently, interactive terminals map keycodes to ascii values of 'a' .. 'Z', or to values above 1000, like: enum { GP_FIRST_KEY = 1000, GP_BackSpace, GP_Tab, GP_Linefeed, ... } The enclosed patch splits this group of "gnuplot" keycodes into two groups: 1. group with "usual keycodes", 2. group with "other keycodes" (=what remains after removing "usual keycodes"). There are the following "usual" keycodes: GP_BackSpace = 0x08, GP_Tab = 0x09, GP_Return = 0x0D, GP_Escape = 0x1B, GP_Delete = 127, Do you notice yet other keycode is missing? The patch does effect any current functionality, but helps together with Ethan's "pause mouse key" implementation such as "mousekeys_17may2004.patch", where command "pause mouse key; show var" returns something you expect from DOS keycodes and mainly for compatibility to ginput.m in Octave. --- PM |