X-Git-Url: https://code.delx.au/gnu-emacs/blobdiff_plain/4c14013dbec3a2f130a38e61e885f1e8cc6c325b..9c9e18e8f5b2751615abdf2be357ff6266531c62:/lisp/term/tvi970.el diff --git a/lisp/term/tvi970.el b/lisp/term/tvi970.el index 4476165feb..841d88d4e1 100644 --- a/lisp/term/tvi970.el +++ b/lisp/term/tvi970.el @@ -1,7 +1,6 @@ ;;; tvi970.el --- terminal support for the Televideo 970 -;; Copyright (C) 1992, 2001, 2002, 2003, 2004, 2005, -;; 2006, 2007, 2008, 2009, 2010 Free Software Foundation, Inc. +;; Copyright (C) 1992, 2001-2014 Free Software Foundation, Inc. ;; Author: Jim Blandy ;; Keywords: terminals @@ -28,8 +27,6 @@ ;;; Code: -(eval-when-compile (require 'cl)) - (defvar tvi970-terminal-map (let ((map (make-sparse-keymap))) @@ -96,7 +93,7 @@ "Terminal initialization function for tvi970." ;; Use inheritance to let the main keymap override these defaults. ;; This way we don't override terminfo-derived settings or settings - ;; made in the .emacs file. + ;; made in the init file. (let ((m (copy-keymap tvi970-terminal-map))) (set-keymap-parent m (keymap-parent input-decode-map)) (set-keymap-parent input-decode-map m)) @@ -105,17 +102,19 @@ ;; Should keypad numbers send ordinary digits or distinct escape sequences? (define-minor-mode tvi970-set-keypad-mode - "Set the current mode of the TVI 970 numeric keypad. -In ``numeric keypad mode'', the number keys on the keypad act as -ordinary digits. In ``alternate keypad mode'', the keys send distinct -escape sequences, meaning that they can have their own bindings, + "Toggle alternate keypad mode on TVI 970 keypad. +With a prefix argument ARG, enable the mode if ARG is positive, +and disable it otherwise. If called from Lisp, enable the mode +if ARG is omitted or nil. + +In ``alternate keypad mode'', the keys send distinct escape +sequences, meaning that they can have their own bindings, independent of the normal number keys. -With no argument, toggle between the two possible modes. -With a positive argument, select alternate keypad mode. -With a negative argument, select numeric keypad mode." + +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>"))) -;; arch-tag: c1334cf0-1462-41c3-a963-c077d175f8f0 ;;; tvi970.el ends here