define_key man page seems incorrect

View: New views
2 Messages — Rating Filter:   Alert me  

define_key man page seems incorrect

by Mike Gran :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi-

The man page for define_key says that "The keycode must be greater than
zero, else ERR is returned."

Glancing at the code for define_key, it seems that the determination of
the return value is more complicated than that.

Thanks,

Mike Gran




_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@...
http://lists.gnu.org/mailman/listinfo/bug-ncurses

Re: define_key man page seems incorrect

by Thomas Dickey-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sun, 13 Sep 2009, Mike Gran wrote:

> Hi-
>
> The man page for define_key says that "The keycode must be greater than
> zero, else ERR is returned."
>
> Glancing at the code for define_key, it seems that the determination of
> the return value is more complicated than that.

I see (making a to-do item to document it)

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


_______________________________________________
Bug-ncurses mailing list
Bug-ncurses@...
http://lists.gnu.org/mailman/listinfo/bug-ncurses