Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.2:Rings:0-Bootstrap
aaa_base
git-19-1149066a54a372b30b7cbd79cd222e11d96dc984...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File git-19-1149066a54a372b30b7cbd79cd222e11d96dc984.patch of Package aaa_base
From 1149066a54a372b30b7cbd79cd222e11d96dc984 Mon Sep 17 00:00:00 2001 From: Werner Fink <werner@suse.de> Date: Mon, 25 Nov 2019 09:21:42 +0100 Subject: [PATCH] Not all XTerm based emulators do have an terminfo entry Signed-off-by: Werner Fink <werner@suse.de> --- files/etc/bash.bashrc | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git files/etc/bash.bashrc files/etc/bash.bashrc index 36f7db5..e963d7c 100644 --- a/files/etc/bash.bashrc +++ b/files/etc/bash.bashrc @@ -136,14 +136,19 @@ case "$-" in # # Set xterm prompt with short path (last 18 characters) # - if path tput hs 2>/dev/null || path tput -T $TERM+sl hs 2>/dev/null ; then + if path tput hs 2>/dev/null || path tput -T $TERM+sl hs 2>/dev/null || \ + path tput -T ${TERM%%[.-]*}+sl hs 2>/dev/null || \ + [[ $TERM = *xterm* || $TERM = *gnome* || $TERM = *konsole* || $TERM = *xfce* ]] + then # # Mirror prompt in terminal "status line", which for graphical # terminals usually is the window title. KDE konsole in # addition needs to have "%w" in the "tabs" setting, ymmv for # other console emulators. # - if [[ $TERM = *xterm* ]] ; then + if [[ $TERM = *xterm* || $TERM = *gnome* || $TERM = *konsole* || $TERM = *xfce* ]] + then + # https://invisible-island.net/xterm/ctlseqs/ctlseqs.html#h3-Miscellaneous _tsl=$(echo -en '\e]2;') _isl=$(echo -en '\e]1;') _fsl=$(echo -en '\007') @@ -151,6 +156,10 @@ case "$-" in _tsl=$(path tput -T $TERM+sl tsl 2>/dev/null) _isl='' _fsl=$(path tput -T $TERM+sl fsl 2>/dev/null) + elif path tput -T ${TERM%%[.-]*}+sl tsl 2>/dev/null ; then + _tsl=$(path tput -T $TERM+sl tsl 2>/dev/null) + _isl='' + _fsl=$(path tput -T $TERM+sl fsl 2>/dev/null) else _tsl=$(path tput tsl 2>/dev/null) _isl='' -- 2.25.0
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor