[Top][All Lists]

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

Re: possible bug

From: Thomas Dickey
Subject: Re: possible bug
Date: Thu, 19 Feb 2009 19:59:58 -0500
User-agent: Mutt/1.5.18 (2008-05-17)

> Before we exit curses mode the key sequence that we display for the
> right arrow key is \EOC, after endwin and refresh is called what gets
> displayed for the same key is \E[C.

It's obscure, but debatable whether it's a bug.

ncurses turns the terminal keypad mode off in endwin, but doesn't
resume the keypad mode until it prepares to read a character via

That's done (implicitly) to make initialization a little more
efficient (escape sequences are written as needed).

There's no direct way to force that to be reset, other than by using
the private function _nc_keypad (whose interface does change over

If you're not insistent that it's using select() followed by read(),
you could do

        nodelay(stdscr, TRUE);

and read the data via getch().

Thomas E. Dickey <address@hidden>

Attachment: signature.asc
Description: Digital signature

reply via email to

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