chiark
/
gitweb
/
~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e1ec1ac
)
dot/shell-rc: Write the various control sequences to the terminal explicitly.
author
Mark Wooding
<mdw@distorted.org.uk>
Sat, 25 Apr 2020 01:21:03 +0000
(
02:21
+0100)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sat, 25 Apr 2020 01:21:03 +0000
(
02:21
+0100)
dot/shell-rc
patch
|
blob
|
blame
|
history
diff --git
a/dot/shell-rc
b/dot/shell-rc
index 0b6e94bc738f3f6ebb591d17146d2903ed684217..55a245f291faf9d4ad98541b1d27f1cb272bee39 100644
(file)
--- a/
dot/shell-rc
+++ b/
dot/shell-rc
@@
-146,11
+146,11
@@
__mdw_set_prompt () {
esac
}
esac
}
-__mdw_xterm_precmd () { printf "
\e
]2;%s@%s:%s – %s
\e
\\" "$USER" "$__mdw_host" "$PWD" "$__mdw_shell"; }
-__mdw_xterm_preexec () { printf "
\e
]2;%s@%s:%s – %s
\e
\\" "$USER" "$__mdw_host" "$PWD" "$1"; }
+__mdw_xterm_precmd () { printf
>/dev/tty
"
\e
]2;%s@%s:%s – %s
\e
\\" "$USER" "$__mdw_host" "$PWD" "$__mdw_shell"; }
+__mdw_xterm_preexec () { printf
>/dev/tty
"
\e
]2;%s@%s:%s – %s
\e
\\" "$USER" "$__mdw_host" "$PWD" "$1"; }
-__mdw_screen_precmd () { printf "
\e
k%s
\e
\\" "$__mdw_shell"; }
-__mdw_screen_preexec () { printf "
\e
k%s
\e
\\" "$1"; }
+__mdw_screen_precmd () { printf
>/dev/tty
"
\e
k%s
\e
\\" "$__mdw_shell"; }
+__mdw_screen_preexec () { printf
>/dev/tty
"
\e
k%s
\e
\\" "$1"; }
if [ -t 0 ]; then
case ${STY+t},${__mdw_precmd_hook+t},${__mdw_preexec_hook+t},${TERM} in
if [ -t 0 ]; then
case ${STY+t},${__mdw_precmd_hook+t},${__mdw_preexec_hook+t},${TERM} in