On Tue, 1 Apr 2003 16:18, Andy Eager wrote:No problem getting the scan codes, I find that Tab & Shift-Tab both give me 0x09 quit nicely.
Hi all,
I am writing some code using ncurses and would like to be able to distinguish between: Tab-Key Shift Tab-Key
I have tried using getch in both keypad and normal mode but all I seem to get back is 0x09 (normal tab)
So far only tried it with TERM=linux and TERM=xterm, but you'd think they would have back-tab functionality.
Thanks,
Andy
Hi Andy,
You can use 'od' to check keyscan codes. I used it to modify the termcap file.
What I want is something other than 0x09 for Shift-Tab.
Looks like terminfo (replacement for termcap by the look of it) allows me to define what I want but the syntax for it looks quite daunting!!
(sendmail for the keyboard!!!)
Andy
Thanks for your help
-- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
