[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Infinite loop with define_key() and TERM=xterm
From: |
Thomas Dickey |
Subject: |
Re: Infinite loop with define_key() and TERM=xterm |
Date: |
Tue, 4 Mar 2003 09:06:56 -0500 |
User-agent: |
Mutt/1.2.5i |
On Tue, Mar 04, 2003 at 02:12:42AM -0500, John McCutchan wrote:
> Hello,
>
> I have noticed this bug in ncurses for many years now. Here is a sample
> program that causes ncurses to get into an infinite loop. This only
> happens when TERM=xterm. If TERM=linux it does not cause a problem.
I seem to recall seeing a comment about this before, but overlooked fixing it
(whether for lack of detail, I don't recall).
The problem of course is that "\eO" is a substring of existing key definitions
(and shouldn't be allowed).
> #include <ncurses.h>
>
> int main(int argc, char **argv)
> {
> initscr();
>
> keypad(stdscr, TRUE);
>
> define_key("\eO", 720);
>
> endwin();
> }
--
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net