summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxime Coste <mawww@kakoune.org>2019-06-23 12:05:15 +1000
committerMaxime Coste <mawww@kakoune.org>2019-06-23 12:05:15 +1000
commit2422c2dcd1237f642eb7185920d55fa4248352fb (patch)
tree62418ba048ba3bf680dab6aada206909a5d03810
parent469818c6f920ea710a2af62a79c70270ad95cdf2 (diff)
parentdf03a8850c17e32236c2a94986f9f4c64b27ea5e (diff)
Merge branch 'repl' of https://github.com/codesoap/kakoune
-rw-r--r--rc/windowing/repl/x11.kak4
1 files changed, 3 insertions, 1 deletions
diff --git a/rc/windowing/repl/x11.kak b/rc/windowing/repl/x11.kak
index 54966c2a..908645d5 100644
--- a/rc/windowing/repl/x11.kak
+++ b/rc/windowing/repl/x11.kak
@@ -15,7 +15,9 @@ All optional parameters are forwarded to the new window} \
exit
fi
if [ $# -eq 0 ]; then cmd="${SHELL:-sh}"; else cmd="$@"; fi
- setsid ${kak_opt_termcmd} ${cmd} -t kak_repl_window < /dev/null > /dev/null 2>&1 &
+ # The escape sequence in the printf command sets the terminal's title:
+ setsid ${kak_opt_termcmd} "printf '\e]2;kak_repl_window\a' \
+ && ${cmd}" < /dev/null > /dev/null 2>&1 &
}}
define-command x11-send-text -docstring "send the selected text to the repl window" %{