From 0fe124695afe2adfeb9d3a38655ef4cbcfb8de0f Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 9 Jul 2024 11:23:11 -0300 Subject: Fix: use 'xtitle -q' --- terminal.dot.link | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/terminal.dot.link b/terminal.dot.link index 941c005..3511767 100644 --- a/terminal.dot.link +++ b/terminal.dot.link @@ -15,7 +15,7 @@ TITLE="terminal" # Set terminal title function terminal_title { # Set window title - xtitle $* + xtitle -q $* # Set window title inside screen # http://stackoverflow.com/questions/899609/gnu-screen-run-script-that-sends-commands-to-the-screen-session-it-is-being-run @@ -26,7 +26,7 @@ function terminal_title { # Set window title, standard version #trap 'echo -ne "\e]0;terminal: ${TITLE:-$BASH_COMMAND}\007"' DEBUG -#trap 'xtitle ${TITLE:-$BASH_COMMAND}' DEBUG +#trap 'xtitle -q ${TITLE:-$BASH_COMMAND}' DEBUG # Set window title, special version # @@ -35,8 +35,8 @@ function terminal_title { # it after changing the title so $_ retain it's intended value. # #trap 'last="$_" ; echo -ne "\e]0;terminal: ${TITLE:-$BASH_COMMAND}\007"; true $last' DEBUG -#trap 'last="$_" ; xtitle ${TITLE:-$BASH_COMMAND}; true $last' DEBUG -#trap '_last="$_" ; _command=${BASH_COMMAND#command_prompt} ; xtitle ${_command:-$TITLE}; true $_last' DEBUG +#trap 'last="$_" ; xtitle -q ${TITLE:-$BASH_COMMAND}; true $last' DEBUG +#trap '_last="$_" ; _command=${BASH_COMMAND#command_prompt} ; xtitle -q ${_command:-$TITLE}; true $_last' DEBUG trap '_last="$_" ; _command=${BASH_COMMAND#command_prompt} ; terminal_title ${_command:-$TITLE}; true $_last' DEBUG # Fortune :) -- cgit v1.2.3