From fd287e2775cf5ae52668a7d0b4aa0421c7bc6648 Mon Sep 17 00:00:00 2001 From: Kévin Le Gouguec Date: Tue, 8 Nov 2016 18:48:21 +0100 Subject: (m) Use literals instead of octal values "\E" means "the escape character", and "\a" means "bell". References: bash(1) console_codes(4) --- .bashprompt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.bashprompt') diff --git a/.bashprompt b/.bashprompt index d32dbf4..2f90c2a 100644 --- a/.bashprompt +++ b/.bashprompt @@ -38,7 +38,7 @@ __set-title () fi fi - echo -ne "\033]2;${title}\007" + echo -ne "\E]2;${title}\a" } # In order to know how much space PS1 takes, Bash needs us to delimit @@ -74,7 +74,7 @@ __fontify () shift output=$(__start-nonprinting) - output+='\033[' + output+='\E[' for ((i=1; i<=$#; i++)) do @@ -92,7 +92,7 @@ __fontify () output+="${text}" output+=$(__start-nonprinting) - output+='\033[0m' + output+='\E[0m' output+=$(__end-nonprinting) echo -en "${output}" -- cgit v1.2.3