Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
531789e4
Commit
531789e4
authored
Dec 14, 2015
by
Marc Cornellà
Browse files
Merge pull request #4628 from moyamo/master
Default to using terminfo to set the terminal title
parents
bd384a06
71deb745
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/termsupport.zsh
View file @
531789e4
...
...
@@ -28,6 +28,14 @@ function title {
if
[[
"
$TERM_PROGRAM
"
==
"iTerm.app"
]]
;
then
print
-Pn
"
\e
]2;
$2
:q
\a
"
# set window name
print
-Pn
"
\e
]1;
$1
:q
\a
"
# set tab name
else
# Try to use terminfo to set the title
# If the feature is available set title
if
[[
-n
"
$terminfo
[fsl]"
]]
&&
[[
-n
"
$terminfo
[tsl]"
]]
;
then
echoti tsl
print
-Pn
"
$1
"
echoti fsl
fi
fi
;;
esac
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment