gpitcher@decwrl.dec.com (Glenn Pitcher) (08/14/90)
I'm starting to work with curses and have already run into a bit of a problem.. I need to be able to tell the difference between the tab (->) and backtab (<-) keys. I wrote the following piece of code to give me the ascii key codes: in_key = getch(); printf("%X\n",in_key); The code I get from both the forward and backward tab is 0x09. Is there something I'm missing here? Is there mabey another input function I should be using??? I called Sun about this problem (are you guys listening) and about all they could say is that their curses person is out of the office for the week and they don't know a whole lot about it (jeezzz, how much do I pay a month for a service contract???). Thanks in advance, Glenn Pitcher UUCP: {crash,ucsd}!edpmgt!gpitcher Programmer/Analyst & hp-sdd!teamnet!gpitcher Unix Guru in training EDP Management, Inc. * Proud member of Team.Net *
guy@uunet.uu.net (Guy Harris) (08/16/90)
>I'm starting to work with curses and have already run into a bit of a >problem.. I need to be able to tell the difference between the tab (->) >and backtab (<-) keys. At least within a "shelltool" window, there *is* no difference. SHIFT+TAB "sends" a TAB character, just as TAB does. If you want to treat SHIFT+TAB differently from TAB, you'll either have to roll your own terminal emulator, or use the window system directly rather than running a "dumb terminal" program within a "shelltool" (or, if using XView or have SunView source, hack up the tty subwindow code to treat SHIFT+TAB differently from TAB, so that there is a differnce in a "shelltool" window).