Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.os.linux.development.system > #498
| Newsgroups | comp.os.linux.development.system |
|---|---|
| Date | 2013-04-01 03:12 -0700 |
| References | <71fc1777-d2e7-4717-8ff9-9f92819bc368@googlegroups.com> <42ae02cf-c0b6-4159-b827-bb5dc91c3f1a@googlegroups.com> <1bd2uggu0q.fsf@snowball.wb.pfeifferfamily.net> |
| Message-ID | <01e70dbd-39dd-4818-9f8c-964a4a778f97@googlegroups.com> (permalink) |
| Subject | Re: I wanna know the name of the signal that will appear while i press arrow key.. |
| From | Chrisshia <anguslinszz@gmail.com> |
On Saturday, March 30, 2013 10:52:53 PM UTC-4, Joe Pfeiffer wrote: > Chrisshia <anguslinszz@gmail.com> writes: > > > > > On Saturday, March 30, 2013 8:40:53 AM UTC-4, Chrisshia wrote: > > >> > > > > > > i just wanna know what signal will send out while i press arrow keys... > > > > Of course, you won't get a signal -- the signals are defined in the > > signal(7) man page. What you will get depends on what you're doing; in > > general it'll be an input on stdin or a keypress. > > > > If you're on a text console or in a shell window, it'll put the > > following on stdin for you to read: > > > > up: ^[[A > > down: ^[[B > > right: ^[[C > > left: ^[[D > > > > (following the usual convention of using ^[ to mean the escape > > character) > > > > If you're getting input using the curses library, they get mapped to > > constants named KEY_UP, KEY_DOWN, KEY_RIGHT, and KEY_LEFT. > > > > If you're writing an X application, it'll depend on the toolkit you're > > using. I found what looks like a good description of how it's done in > > GTK+ at http://www.gtkforums.com/viewtopic.php?t=182 thank you very much..the answer is overall..i can learn many things from it..
Back to comp.os.linux.development.system | Previous | Next — Previous in thread | Find similar
I wanna know the name of the signal that will appear while i press arrow key.. Chrisshia <anguslinszz@gmail.com> - 2013-03-30 05:40 -0700
Re: I wanna know the name of the signal that will appear while i press arrow key.. Chrisshia <anguslinszz@gmail.com> - 2013-03-30 07:03 -0700
Re: I wanna know the name of the signal that will appear while i press arrow key.. Joe Pfeiffer <pfeiffer@cs.nmsu.edu> - 2013-03-30 20:52 -0600
Re: I wanna know the name of the signal that will appear while i press arrow key.. Chrisshia <anguslinszz@gmail.com> - 2013-04-01 03:12 -0700
csiph-web