
When running a terminal emulator containing a kakoune client, it used to still have the server tty as controlling termnal, and so received SIGINT's from the user in it. Termnal emulators then responded by exiting. This is no longer the case.
13 lines
333 B
Plaintext
13 lines
333 B
Plaintext
decl str termcmd %sh{
|
|
if [[ -n "$TMUX" ]]; then
|
|
echo "'tmux split-window -h'"
|
|
else
|
|
echo "'urxvt -e sh -c'"
|
|
fi
|
|
}
|
|
|
|
def new -shell-params %{ nop %sh{
|
|
if (( $# != 0 )); then kakoune_params="-e '$@'"; fi
|
|
setsid ${kak_opt_termcmd} "kak -c ${kak_session} ${kakoune_params}" < /dev/null >& /dev/null &
|
|
}}
|