Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
3bf5f17a
Commit
3bf5f17a
authored
Jan 20, 1994
by
Richard M. Stallman
Browse files
(enable-flow-control-on): Do nothing if no TERM.
parent
e6faba7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
lisp/flow-ctrl.el
lisp/flow-ctrl.el
+7
-5
No files found.
lisp/flow-ctrl.el
View file @
3bf5f17a
...
...
@@ -102,11 +102,13 @@ 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
)
;; Strip off hyphen and what follows
(
while
(
setq
hyphend
(
string-match
"[-_][^-_]+$"
term
))
(
setq
term
(
substring
term
0
hyphend
)))
(
and
(
member
term
losing-terminal-types
)
(
enable-flow-control
))))
(
if
term
(
progn
;; Strip off hyphen and what follows
(
while
(
setq
hyphend
(
string-match
"[-_][^-_]+$"
term
))
(
setq
term
(
substring
term
0
hyphend
)))
(
and
(
member
term
losing-terminal-types
)
(
enable-flow-control
))))))
(
provide
'flow-ctrl
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment