Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #6693

Re: ncurses on Linux how to capture F1 key?

From "J.O. Aho" <user@example.net>
Newsgroups comp.lang.php
Subject Re: ncurses on Linux how to capture F1 key?
Date 2012-07-30 18:27 +0200
Message-ID <a7nqvaF1dcU1@mid.individual.net> (permalink)
References (5 earlier) <jv0mie$ucp$2@dont-email.me> <a7i7agF3sfU1@mid.individual.net> <jv3185016jv@news3.newsguy.com> <a7kl88F2auU1@mid.individual.net> <jv5ptn02t86@news4.newsguy.com>

Show all headers | View raw


On 30/07/12 13:07, crankypuss wrote:
> On 07/29/2012 05:31 AM, J.O. Aho wrote:

>> There is a short article in the devzone how to use ncurses, the code
>> there has no issues with function keys.
>
> I assume you are referring to:
>      http://devzone.zend.com/173/using-ncurses-in-php/
>
> I notice all the clever line-through semi-corrections there, very cute.
>   In short, it's pablum.  It fails to even *address* the idea of
> function keys, and doesn't mention little details like
> extended-attributes clashing with user-defined colors.

If you do check for which value the variable $y has and compare with the 
value which ncurses thinks a F1 key has (see the key const documentation).

If you still have issues, then see to that your DE don't capture the key.


> So you think I should post the 6700+ lines of partially complete
> interface code I've written to deal with ncurses in civilized fashion,
> plus the dozens (or hundreds) of support routines, *AND* the application
> code on top of that so you can whine about excessive information instead
> of just answering the question asked or ignoring it and going about your
> business?  Not going to happen here, suck it up and deal.

Still your key capturing part of the application ain't 100% of the code 
base, but if you want to paste everything there is pastebin.com and just 
post the link to the paste.


-- 

   //Aho

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


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