bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: I don't understand ncurses dealing with control-ARROW


From: Steffen Nurpmeso
Subject: Re: I don't understand ncurses dealing with control-ARROW
Date: Wed, 23 Dec 2015 22:43:06 +0100
User-agent: s-nail v14.8.5-206-gfc8f312-dirty

Hello!

Thomas Dickey <address@hidden> wrote:
 |On Mon, Dec 21, 2015 at 12:24:04PM +0100, Steffen Nurpmeso wrote:
 |> Thomas Dickey <address@hidden> wrote:
 |>|On Thu, Dec 17, 2015 at 10:52:38PM +0100, Steffen Nurpmeso wrote:
 |> 
 |>|> I'm currently rewriting some code that deals with termcap (being
 |>|> out of the question before) and don't actually understand how to
 |>|> get at the control-ARROW etc. modifiers.

 |>|no, it's not interpolated, but all explicit.  You have to add the "-x"
 |>|option of infocmp to see the extended/user-defined capabilities.

 |> unknown as user-defined" (what tic says for -x).  I.e., isn't that
 |> a regular entry?  And: which standard do i have to read to be able
 |> to be enabled to tell so by myself?  (Maybe rethorical question :)

 |I give some background here (in the subsection on "extensible terminfo":
 |
 |http://invisible-island.net/ncurses/tctest.html#history_myself

Indeed this is very interesting reading, thanks for the pointer
and the page as such!

 |and some technical details here:
 |
 |http://invisible-island.net/ncurses/terminfo.src.html#toc-_N_C_U_R_S_\
 |E_S__U_S_E_R-_D_E_F_I_N_A_B_L_E__C_A_P_A_B_I_L_I_T_I_E_S

Until now i was always looking into FreeBSD share/termcap/termcap
when i had questions on such things,
contrib/ncurses/misc/terminfo.src seems to be the better place.

 ...

 |>|I recommend using tigetstr, since tgetstr (termcap) won't handle the
 |>|longer names.

Now i see that terminfo.src explicitly states

  [.]Extended
  # function keys do not use 2-character names, and are available only with
  # terminfo.

And according to the first link this will be portable when used
with tgetent() (itself being "simulated").

 |> It would work.  Good to know.  I've added a note to the manual
 |> that "$ cat" should be used and explained what escape is and how

 |yes... "cat -v" (and control/V) are a good starting point.

-v is not portable (POSIX), but i'll mention it.  Be warned you
are about to be credited for that.
You know i can't give a normal user references as above, even
though that would possibly work for many users that dig that deep
into my thing, it wouldn't work for me regarding them.

And then, finally (note the european-and-beyond 9-1-1 is indeed
112 ^.^), i think taking over the example table from ncurses.faq
into an installed document would be a real improvement.  It would
definetely have saved you from this thread, for example.  What do
you think of the attached patch?

 |> Thanks!  And ciao (and a merry Christmas, too),

--steffen

Attachment: terminfo.tail.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]