SHA256
6
0
forked from pool/ncurses

Update to ncurses-6.2 patch 20210323

OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=540
This commit is contained in:
2021-03-25 10:27:02 +00:00
committed by Git OBS Bridge
parent ec0900e037
commit a06cda2a9a
5 changed files with 122 additions and 68 deletions

View File

@@ -14,7 +14,7 @@
# Author: Werner Fink <werner@suse.de>
#
typeset -i rep=0 line=0 color=0
typeset -i rep=0 line=0 color=0 hpa=0 ech=0
for s in 0 1 2
do
test -c /proc/$$/fd/$s || { echo "Missing /proc/$$/fd/$s" 1>&2; exit 1; }
@@ -60,6 +60,14 @@ if test -n "$(infocmp -T $TERM -1 | grep "colors#")"
then
let color++
fi
if test -n "$(infocmp -T $TERM -1 | grep "hpa=")"
then
let hpa++
fi
if test -n "$(infocmp -T $TERM -1 | grep "ech=")"
then
let ech++
fi
#
# Restore screen at exit
@@ -147,6 +155,7 @@ tput cup $line 0
tput cvvis
echo -n "OK> "
read -t 5 yesno
tput civis
#
# Could use clear
@@ -170,6 +179,7 @@ then
tput cup $row $col
tput -S <<-!
enacs
civis
smacs
!
if ((color > 0))
@@ -186,15 +196,15 @@ then
do
tput cup $((row+c)) $col
echo -ne ${acsn[0x78]}
((color > 0)) && tput ech $cx
tput hpa $((col+cx+1))
((color > 0 && ech > 0)) && tput ech $cx
((hpa > 0)) && tput hpa $((col+cx+1)) || tput cup $((row+c)) $((col+cx+1))
echo -ne ${acsn[0x78]}
done
tput cup $((row+c)) $col
echo -ne ${acsn[0x6d]}
for ((c=0;c<cx;c++)); do echo -ne ${acsn[0x71]}; done
echo -ne ${acsn[0x6a]}
if ((color > 0))
if ((color > 0 && ech > 0))
then
tput -S <<-!
setab 0
@@ -212,6 +222,16 @@ then
setab 4
setaf 7
!
else
tput rev
for ((c=1;c<5;c++))
do
tput cup $((row+c)) $((col+cx+2))
echo -n " "
done
tput cup $((row+c)) $((col+2))
printf ' %.0s' $(eval echo {1..$((cx+2))})
tput sgr0
fi
tput -S <<-!
rmacs
@@ -223,14 +243,13 @@ then
tput cvvis
echo -n "OK> "
read -t 5 yesno
tput civis
else
echo Terminal TERM=$TERM has no ASC Line Graphics. Done
tput -S <<-!
cup 0 0
sgr0
ed
rmcup
!
echo Terminal TERM=$TERM has no ASC Line Graphics.
tput cvvis
echo -n "OK> "
read -t 5 yesno
tput civis
fi
#
@@ -272,6 +291,7 @@ then
!
fi
tput enacs
tput civis
echo -ne ${ul}
for ((c=0;c<$cx;c++)); do echo -ne ${hl}; done
echo -ne ${ur}
@@ -279,15 +299,15 @@ then
do
tput cup $((row+c)) $col
echo -ne ${vl}
((color > 0)) && tput ech $cx
tput hpa $((col+cx+1))
((color > 0 && ech > 0)) && tput ech $cx
((hpa > 0)) && tput hpa $((col+cx+1)) || tput cup $((row+c)) $((col+cx+1))
echo -ne ${vl}
done
tput cup $((row+c)) $col
echo -ne ${dl}
for ((c=0;c<$cx;c++)); do echo -ne ${hl}; done
echo -ne ${dr}
if ((color > 0))
if ((color > 0 && ech > 0))
then
tput -S <<-!
setab 0
@@ -305,6 +325,16 @@ then
setab 4
setaf 7
!
else
tput rev
for ((c=1;c<5;c++))
do
tput cup $((row+c)) $((col+cx+2))
echo -n " "
done
tput cup $((row+c)) $((col+2))
printf ' %.0s' $(eval echo {1..$((cx+2))})
tput sgr0
fi
tput cup $((row+2)) $((col+4))
echo -n "<UTF-8 BOX>"
@@ -313,14 +343,13 @@ then
tput cvvis
echo -n "OK> "
read -t 5 yesno
tput civis
else
echo Terminal TERM=$TERM has no ASC Line Graphics. Done
tput -S <<-!
cup 0 0
sgr0
ed
rmcup
!
echo Terminal TERM=$TERM has no UTF-8 Line Graphics.
tput cvvis
echo -n "OK> "
read -t 5 yesno
tput civis
fi
#
@@ -367,6 +396,7 @@ then
fi
tput -S <<-!
enacs
civis
smacs
cup $row $col
!
@@ -377,7 +407,7 @@ then
do
tput cup $((row+c)) $col
echo -ne ${acsn[0x78]}
tput hpa $((col+cx+1))
((hpa > 0)) && tput hpa $((col+cx+1)) || tput cup $((row+c)) $((col+cx+1))
echo -ne ${acsn[0x78]}
done
tput cup $((row+c)) $col
@@ -387,7 +417,7 @@ then
tput -S <<-!
rmacs
!
if ((color > 0))
if ((color > 0 && ech > 0))
then
tput -S <<-!
cup $((row+1)) $((col+1))
@@ -411,6 +441,16 @@ then
setab 4
setaf 7
!
else
tput rev
for ((c=1;c<5;c++))
do
tput cup $((row+c)) $((col+cx+2))
echo -n " "
done
tput cup $((row+c)) $((col+2))
printf ' %.0s' $(eval echo {1..$((cx+2))})
tput sgr0
fi
tput cup $((row+2)) $((col+4))
echo -n "<ACS BOX (REP)>"