Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #6690
| From | crankypuss <no@email.thanks> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: ncurses on Linux how to capture F1 key? |
| Date | 2012-07-30 05:08 -0600 |
| Organization | NewsGuy - Unlimited Usenet $19.95 |
| Message-ID | <jv5q0a12t86@news4.newsguy.com> (permalink) |
| References | (4 earlier) <jv0jmp12jel@news7.newsguy.com> <jv0mie$ucp$2@dont-email.me> <a7i7agF3sfU1@mid.individual.net> <jv3185016jv@news3.newsguy.com> <jv4n3v$lmo$2@dont-email.me> |
On 07/29/2012 07:13 PM, Jerry Stuckle wrote: > On 7/29/2012 5:54 AM, crankypuss wrote: >> On 07/28/2012 07:21 AM, J.O. Aho wrote: >>> Jerry Stuckle wrote: >>>> On 7/28/2012 7:50 AM, crankypuss wrote: >>>>> On 07/28/2012 05:45 AM, dickey@his.com wrote: >>>>>> On Friday, July 27, 2012 12:29:53 PM UTC-4, crankypuss wrote: >>>>>>> On 07/27/2012 05:00 AM, dickey@his.com wrote: >>>>>>> >>>>>>>> On Friday, July 27, 2012 6:42:09 AM UTC-4, crankypuss wrote: >>>>>>> >>>>>>>>> Using the C interface the incantation is "keypad(stdscr, >>>>>>>>> TRUE)" >>>>>>> >>>>>>>>> >>>>>>> >>>>>>>>> What is the equivalent using the PHP interface to ncurses? >>>>>>> >>>>>>>>> >>>>>>> >>>>>>>>> Pressing F1 just brings up gnome help (running in xterm under >>>>>>>>> ubuntu 11.10). >>>>>>> >>>>>>>> >>>>>>> >>>>>>>> that sounds as if you're using one of the vte-based hacks such as >>>>>>>> gnome-terminal, >>>>>>> >>>>>>>> which hijack some keys - have to fix that by undoing the item in >>>>>>>> their respective >>>>>>> >>>>>>>> setup dialogs. >>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> I'm using "xterm" and also on a cli (non-GUI) login... terminal >>>>>>> type is >>>>>>> >>>>>>> either "xterm" or "linux". Less stuff grabbed as Linux console. >>>>>>> >>>>>>> >>>>>>> >>>>>>> Any additional pointers/keywords I can use to find out more about >>>>>>> >>>>>>> "undoing the item"? >>>>>> >>>>>> On a non-GUI login, I wouldn't expect a help-menu (puzzled there). >>>>>> For xterm in a desktop, I suppose it's possible for the >>>>>> window-manager >>>>>> to have F1 bound (Mac OS X's settings do this with some of the >>>>>> function keys, though I've disabled most of those...). >>>>>> >>>>> >>>>> On the non-GUI login the F1 key is readily available. >>>>> >>>>> Other keys, like ctl-C and ctl-alt-D are firmly bound. >>>>> >>>>> Can you offer any information about how to modify this on Linux? I'm >>>>> relatively new to Linux and don't know where that is controlled. >>>> >>>> Try a Linux newsgroup. >>> >>> Quite bored of crankys posts, so I hope he will not. >> >> That goes both ways. >> >>> I suggest he would >>> read documentation for once, if he had done that he may have read the >>> following: >>> >>> Quoted from the ncurses_programming_howto: >> >> You quote the C-language interface documentation. Take a look at the >> close-to-nonexistent documentation for the PHP interface sometime. >> >>> Normally the terminal driver buffers the characters a user types until a >>> new line or carriage return is encountered. But most programs require >>> that the characters be available as soon as the user types them. The >>> above two functions are used to disable line buffering. The difference >>> between these two functions is in the way control characters like >>> suspend (CTRL-Z), interrupt and quit (CTRL-C) are passed to the program. >>> In the raw() mode these characters are directly passed to the program >>> without generating a signal. In the cbreak() mode these control >>> characters are interpreted as any other character by the terminal >>> driver. >> >> The code is running in cbreak() mode. >> >>> I guess his program is waiting for a return which you don't get when you >>> just press a function key. >>> >>> As he is a gnome2 fan boy, >> >> Jump to fewer conclusions. If I were a gnome2 fanboy I'd be using >> something like GTK+ >> >>> he may need to disable the hot key F1 (if >>> it's possible in gnome2, as mr Havoc was so kind and thought the less >>> configuration options the less confused would the users be, so you can't >>> do half of the stuff you could do in Miguel de Icaza's Gnome). >> >> Indeed, in the Linux newsgroups people "like you" don't even know "if >> it's possible in gnome2". > > People know better than in a PHP newsgroup. > > How many correct answers have you gotten so far? > > But then we've been this route before, and you've been too lazy to try > to find an appropriate newsgroup then, either. I'm all ears Jerry, what is the most appropriate newsgroup of questions about the PHP interface to ncurses?
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
ncurses on Linux how to capture F1 key? crankypuss <no@email.thanks> - 2012-07-27 04:42 -0600
Re: ncurses on Linux how to capture F1 key? dickey@his.com - 2012-07-27 04:00 -0700
Re: ncurses on Linux how to capture F1 key? crankypuss <no@email.thanks> - 2012-07-27 10:29 -0600
Re: ncurses on Linux how to capture F1 key? dickey@his.com - 2012-07-28 04:45 -0700
Re: ncurses on Linux how to capture F1 key? crankypuss <no@email.thanks> - 2012-07-28 05:50 -0600
Re: ncurses on Linux how to capture F1 key? Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-28 08:39 -0400
Re: ncurses on Linux how to capture F1 key? "J.O. Aho" <user@example.net> - 2012-07-28 15:21 +0200
Re: ncurses on Linux how to capture F1 key? Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-28 10:15 -0400
Re: ncurses on Linux how to capture F1 key? crankypuss <no@email.thanks> - 2012-07-29 03:54 -0600
Re: ncurses on Linux how to capture F1 key? "J.O. Aho" <user@example.net> - 2012-07-29 13:31 +0200
Re: ncurses on Linux how to capture F1 key? crankypuss <no@email.thanks> - 2012-07-30 05:07 -0600
Re: ncurses on Linux how to capture F1 key? "J.O. Aho" <user@example.net> - 2012-07-30 18:27 +0200
Re: ncurses on Linux how to capture F1 key? Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-29 21:13 -0400
Re: ncurses on Linux how to capture F1 key? crankypuss <no@email.thanks> - 2012-07-30 05:08 -0600
Re: ncurses on Linux how to capture F1 key? "Peter H. Coffin" <hellsop@ninehells.com> - 2012-07-30 07:09 -0500
Re: ncurses on Linux how to capture F1 key? Jerry Stuckle <jstucklex@attglobal.net> - 2012-07-30 10:39 -0400
Re: ncurses on Linux how to capture F1 key? legalize+jeeves@mail.xmission.com (Richard) - 2012-07-30 18:53 +0000
Re: ncurses on Linux how to capture F1 key? crankypuss <no@email.thanks> - 2012-07-31 04:43 -0600
Re: ncurses on Linux how to capture F1 key? "Peter H. Coffin" <hellsop@ninehells.com> - 2012-07-31 08:03 -0500
Re: ncurses on Linux how to capture F1 key? Norman Peelman <npeelmandog@cfl.rr.com> - 2012-07-31 22:08 -0400
Re: ncurses on Linux how to capture F1 key? crankypuss <no@email.thanks> - 2012-08-01 02:43 -0600
Re: ncurses on Linux how to capture F1 key? Norman Peelman <npeelmandog@cfl.rr.com> - 2012-08-01 07:34 -0400
csiph-web