.\"
.\" Author: Thomas E. Dickey 1997
.\"
-.\" $Id: define_key.3x,v 1.44 2024/05/18 20:04:21 tom Exp $
-.TH define_key 3X 2024-05-18 "ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@" "Library calls"
+.\" $Id: define_key.3x,v 1.50 2024/07/27 19:43:41 tom Exp $
+.TH define_key 3X 2024-07-27 "ncurses @NCURSES_MAJOR@.@NCURSES_MINOR@" "Library calls"
.
.de bP
.ie n .IP \(bu 4
.I definition
of
.B NULL
-removes any existing one
+removes any existing binding from
.IR key-code "."
Similarly,
a non-positive
.I key-code
-removes any existing bindings for
-.IR definition "."
+removes an existing binding for
+.IR definition ","
+if any.
.SH RETURN VALUE
.B \%define_key
returns
NetBSD
.I curses
since 2.0 (2004) supports
-.BR \%define_key "."
+.IR \%define_key "."
.SH AUTHORS
Thomas Dickey
.SH SEE ALSO
-\fB\%ncurses\fP(3X),
-\fB\%keyok\fP(3X),
-\fB\%key_defined\fP(3X),
+\fB\%curses\fP(3X),
\fB\%keybound\fP(3X),
\fB\%keyok\fP(3X),
+\fB\%key_defined\fP(3X),
\fB\%terminfo\fP(5)