Skip to content

Commit 39dfae6

Browse files
committed
Inny screen.ini
1 parent 420b571 commit 39dfae6

File tree

1 file changed

+32
-7
lines changed

1 file changed

+32
-7
lines changed

screen.ini

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,34 @@
1-
#KONFIGURACJA WYSWIETLANIA - PLIK JEST INCLUDOWANY DO RÓŻNYCH SKRYPTÓW *.sh
1+
## DISPLAY CONFIGURATION - THIS FILE IS INCLUDED IN VARIOUS *.sh SCRIPTS
2+
## @author wborkowski@uw.edu.pl
3+
## @date 2024-07-08 (last modif.)
4+
5+
STR="$TERM"
6+
#echo "TERM:" $STR
7+
8+
#ENABLING COLORn ENV.VARIABLES ONLY WHEN terminal HAS COLOR POSSIBILITES:
9+
SUB='color' #see also https://unix.stackexchange.com/questions/450365/check-if-terminal-supports-24-bit-true-color
10+
11+
if [[ "$STR" == *"$SUB"* ]]; then
12+
13+
export ECHO="echo -e"
14+
export COLOR1="\e[36m"
15+
export COLOR2="\e[35m"
16+
export COLOR3="\e[34m"
17+
export COLOR4="\e[33m"
18+
export NORMCO="\e[0m"
19+
20+
echo -e $COLOR1$SUB$COLOR2" is there."$NORMCO
21+
22+
STR=`uname -or`
23+
#echo "UNAME:" $STR
24+
SUB='Linux'
25+
26+
if [[ "$STR" == *"$SUB"* ]]; then
27+
28+
echo -e $COLOR1$SUB$COLOR4" is there."$NORMCO
29+
30+
fi
31+
32+
fi
233

3-
export COLOR1="\e[36m"
4-
export COLOR2="\e[33m" #YELLOW
5-
export COLOR3="\e[35m"
6-
export COLERR="\e[31m" #RED
7-
export NORMCO="\e[0m"
834

9-
export ECHO="echo -e"

0 commit comments

Comments
 (0)