diff options
Diffstat (limited to 'src/lib/libremessages')
-rwxr-xr-x | src/lib/libremessages | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libremessages b/src/lib/libremessages index 188affd..db2fdde 100755 --- a/src/lib/libremessages +++ b/src/lib/libremessages @@ -112,7 +112,7 @@ flag() { done } -# Usage: term_title This will be the term title +# Usage: term_title MESG [ARGS...] # Sets the terminal title term_title() { [[ $# -ge 1 ]] || panic @@ -121,7 +121,7 @@ term_title() { screen|tmux) fmt='\ek%s\e\\';; xterm*|rxvt*) fmt='\e]0;%s\a';; esac - printf "$fmt" "$*" + printf "$fmt" "$(printf -- "$@")" } # Usage: setup_traps [handler] |