%PDF- %PDF-
Direktori : /usr/local/share/emacs/27.2/lisp/obsolete/ |
Current File : //usr/local/share/emacs/27.2/lisp/obsolete/terminal.elc |
;ELC ;;; Compiled ;;; in Emacs version 27.2 ;;; with all optimizations. ;;; This file uses dynamic docstrings, first added in Emacs 19.29. ;;; This file does not contain utf-8 non-ASCII characters, ;;; and so can be loaded in Emacs versions earlier than 23. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (byte-code "\300\301!\210\302\303\304\305\306\307%\210\310\311\312\313\314\315\306\303&\210\310\316\317\320\314\321\306\303&\210\310\322\317\323\314\321\306\303&\210\310\324\325\326\314\327\306\303&\207" [require ehelp custom-declare-group terminal nil "Terminal emulator for Emacs." :group terminals custom-declare-variable terminal-escape-char 30 "All characters except for this are passed verbatim through the\nterminal-emulator. This character acts as a prefix for commands\nto the emulator program itself. Type this character twice to send\nit through the emulator. Type ? after typing it for a list of\npossible commands.\nThis variable is local to each terminal-emulator buffer." :type character terminal-scrolling t "If non-nil, the terminal-emulator will losingly `scroll' when output occurs\npast the bottom of the screen. If nil, output will win and `wrap' to the top\nof the screen.\nThis variable is local to each terminal-emulator buffer." boolean terminal-more-processing "If non-nil, do more-processing.\nThis variable is local to each terminal-emulator buffer." terminal-redisplay-interval 5000 "Maximum number of characters which will be processed by the\nterminal-emulator before a screen redisplay is forced.\nSet this to a large value for greater throughput,\nset it smaller for more frequent updates but overall slower\nperformance." integer] 8) (defvar terminal-more-break-insertion "*** More break -- Press space to continue ***") (defvar terminal-meta-map nil) (byte-code "\204 \302 \303 \304\305#\210 )\302\207" [terminal-meta-map map make-sparse-keymap define-key [t] te-pass-through] 4) (defvar terminal-map nil) (byte-code "\204# \303 \304 \305\303 #\210\304 \306\307#\210\304 \310\311#\210\304 \312\n#\210 )\303\207" [terminal-map map terminal-meta-map make-sparse-keymap define-key [menu-bar] [t] te-pass-through [switch-frame] handle-switch-frame ""] 4) (defvar terminal-escape-map nil) (byte-code "\204j \304 \305 \306\307#\210\310\n\311H\312X\203( \305 \n\313#\210\n\311\n\311HTI\210\202 )\305 \314\315#\210\305 \316\317#\210\305 \320\321#\210\305 \322\323#\210\305 \324\325#\210\305 \326\327#\210\305 \330\331#\210\305 \332\333#\210\305 \334\335#\210\305 \336!\335#\210 )\304\207" [terminal-escape-map map s help-char make-sparse-keymap define-key [t] undefined "0" 0 57 digit-argument "b" switch-to-buffer "o" other-window "e" te-set-escape-char "\f" redraw-display "" te-flush-pending-output "m" te-toggle-more-processing "x" te-escape-extended-command "w" te-edit "?" te-escape-help char-to-string] 4) (defvar te-escape-command-alist nil) (byte-code "\204 \301\302\207" [te-escape-command-alist (("Set Escape Character" . te-set-escape-char) ("Edit" . te-edit) ("Refresh" . redraw-display) ("Record Output" . te-set-output-log) ("Photo" . te-set-output-log) ("Tofu" . te-tofu) ("Stuff Input" . te-stuff-string) ("Flush Pending Output" . te-flush-pending-output) ("Enable More Processing" . te-enable-more-processing) ("Disable More Processing" . te-disable-more-processing) ("Scroll at end of page" . te-do-scrolling) ("Wrap at end of page" . te-do-wrapping) ("Switch To Buffer" . switch-to-buffer) ("Other Window" . other-window) ("Kill Buffer" . kill-buffer) ("Help" . te-escape-help) ("Set Redisplay Interval" . te-set-redisplay-interval)) nil] 1) (defvar terminal-more-break-map nil) (byte-code "\2040 \303 \304 \305\306#\210\304 \307\n!\310#\210\304 \311\312#\210\304 \313\314#\210\304 \315\316#\210\304 \317\320#\210 )\303\207" [terminal-more-break-map map help-char make-sparse-keymap define-key [t] te-more-break-unread char-to-string te-more-break-help " " te-more-break-resume "\f" redraw-display "" te-more-break-flush-pending-output " " te-more-break-advance-one-line] 4) (defvar te-process nil) (defvar te-log-buffer nil) (defvar te-height nil) (defvar te-width nil) (defvar te-more-count nil) (defvar te-redisplay-count nil) (defvar te-pending-output nil) (defvar te-more-old-point nil) (defvar te-more-old-local-map nil) (defvar te-more-old-filter nil) (defvar te-more-old-mode-line-format nil) (defvar te-pending-output-info nil) #@51 Prefix used for terminal type names for Terminfo. (defconst te-terminal-name-prefix "emacs-em" (#$ . 4522)) #@69 Directory used for run-time terminal definition files for Terminfo. (defconst te-terminfo-directory (byte-code "\301\302\303\"!\207" [temporary-file-directory file-name-as-directory expand-file-name "emacs-terminfo"] 4) (#$ . 4636)) (defvar te-terminal-name nil) (defalias 'te-escape #[nil "\306\307 \310 \311\216\312!\210\313!\210\314\f\203# \315\316\317\320!\321\f!#\202) \315\322\317\320!\"!)\323\324!\210\n;\203I \n\325\326 \"\230\203I \327\330 )\202U \331\n\"\211\205U \332\n!+\207" [global local s terminal-escape-map current-prefix-arg terminal-escape-char nil current-local-map current-global-map #[nil "\302!\210\303 !\207" [global local use-global-map use-local-map] 2] use-global-map use-local-map read-key-sequence format "Emacs Terminal escape[%s for help]> %d " substitute-command-keys "\\<terminal-escape-map>\\[te-escape-help]" prefix-numeric-value "Emacs Terminal escape[%s for help]> " message "" make-string 1 -259 te-pass-through lookup-key call-interactively last-command-event] 6 nil nil]) #@73 Provide help on commands available after terminal-escape-char is typed. (defalias 'te-escape-help #[nil "\302\303!\210\304!\305\306!)\207" [terminal-escape-char char message "Terminal emulator escape help..." single-key-description with-electric-help #[nil "\305\306\307\211\211\211%!\210\305\310\311!!\210\305\306\312\313\314 \315#\314#!\210\316\317\n!\320\"\211\203] \321@A!\2060 \322\323\324\f\"\203? \325\f\326\211\224#\305\327!\210\305@@!\210\305\330!\210\305\f!\210\331\332!\210)A\211\204' )\333\207" [char terminal-escape-map te-escape-command-alist l doc princ format "Terminal-emulator escape, invoked by \"%s\"\nType \"%s\" twice to send a single \"%s\" through.\n\nOther chars following \"%s\" are interpreted as follows:\n" substitute-command-keys "\\{terminal-escape-map}\n" "\nSubcommands of \"%s\" (%s)\n" where-is-internal te-escape-extended-command t sort copy-sequence #[(a b) "@ @\231\207" [a b] 2] documentation "Not documented" string-match "\n" substring 0 " \"" "\":\n " write-char 10 nil] 8]] 2 (#$ . 5668) nil]) (defalias 'te-escape-extended-command #[nil "\304\305\306 \307\304$)\211\205: \3102: \n\227 \2058 \n@@\227\230\2030 \311\310\312@A!\"\210\202 A\211\204 \307)0)\207" [completion-ignore-case te-escape-command-alist c l t completing-read "terminal command: " nil foo throw call-interactively] 6 nil nil]) (defalias 'te-escape-extended-command-unread #[nil "\301\302 !\244\303 \207" [unread-command-events listify-key-sequence this-command-keys te-escape-extended-command] 2 nil nil]) #@48 Change the terminal-emulator escape character. (defalias 'te-set-escape-char #[(c) "\303 \nU\203 \304\202 \305\306\n!\306 !#\210\n\211)\207" [terminal-escape-char o c message "\"%s\" is the escape char" "\"%s\" is now the escape; \"%s\" passes through" single-key-description] 5 (#$ . 7221) "cSet escape character to: "]) #@151 Read a string to send to through the terminal emulator as though that string had been typed on the keyboard. Very poor man's file transfer protocol. (defalias 'te-stuff-string #[(string) "\302 \"\207" [te-process string process-send-string] 3 (#$ . 7555) "sStuff string: "]) #@55 Record output from the terminal emulator in a buffer. (defalias 'te-set-output-log #[(name) "\203\n \302\232\203 \303\304\305!\207\306!\204' r\307!q\210\310 \210\311p!\210\312 \210)\306!\304\313\314 !\"\207" [name te-log-buffer "" nil message "Output logging off." get-buffer get-buffer-create fundamental-mode buffer-disable-undo erase-buffer "Recording terminal emulator output into buffer \"%s\"" buffer-name] 4 (#$ . 7838) (list (if te-log-buffer nil (read-buffer "Record output in buffer: " (format "%s output-log" (buffer-name (current-buffer))) nil)))]) #@25 Discontinue output log. (defalias 'te-tofu #[nil "\300\301!\207" [te-set-output-log nil] 2 (#$ . 8413) nil]) (defalias 'te-toggle #[(sym arg) " \247\204\n \202! \302U\203 J?\202! \303W\203 \304\202! \305L\207" [sym arg 1 0 nil t] 3]) (defalias 'te-toggle-more-processing #[(arg) "\303\304\301\"\203\f \305\202 \306!\210 \205 \307\211\207" [arg terminal-more-processing te-more-count message te-toggle "More processing on" "More processing off" -1] 4 nil "p"]) (defalias 'te-toggle-scrolling #[(arg) "\301\302\303\"\203\f \304\202 \305!\207" [arg message te-toggle terminal-scrolling "Scroll at end of page" "Wrap at end of page"] 4 nil "p"]) #@30 Enable ** MORE ** processing (defalias 'te-enable-more-processing #[nil "\300\301!\207" [te-toggle-more-processing t] 2 (#$ . 9074) nil]) #@31 Disable ** MORE ** processing (defalias 'te-disable-more-processing #[nil "\300\301!\207" [te-toggle-more-processing nil] 2 (#$ . 9218) nil]) #@30 Scroll at end of page (yuck) (defalias 'te-do-scrolling #[nil "\300\301!\207" [te-toggle-scrolling t] 2 (#$ . 9366) nil]) #@38 Wrap to top of window at end of page (defalias 'te-do-wrapping #[nil "\300\301!\207" [te-toggle-scrolling nil] 2 (#$ . 9494) nil]) #@202 Set the maximum interval (in output characters) between screen updates. Set this number to large value for greater throughput, set it smaller for more frequent updates (but overall slower performance. (defalias 'te-set-redisplay-interval #[(arg) "\303]\211\304\211\207" [arg terminal-redisplay-interval te-redisplay-count 1 0] 3 (#$ . 9632) "NMax number of output chars between redisplay updates: "]) (put 'te-more-break-unread 'suppress-keymap t) (defalias 'te-more-break-unread #[nil " =\203\n \304\305!\207\306\307\310!\311 #\210\312\313 \210\314\315 )\207" [last-input-event terminal-escape-char te-more-count terminal-more-processing call-interactively te-escape message "Continuing from more break (\"%s\" typed, %d chars output pending...)" single-key-description te-pending-output-length 259259 te-more-break-unwind nil te-pass-through] 4 nil nil]) #@77 Proceed past the **MORE** break, allowing the next page of output to appear (defalias 'te-more-break-resume #[nil "\300\301!\210\302 \207" [message "Continuing from more break" te-more-break-unwind] 2 (#$ . 10503) nil]) #@74 Provide help on commands available in a terminal-emulator **MORE** break (defalias 'te-more-break-help #[nil "\300\301!\210\302\303!\210\304\305!\207" [message "Terminal-emulator more break help..." sit-for 0 with-electric-help #[nil "\301\302!\210\301\303\304\305\306\307#\310\306!#!\210\301\311\312!!\210\301\313!\210\314\207" [terminal-more-break-map princ "Terminal-emulator more break.\n\n" format "Type \"%s\" (te-more-break-resume)\n%s\n" where-is-internal te-more-break-resume t documentation substitute-command-keys "\\{terminal-more-break-map}\n" "Any other key is passed through to the program\nrunning under the terminal emulator and disables more processing until\nall pending output has been dealt with." nil] 7]] 2 (#$ . 10729) nil]) #@75 Allow one more line of text to be output before doing another more break. (defalias 'te-more-break-advance-one-line #[nil "\301\302 \207" [te-more-count 1 te-more-break-unwind] 1 (#$ . 11485) nil]) #@129 Discard any output which has been received by the terminal emulator but not yet processed and then proceed from the more break. (defalias 'te-more-break-flush-pending-output #[nil "\300 \210\301 \207" [te-more-break-unwind te-flush-pending-output] 1 (#$ . 11691) nil]) #@89 Discard any as-yet-unprocessed output which has been received by the terminal emulator. (defalias 'te-flush-pending-output #[nil "A\204 \302\303!\207\304 \302\305 \"\210\306\307\310 \"D\311 \210\312\313!\210\314\306!)\207" [te-pending-output length message "(There is no output pending)" te-pending-output-length "Flushing %d chars of pending output" 0 format "\n*** %d chars of pending output flushed ***\n" te-update-pending-output-display te-process-output nil sit-for] 4 (#$ . 11966) nil]) #@198 Character is passed to the program running under the terminal emulator. One characters is treated specially: the terminal escape character (normally C-^) lets you type a terminal emulator command. (defalias 'te-pass-through #[nil " =\203\n \305\306!\2079\203 \307N\203 \307N\250\203. \310\311\"\312U\204. \313\310\314\"\\\250\203L \n\203@ A\204@ \315\316!\210\317\f\320\321\"\"\210\322\323!\207\324\325\326!\"\207" [last-input-event terminal-escape-char terminal-more-processing te-pending-output te-process call-interactively te-escape ascii-character logand 134217728 0 128 127 te-set-more-count nil process-send-string make-string 1 te-process-output t message "Function key `%s' ignored" single-key-description] 5 (#$ . 12471) nil]) (defalias 'te-set-window-start #[nil "\303p!\211\205 \304!?\206= `eZ\nT\245Y\203# \305e\"\202= d`Z\nT\245Y\203<