Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #6696
| From | crankypuss <no@email.thanks> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: ncurses on Linux how to capture F1 key? |
| Date | 2012-07-31 04:43 -0600 |
| Organization | NewsGuy - Unlimited Usenet $19.95 |
| Message-ID | <jv8ctg01e3r@news6.newsguy.com> (permalink) |
| References | <jutra212bev@news6.newsguy.com> <juufm301b7q@news3.newsguy.com> <50a5726e-f706-4a98-8f47-e6644422f14f@googlegroups.com> <jv0jmp12jel@news7.newsguy.com> <jv6l7u$4at$2@news.xmission.com> |
On 07/30/2012 12:53 PM, Richard wrote: > [Please do not mail me a copy of your followup] > > crankypuss <no@email.thanks> spake the secret code > <jv0jmp12jel@news7.newsguy.com> thusly: > >> On the non-GUI login the F1 key is readily available. >> >> Other keys, like ctl-C and ctl-alt-D are firmly bound. > > If you're using curses, you need to put the terminal in 'cbreak' mode. > From the man pages: > > "The cbreak routine disables line buffering and erase/kill > character-processing (interrupt and flow control characters are > unaffected), making characters typed by the user immediately available > to the program. The nocbreak routine returns the terminal to normal > (cooked) mode." I've been using cbreak mode since day-1 or at least day-1.5 It seems clear at this point that layers running "below" ncurses are limiting its usefulness by taking over certain keys for their cutsie menus and so forth. I had hoped that there was some even-lower-level Linux system facility that nurses could use to get some control back but apparently not, apparently I'll need to go on some quest to find out who the heck "owns" the terminal and see how things can be dealt with more usefully. I might need to entirely abandon ncurses as useless for my purposes and work through the fugliness of html since at least browsers serve up a level of cross-system consistency. But I really don't want to give up the key-by-key responsiveness that ncurses in cbreak mode provides, and I really don't want to deal with the security issues of having a local apache server involved in a lower-level utility's interface. Thanks to all those who attempted to help.
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