Function: tvi970-set-keypad-mode
tvi970-set-keypad-mode is an interactive and byte-compiled function
defined in tvi970.el.gz.
Signature
(tvi970-set-keypad-mode &optional ARG)
Documentation
Toggle alternate keypad mode on TVI 970 keypad.
In alternate keypad mode, the keys send distinct escape sequences, meaning that they can have their own bindings, independent of the normal number keys.
When disabled, the terminal enters numeric keypad mode, in which the keypad's keys act as ordinary digits.
This is a minor mode. If called interactively, toggle the
Tvi970-Set-Keypad mode mode. If the prefix argument is
positive, enable the mode, and if it is zero or negative, disable
the mode.
If called from Lisp, toggle the mode if ARG is toggle. Enable
the mode if ARG is nil, omitted, or is a positive number.
Disable the mode if ARG is a negative number.
To check whether the minor mode is enabled in the current buffer,
evaluate (terminal-parameter nil \=tvi970-keypad-numeric)'.
The mode's hook is called both when the mode is enabled and when it is disabled.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/term/tvi970.el.gz
;; Should keypad numbers send ordinary digits or distinct escape sequences?
(define-minor-mode tvi970-set-keypad-mode
"Toggle alternate keypad mode on TVI 970 keypad.
In alternate keypad mode, the keys send distinct escape
sequences, meaning that they can have their own bindings,
independent of the normal number keys.
When disabled, the terminal enters numeric keypad mode, in
which the keypad's keys act as ordinary digits."
:variable (terminal-parameter nil 'tvi970-keypad-numeric)
(send-string-to-terminal
(if (terminal-parameter nil 'tvi970-keypad-numeric) "\e=" "\e>")))