Function: terminal-mode
terminal-mode is a byte-compiled function defined in terminal.el.gz.
Signature
(terminal-mode)
Documentation
Set up variables for use with the terminal-emulator.
One should not call this -- it is an internal function of the terminal-emulator
Source Code
;; Defined in /usr/src/emacs/lisp/obsolete/terminal.el.gz
;; This is only separated out from function terminal-emulator
;; to keep the latter a little more manageable.
(defun terminal-mode ()
"Set up variables for use with the terminal-emulator.
One should not call this -- it is an internal function
of the terminal-emulator"
(kill-all-local-variables)
(buffer-disable-undo (current-buffer))
(setq major-mode 'terminal-mode)
(setq mode-name "terminal")
; (make-local-variable 'Helper-return-blurb)
; (setq Helper-return-blurb "return to terminal simulator")
(setq mode-line-process '(":%s"))
(setq buffer-read-only t)
(setq truncate-lines t)
(make-local-variable 'terminal-escape-char)
(setq terminal-escape-char (default-value 'terminal-escape-char))
(make-local-variable 'terminal-scrolling)
(setq terminal-scrolling (default-value 'terminal-scrolling))
(make-local-variable 'terminal-more-processing)
(setq terminal-more-processing (default-value 'terminal-more-processing))
(make-local-variable 'terminal-redisplay-interval)
(setq terminal-redisplay-interval (default-value 'terminal-redisplay-interval))
(make-local-variable 'te-width)
(make-local-variable 'te-height)
(make-local-variable 'te-process)
(make-local-variable 'te-pending-output)
(setq te-pending-output (list 0))
(make-local-variable 'te-saved-point)
(setq te-saved-point (point-min))
(make-local-variable 'te-pending-output-info) ;for the mode line
(setq te-pending-output-info "")
(make-local-variable 'inhibit-quit)
;(setq inhibit-quit t)
(make-local-variable 'te-log-buffer)
(setq te-log-buffer nil)
(make-local-variable 'te-more-count)
(setq te-more-count -1)
(make-local-variable 'te-redisplay-count)
(setq te-redisplay-count terminal-redisplay-interval)
;(use-local-map terminal-mode-map)
;; terminal-mode-hook is called above in function terminal-emulator
)