feat(libs): Prise en compte de tmux dans la fonction term_change_title

This commit is contained in:
Xavier Logerais 2025-03-27 11:35:46 +00:00
parent 5b0012ffc1
commit 2aaf279c9e

View File

@ -1,7 +1,6 @@
#!/bin/bash #!/bin/bash
function term_change_title function term_change_title {
{
case $TERM in case $TERM in
# Change the window title of X terminals # Change the window title of X terminals
xterm* | rxvt* | urxvt* | Eterm) xterm* | rxvt* | urxvt* | Eterm)
@ -9,7 +8,7 @@ function term_change_title
;; ;;
# Change the window title of screen terminals # Change the window title of screen terminals
screen*) screen* | tmux*)
echo -ne "\033k${1}\033\\" echo -ne "\033k${1}\033\\"
;; ;;
esac esac