Function: enable-flow-control-on
enable-flow-control-on is an autoloaded and byte-compiled function
defined in flow-ctrl.el.gz.
Signature
(enable-flow-control-on &rest LOSING-TERMINAL-TYPES)
Documentation
Enable flow control if using one of a specified set of terminal types.
Use (enable-flow-control-on "vt100" "h19") to enable flow control
on VT-100 and H19 terminals. When flow control is enabled,
you must type C-\ to get the effect of a C-s, and type C-^
to get the effect of a C-q.
Probably introduced at or before Emacs version 19.20.
Source Code
;; Defined in /usr/src/emacs/lisp/flow-ctrl.el.gz
(sleep-for 2))) ; Give user a chance to see message.
;;;###autoload
(defun enable-flow-control-on (&rest losing-terminal-types)
"Enable flow control if using one of a specified set of terminal types.
Use `(enable-flow-control-on \"vt100\" \"h19\")' to enable flow control
on VT-100 and H19 terminals. When flow control is enabled,
you must type C-\\ to get the effect of a C-s, and type C-^
to get the effect of a C-q."
(let ((term (getenv "TERM"))
hyphend)
;; Look for TERM in LOSING-TERMINAL-TYPES.
;; If we don't find it literally, try stripping off words
;; from the end, one by one.
(while (and term (not (member term losing-terminal-types)))
;; Strip off last hyphen and what follows, then try again.
(if (setq hyphend (string-match "[-_][^-_]+$" term))
(setq term (substring term 0 hyphend))
(setq term nil)))
(if term
(enable-flow-control))))