Source-Changes-HG archive

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

[src/trunk]: src/lib/libcurses/PSD.doc Added documentation for define_key and...



details:   https://anonhg.NetBSD.org/src/rev/231aebb16829
branches:  trunk
changeset: 538614:231aebb16829
user:      blymn <blymn%NetBSD.org@localhost>
date:      Wed Oct 23 12:17:45 2002 +0000

description:
Added documentation for define_key and keyok
Fixed borkage with getpary.

diffstat:

 lib/libcurses/PSD.doc/fns.doc |  32 +++++++++++++++++++++++++++++++-
 1 files changed, 31 insertions(+), 1 deletions(-)

diffs (63 lines):

diff -r bc00f1a38cb4 -r 231aebb16829 lib/libcurses/PSD.doc/fns.doc
--- a/lib/libcurses/PSD.doc/fns.doc     Wed Oct 23 09:52:37 2002 +0000
+++ b/lib/libcurses/PSD.doc/fns.doc     Wed Oct 23 12:17:45 2002 +0000
@@ -312,6 +312,26 @@
 Save the current terminal modes as the \'not in curses\' state for use with
 .Fn reset_shell_mode .
 .Ds
+.Fn define_key "char *sequence" "int key_symbol" 
+.De
+Assigns the character sequence given in
+.Vn sequence
+to the key symbol
+.Vn key_symbol .
+If 
+.Fn keypad
+has set been set TRUE and the character sequence is found in the input
+stream then the key symbol defined will be returned.  Normally the
+sequences are found in the
+.b termcap
+database but this function allows extensions to be added by the
+application.  If 
+.Vn sequence
+is a NULL pointer then all the sequences associated with
+.Vn key_symbol
+will be removed, including any definitions inserted by
+.b termcap .
+.Ds
 .Fn delch ""
 .De
 Delete the character at the current \*y.
@@ -549,6 +569,7 @@
 window.  If the window is not a subwindow then -1 is returned.
 .Ds
 .Fn getpary "WINDOW *win" "int y" "int x"
+.De
 Is a macro that sets the 
 .Vn y
 and
@@ -561,7 +582,6 @@
 and 
 .Vn x
 will be set to -1.
-.De
 .Ds
 .Fn gettmode ""
 .De
@@ -759,6 +779,16 @@
 interrupt key is pressed.  The default is inherited from the
 terminal settings.
 .Ds
+.Fn keyok "int key_symbol" "bool flag"
+.De
+Controls the recognition of the key symbol
+.Vn key_symbol .
+By setting
+.Vn flag
+to FALSE the recognition of any sequence of characters
+that have been associated with the key symbol will be disabled.
+By default, this flag is TRUE so sequences will be recognised.
+.Ds
 .Fn keypad "WINDOW *win" "int boolf"
 .De
 Sets the boolean flag for interpretation of escape sequences.  If



Home | Main Index | Thread Index | Old Index