diff options
| author | Eric S. Raymond | 1993-04-26 05:15:04 +0000 |
|---|---|---|
| committer | Eric S. Raymond | 1993-04-26 05:15:04 +0000 |
| commit | 54f91c5b0288e867ab69127ed06e816255152a4a (patch) | |
| tree | 5d16b2c1a80405963390c10cc17dfa635d2d8c0a | |
| parent | 10d96c7d2cd742415c5324172df0644c1e739b67 (diff) | |
| download | emacs-54f91c5b0288e867ab69127ed06e816255152a4a.tar.gz emacs-54f91c5b0288e867ab69127ed06e816255152a4a.zip | |
I started to clean this up and make it work under System V, until I hit a wall.
Discussion with Jim Blandy reveals that it can no longer be made to work
properly at all due to changes in Emacs's terminal-control interface. So
it's getting deep-sixed, but these cleanups go in on the outside chance that
we want to revive it someday.
| -rw-r--r-- | lisp/terminal.el | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/lisp/terminal.el b/lisp/terminal.el index 00c419bfa73..6b4739f881a 100644 --- a/lisp/terminal.el +++ b/lisp/terminal.el | |||
| @@ -65,9 +65,7 @@ performance.") | |||
| 65 | (defvar terminal-more-break-insertion | 65 | (defvar terminal-more-break-insertion |
| 66 | "*** More break -- Press space to continue ***") | 66 | "*** More break -- Press space to continue ***") |
| 67 | 67 | ||
| 68 | (defvar terminal-escape-map nil) | ||
| 69 | (defvar terminal-map nil) | 68 | (defvar terminal-map nil) |
| 70 | (defvar terminal-more-break-map nil) | ||
| 71 | (if terminal-map | 69 | (if terminal-map |
| 72 | nil | 70 | nil |
| 73 | (let ((map (make-keymap))) | 71 | (let ((map (make-keymap))) |
| @@ -76,7 +74,7 @@ performance.") | |||
| 76 | ; '(lambda () (interactive) (te-pass-through) (redraw-display))) | 74 | ; '(lambda () (interactive) (te-pass-through) (redraw-display))) |
| 77 | (setq terminal-map map))) | 75 | (setq terminal-map map))) |
| 78 | 76 | ||
| 79 | ;(setq terminal-escape-map nil) | 77 | (defvar terminal-escape-map nil) |
| 80 | (if terminal-escape-map | 78 | (if terminal-escape-map |
| 81 | nil | 79 | nil |
| 82 | (let ((map (make-keymap))) | 80 | (let ((map (make-keymap))) |
| @@ -99,8 +97,7 @@ performance.") | |||
| 99 | (define-key map (char-to-string help-char) 'te-escape-help) | 97 | (define-key map (char-to-string help-char) 'te-escape-help) |
| 100 | (setq terminal-escape-map map))) | 98 | (setq terminal-escape-map map))) |
| 101 | 99 | ||
| 102 | (defvar te-escape-command-alist ()) | 100 | (defvar te-escape-command-alist nil) |
| 103 | ;(setq te-escape-command-alist ()) | ||
| 104 | (if te-escape-command-alist | 101 | (if te-escape-command-alist |
| 105 | nil | 102 | nil |
| 106 | (setq te-escape-command-alist | 103 | (setq te-escape-command-alist |
| @@ -124,7 +121,7 @@ performance.") | |||
| 124 | ("Set Redisplay Interval" . te-set-redisplay-interval) | 121 | ("Set Redisplay Interval" . te-set-redisplay-interval) |
| 125 | ))) | 122 | ))) |
| 126 | 123 | ||
| 127 | ;(setq terminal-more-break-map nil) | 124 | (defvar terminal-more-break-map nil) |
| 128 | (if terminal-more-break-map | 125 | (if terminal-more-break-map |
| 129 | nil | 126 | nil |
| 130 | (let ((map (make-keymap))) | 127 | (let ((map (make-keymap))) |
| @@ -140,6 +137,22 @@ performance.") | |||
| 140 | (setq terminal-more-break-map map))) | 137 | (setq terminal-more-break-map map))) |
| 141 | 138 | ||
| 142 | 139 | ||
| 140 | ;;; Pacify the byte compiler | ||
| 141 | (defvar te-process nil) | ||
| 142 | (defvar te-log-buffer nil) | ||
| 143 | (defvar te-height nil) | ||
| 144 | (defvar te-width nil) | ||
| 145 | (defvar te-more-count nil) | ||
| 146 | (defvar te-redisplay-count nil) | ||
| 147 | (defvar te-pending-output nil) | ||
| 148 | (defvar te-saved-point) | ||
| 149 | (defvar te-more-old-point nil) | ||
| 150 | (defvar te-more-old-local-map nil) | ||
| 151 | (defvar te-more-old-filter nil) | ||
| 152 | (defvar te-more-old-mode-line-format nil) | ||
| 153 | (defvar te-pending-output-info nil) | ||
| 154 | |||
| 155 | |||
| 143 | ;;;; escape map | 156 | ;;;; escape map |
| 144 | 157 | ||
| 145 | (defun te-escape () | 158 | (defun te-escape () |
| @@ -980,7 +993,7 @@ move to start of new line, clear to end of line." | |||
| 980 | (progn (goto-char (point-max)) | 993 | (progn (goto-char (point-max)) |
| 981 | (recenter -1))))))) | 994 | (recenter -1))))))) |
| 982 | 995 | ||
| 983 | (defvar te-stty-string "stty -nl dec echo" | 996 | (defvar te-stty-string "stty -nl erase ^? kill ^u intr ^c echo" |
| 984 | "Shell command to set terminal modes for terminal emulator.") | 997 | "Shell command to set terminal modes for terminal emulator.") |
| 985 | ;; This used to have `new' in it, but that loses outside BSD | 998 | ;; This used to have `new' in it, but that loses outside BSD |
| 986 | ;; and it's apparently not needed in BSD. | 999 | ;; and it's apparently not needed in BSD. |