forked from binRick/ansi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathansi.sh
executable file
·2553 lines (2139 loc) · 85.9 KB
/
ansi.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
#!/usr/bin/env bash
CURRENT_SCRIPT="${BASH_SOURCE[0]}"
ANSI_ESC=$'\033'
ANSI_CSI="${ANSI_ESC}["
ANSI_OSC="${ANSI_ESC}]"
ANSI_ST="${ANSI_ESC}\\"
ANSI_REPORT="" # The return value from ansi::report
DEFAULT_CLIPBOARD_MODE=p
DEFAULT_CLIPBOARD_MODE=s
SAVE_PALETTE_CODE=30001
RESTORE_PALETTE_CODE=30101
DEV_OSC_CODE0=30201
DEV_OSC_CODE1="30302"
DEV_CSI_CODE0="108"
DEV_CSI_CODE0_a="12345"
DEV_CSI_CODE0_b="66666"
DEV_CSI_BORDER_BG_CODE=708
FG_COLOR_YELLOW=33
FG_COLOR_BLUE=34
FG_COLOR_CYAN=36
FG_COLOR_MAGENTA=35
FG_COLOR_GREEN=32
FG_COLOR_BLACK=30
FG_COLOR_WHITE=37
FG_COLOR_RED=31
BG_COLOR_YELLOW=43
BG_COLOR_BLUE=44
BG_COLOR_CYAN=46
BG_COLOR_MAGENTA=45
BG_COLOR_GREEN=42
BG_COLOR_BLACK=40
BG_COLOR_WHITE=47
BG_COLOR_RED=41
DEFAULT_PASTE_BOARD="general"
DEFAULT_ICONTITLE=""
DEFAULT_ICON=""
DEFAULT_TITLE=""
DEFAULT_KEYPAD_MODE="App"
DEFAULT_S8C1T_MODE="Disabled"
DEFAULT_SCREEN_MODE="Disabled"
DEFAULT_CURSOR_STYLE="Bar"
DEFAULT_CURSOR_BLINK="Blinking"
DEFAULT_CURSOR_VISIBILITY="Visible"
DEFAULT_ALT_SCREEN_MODE="Disabled"
DEFAULT_REPORT_MOUSE_FOCUS_MODE="Disabled"
DEFAULT_BRACKET_PASTE_MODE="Disabled"
OSC_52_MAX_SEQUENCE="100000"
ANSI_REPORT_GZIP_B64=H4sIAL5ljGIAA42awY7kthVF9wPMF2TTH5AARUqUKM8yCPIBWWY1nnSQhQdjeBzA/vtUiaR07n0EHHRVo+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WRhcmsKcGFsZXRhL2hlbWlzdS1saWdodApwYWxldGEvZGtlZy1zdWJ0bGUtZGFyawpwYWxldGEvd29tYmF0LWRhcmsKcGFsZXRhL2lyLWJsYWNrLWRhcmsKcGFsZXRhL2RrZWctc2NhZy1kYXJrCnBhbGV0YS9iYXNlMTYtZGVmYXVsdC1saWdodApwYWxldGEvZGtlZy1zcHJvdXQtZGFyawpwYWxldGEvYmFzZTE2LXNoYXBlc2hpZnRlci1kYXJrCnBhbGV0YS90ZW1wdXMtcmlmdC1kYXJrCnBhbGV0YS9iYXNlMTYtb2NlYW4tbGlnaHQKcGFsZXRhL25vY3R1cm5hbC13aW50ZXItZGFyawpwYWxldGEvcnl1dWtvLWRhcmsKcGFsZXRhL3RlZXJiLWRhcmsKcGFsZXRhL2hlbWlzdS1kYXJrCnBhbGV0YS90ZW1wdXMtc3VtbWVyLWRhcmsKcGFsZXRhL2RrZWctd2ludHJ5LWRhcmsKcGFsZXRhL2ZhaXJ5Zmxvc3MtZGFyawpwYWxldGEvYmFzZTE2LWdyYXlzY2FsZS1kYXJrCnBhbGV0YS9iYXNlMTYtYXRlbGllcmZvcmVzdC1kYXJrCnBhbGV0YS9zZWxlbml6ZWQtZGFyawpwYWxldGEvdG9tb3Jyb3ctbmlnaHQtZGFyawpwYWxldGEvc2VsZW5pemVkLWxpZ2h0CnBhbGV0YS9iYXNlMTYtdHdpbGlnaHQtZGFyawpwYWxldGEvYmFzZTE2LW1vY2hhLWxpZ2h0CnBhbGV0YS9iYXNlMTYtZ3JlZW5zY3JlZW4tbGlnaHQKcGFsZXRhL2Fjby1kYXJrCnBhbGV0YS9wYXJhaXNvLWRhcmsK"
ansi::valueInRange() {
if [[ $1 =~ ^([01]?[0-9]?[0-9]|2[0-4][0-9]|25[0-5])$ ]]; then
return 0
else
return 1
fi
}
ansi::rgbToHex() {
if valueInRange $1 && valueInRange $2 && valueInRange $3; then
printf "rgb($1, $2, $3) -> #%02X%02X%02X\n" $1 $2 $3
else
ansi::rangeError
fi
}
ansi::darkenRgb() {
red=$(bc <<<"$1 + $4")
green=$(bc <<<"$2 + $4")
blue=$(bc <<<"$3 + $4")
if [[ $(bc <<<"$red < 0") == 1 ]]; then
red=0
elif [[ $(bc <<<"$red > 255") == 1 ]]; then
red=255
fi
if [[ $(bc <<<"$green < 0") == 1 ]]; then
green=0
elif [[ $(bc <<<"$green > 255") == 1 ]]; then
green=255
fi
if [[ $(bc <<<"$blue < 0") == 1 ]]; then
blue=0
elif [[ $(bc <<<"$blue > 255") == 1 ]]; then
blue=255
fi
printf "rgb($1, $2, $3) -> rgb($red, $green, $blue)\n"
}
ansi::hexToRgb() {
if [[ ${1:0:1} == "#" ]]; then
color=${1:1}
else
color=$1
fi
if ! [[ $color =~ ^[0-9A-Fa-f]{6}$ ]]; then
ansi::rangeError
else
a=${color:0:2}
b=${color:2:2}
c=${color:4:2}
printf "%d %d %d\n" 0x${a} 0x${b} 0x${c}
fi
}
ansi::inputError() {
echo "Bad input format. You should apply an argument like ff0000 or 255 255 0."
exit 1
}
ansi::rangeError() {
echo "Range input error. The input provided was out of range."
exit 1
}
ansi::palette_dots0() {
do_restore() {
ansi::disableAlternateScreen
ansi::showCursor
ansi::restorePalette
}
ansi::enableAlternateScreen
ansi::savePalette && trap do_restore EXIT
ansi::hideCursor
ansi::saveCursor
#ansi::reset
#ansi::randomPalette
r=50
g=150
b=210
#reset
COLOR_CODE=$(ansi::bgColorCode yellow)
#echo;echo
#echo;echo
ansi::boxColor "0" "0" "60" "4" "$COLOR_CODE"
#:w clear
#ansi::resetAttributes
# ansi::redBold
#:wtriggerRestore=false ${BASH_SOURCE[0]} --no-restore -n --bg-black --redBold
# ansi::reportWindowPixels
# ansi::bgRed
ansi::position "1;1"
#echo -n ": "; ansi::queryAlternateScreen; echo
ansi::line 5
ansi::bar1
ansi::line 1
ansi::bar0
ansi::line 2
echo -n "Window Chars: "
ansi::reportWindowChars
echo
ansi::line 5
#ansi::chart5
# ansi::do_type bar
#ansi::borderBackgroundColor
#ansi::position 5 1
#ansi::bgWhite "$r" "$g" "$b"
#--bg-rgb=R,G,B
local TITLE_TEXT="${1:-Dark 666}"
local TITLE_BG="${2:-blue}"
local TITLE_FG="${3:-black}"
local FG_DOTS_BG="${4:-black}"
local BG_DOTS_BG="${5:-blackBold}"
local BG_DOTS_FG="${6:-green}"
local TITLE_BACKGROUND="${TITLE_BG^}"
local TITLE_FOREGROUND="${TITLE_FG}"
local FG_DOTS_BACKGROUND="${FG_DOTS_BG^}"
local BG_DOTS_BACKGROUND="${BG_DOTS_BG^}"
local BG_DOTS_FOREGROUND="${BG_DOTS_FG}"
local DOT0="$(ansi::print_dot blue)"
local DOT1="$(ansi::print_dot red)"
local DOT2="$(ansi::print_dot magenta)"
local DOT3="$(ansi::print_dot yellow)"
local DOT4="$(ansi::print_dot white)"
local DOT5="$(ansi::print_dot green)"
local DOT6="$(ansi::print_dot red)"
local DOT7="$(ansi::print_dot blue)"
local SELECTION_DOT="$(
ansi::bg${BG_DOTS_BACKGROUND}
ansi::print_dot ${BG_DOTS_FOREGROUND}
ansi::resetBackground
)"
local CURSOR_STYLE="${CURSOR_STYLE:-$DEFAULT_CURSOR_STYLE}"
local CURSOR_BLINK="${CURSOR_BLINK:-$DEFAULT_CURSOR_BLINK}"
local CURSOR_VISIBILITY="${CURSOR_VISIBILITY:-$DEFAULT_CURSOR_VISIBILITY}"
local ALT_SCREEN_MODE="${ALT_SCREEN_MODE:-$DEFAULT_ALT_SCREEN_MODE}"
local CURSOR_DOT="$(ansi::print_dot red)"
local BG_BORDER_DOT="$(ansi::print_dot magenta)"
local TITLE="$(
printf "%s%s%s%s%s%s| %s%s%s |%s%s%s" \
"$(ansi::normal)" \
"$(ansi::resetBackground)" \
"$(ansi::resetForeground)" \
"$(ansi::${TITLE_FOREGROUND})" \
"$(ansi::bg${TITLE_BACKGROUND})" \
"$(ansi::bold)" \
"$(ansi::underline)" \
"$TITLE_TEXT" \
"$(ansi::noUnderline)" \
"$(ansi::resetBackground)" \
"$(ansi::resetForeground)"
)"
local FG_DOTS="$(
printf "%s%s%s%s%s%s%s%s" \
"$(ansi::resetBackground)" \
"$(ansi::bg${FG_DOTS_BACKGROUND})" \
"$DOT0" \
"$DOT1" \
"$DOT2" \
"$DOT3" \
"$DOT4" \
"$DOT5" \
"$DOT6" \
"$DOT7" \
"$(ansi::resetBackground)"
)"
local BG_DOTS="$(
printf "%s%s%s%s%s%s%s%s" \
"$(ansi::resetBackground)" \
"$(ansi::bg${BG_DOTS_BACKGROUND})" \
"$DOT0" \
"$DOT1" \
"$DOT2" \
"$DOT3" \
"$DOT4" \
"$DOT5" \
"$DOT6" \
"$DOT7" \
"$(ansi::resetBackground)"
)"
printf "%s | Fg: %s | Bg: %s | Selection: %s | Cursor: (%s %s %s) %s | Border: %s | Alt Screen %s |" \
"$TITLE" \
"$FG_DOTS" \
"$BG_DOTS" \
"$SELECTION_DOT" \
"$CURSOR_VISIBILITY" \
"$CURSOR_BLINK" \
"$CURSOR_STYLE" \
"$CURSOR_DOT" \
"$BG_BORDER_DOT" \
"$ALT_SCREEN_MODE"
# ansi::resetBackground
# ansi::resetForeground
sleep 3
}
ansi::get_encoded_clipboard_args() {
local ARGS="${@:-}"
if [[ "${ARGS}" == "" ]]; then
ARGS="$(while read l; do
echo "$l"
done <"${1:-/dev/stdin}")"
fi
local ARGS="$(printf '%s' "$ARGS" | base64 -w0 | tr -d '\n')"
printf '%s' "$ARGS"
}
ansi::do_clipboard() {
local CB_ARGS="$(ansi::get_encoded_clipboard_args "${@:-}")"
CLIPBOARD_MODE="${CLIPBOARD_MODE:-$DEFAULT_CLIPBOARD_MODE}" \
ansi::clipboard_copy "$CB_ARGS"
}
ansi::clipboard_copy() {
local DAT="$@"
local CLIPBOARD_MODE="${CLIPBOARD_MODE:-$DEFAULT_CLIPBOARD_MODE}"
printf '%s]52;%s;%s\a' "$ANSI_ESC" "$CLIPBOARD_MODE" "$DAT"
}
ansi::clipboard_clear() {
printf '%s52;ca!\a;' "$ANSI_CSI"
return $?
}
ansi::clipboard_clear_primary() {
printf '%s52;p;!\a' "$ANSI_CSI"
return $?
}
ansi::do_paste_clipboard() {
CLIPBOARD_MODE="${CLIPBOARD_MO:-$DEFAULT_CLIPBOARD_MODE}"
if [[ "$CLIPBOARD_MODE" == s ]]; then
PASTE_BOARD=general
elif [[ "$CLIPBOARD_MODE" == p ]]; then
PASTE_BOARD=general
else
PASTE_BOARD="${PASTE_BOARD:-$DEFAULT_PASTE_BOARD}"
fi
if command -v pbpaste >/dev/null 2>&1; then
eval pbpaste -pboard "$PASTE_BOARD"
else
ansi::red "No Paste Mechanism found!"
return 1
fi
true
}
ansi::print_dot() {
COLOR="${1:-black}"
ansi::${COLOR}
printf "%s" "●"
ansi::resetForeground
}
ansi::type_functions() {
T="ansi::${1}[0-9].*()"
\grep "$T" "$CURRENT_SCRIPT" | \cut -d'(' -f1 | \cut -d':' -f3 | \sort -u
}
ansi::do_type() {
ansi::isAnsiSupported || return 1
local _TYPE="$1"
while read -r fxn; do
ansi -n --yellow --bg-black --italic "$fxn"
ansi -n " "
eval "ansi::${fxn}"
done < <(ansi::type_functions "$_TYPE")
}
ansi::bar2() {
awk 'BEGIN{
s="/\\/\\/\\/\\/\\"; s=s s s s s s s s;
for (colnum = 0; colnum<77; colnum++) {
r = 255-(colnum*255/76);
g = (colnum*510/76);
b = (colnum*255/76);
if (g>255) g = 510-g;
printf "\033[48;2;%d;%d;%dm", r,g,b;
printf "\033[38;2;%d;%d;%dm", 255-r,255-g,255-b;
printf "%s\033[0m", substr(s,colnum+1,1);
}
printf "\n";
}'
}
ansi::bar0() {
for i in {16..21} {21..16}; do echo -en "\e[38;5;${i}m#\e[0m"; done
echo
}
ansi::bar1() {
for i in {16..21} {21..16}; do echo -en "\e[48;5;${i}m \e[0m"; done
echo
}
ansi::chart2() {
for fgbg in 38 48; do # Foreground / Background
for color in $(# Colors
seq 0 255
); do
# Display the color
printf "\e[${fgbg};5;%sm %3s \e[0m" $color $color
# Display 6 colors per lines
if [ $((($color + 1) % 6)) == 4 ]; then
echo # New line
fi
done
echo # New line
done
}
ansi::chart5() {
# standard colors
for C in {40..47}; do
echo -en "\e[${C}m$C "
done
# high intensity colors
for C in {100..107}; do
echo -en "\e[${C}m$C "
done
# 256 colors
for C in {16..255}; do
echo -en "\e[48;5;${C}m$C "
done
echo -e "\e(B\e[m"
}
ansi::chart4() {
for code in {0..255}; do
echo -e "\e[38;5;${code}m"'\\e[38;5;'"$code"m"\e[0m"
done
}
ansi::chart3() {
for code in {30..37}; do
echo -en "\e[${code}m"'\\e['"$code"'m'"\e[0m"
echo -en " \e[$code;1m"'\\e['"$code"';1m'"\e[0m"
echo -en " \e[$code;3m"'\\e['"$code"';3m'"\e[0m"
echo -en " \e[$code;4m"'\\e['"$code"';4m'"\e[0m"
echo -e " \e[$((code + 60))m"'\\e['"$((code + 60))"'m'"\e[0m"
done
}
ansi::chart1() {
for fgbg in 38 48; do # Foreground / Background
for color in {0..255}; do # Colors
# Display the color
printf "\e[${fgbg};5;%sm %3s \e[0m" $color $color
# Display 6 colors per lines
if [ $((($color + 1) % 6)) == 4 ]; then
echo # New line
fi
done
echo # New line
done
}
ansi::chart0() {
for clbg in {40..47} {100..107} 49; do
#Foreground
for clfg in {30..37} {90..97} 39; do
#Formatting
for attr in 0 1 2 4 5 7; do
#Print the result
echo -en "\e[${attr};${clbg};${clfg}m ^[${attr};${clbg};${clfg}m \e[0m"
done
echo #Newline
done
done
}
ansi::fgColorCode() {
CV=FG_COLOR_${1^^}
printf '%s' "${!CV}"
}
ansi::bgColorCode() {
CV=BG_COLOR_${1^^}
printf '%s' "${!CV}"
}
ansi::cursorBar() { printf '%s5 q' "$ANSI_CSI"; }
ansi::cursorUnder() { printf '%s3 q' "$ANSI_CSI"; }
ansi::cursorBlock() { printf '%s1 q' "$ANSI_CSI"; }
ansi::borderBackgroundColor() {
COLOR="#000000"
COLOR="#FFFFFF"
COLOR="4"
COLOR="2"
printf '\033]%s;%s\007' $DEV_CSI_BORDER_BG_CODE "$COLOR"
}
ansi::disableScreen() { printf $'\033[?5l'; }
ansi::enableScreen() { printf $'\033[?5h'; }
ansi::queryScreen() { printf $'\033[?5$p'; }
ansi::disableAlternateScreen() { echo -e '\033[?47l'; }
ansi::enableAlternateScreen() { echo -e '\033[?47h'; }
ansi::queryAlternateScreen() { echo -e '\033[?47$'; }
ansi::disableCursorBlink() { printf "\e[?12l"; }
ansi::enableCursorBlink() { printf "\e[?12h"; }
ansi::disableReportFocus() {
printf "\e[?1004l"
}
ansi::enableReportFocus() {
printf "\e[?1004h"
}
ansi::backward() {
printf '%s%sD' "$ANSI_CSI" "${1-}"
}
ansi::bell() {
printf "%s" $'\007'
}
ansi::black() {
printf '%s30m' "$ANSI_CSI"
}
ansi::blackBold() {
printf '%s90m' "$ANSI_CSI"
}
ansi::blink() {
printf '%s5m' "$ANSI_CSI"
}
ansi::blue() {
printf '%s34m' "$ANSI_CSI"
}
ansi::blueBold() {
printf '%s94m' "$ANSI_CSI"
}
ansi::bgBlack() {
printf '%s40m' "$ANSI_CSI"
}
ansi::bgBlackBold() {
printf '%s100m' "$ANSI_CSI"
}
ansi::bgBlue() {
printf '%s44m' "$ANSI_CSI"
}
ansi::bgBlueBold() {
printf '%s104m' "$ANSI_CSI"
}
ansi::bgColor() {
printf '%s48;5;%sm' "$ANSI_CSI" "$1"
}
ansi::bgCyan() {
printf '%s46m' "$ANSI_CSI"
}
ansi::bgCyanBold() {
printf '%s106m' "$ANSI_CSI"
}
ansi::bgGreen() {
printf '%s42m' "$ANSI_CSI"
}
ansi::bgGreenBold() {
printf '%s102m' "$ANSI_CSI"
}
ansi::bgMagenta() {
printf '%s45m' "$ANSI_CSI"
}
ansi::bgMagentaBold() {
printf '%s105m' "$ANSI_CSI"
}
ansi::bgRed() {
printf '%s41m' "$ANSI_CSI"
}
ansi::bgRgb() {
printf '%s48;2;%s;%s;%sm' "$ANSI_CSI" "$1" "$2" "$3"
}
ansi::bgRedBold() {
printf '%s101m' "$ANSI_CSI"
}
ansi::bgWhite() {
printf '%s47m' "$ANSI_CSI"
}
ansi::bgWhiteBold() {
printf '%s107m' "$ANSI_CSI"
}
ansi::bgYellow() {
printf '%s43m' "$ANSI_CSI"
}
ansi::bgYellowBold() {
printf '%s103m' "$ANSI_CSI"
}
ansi::bold() {
printf '%s1m' "$ANSI_CSI"
}
ansi::color() {
printf '%s38;5;%sm' "$ANSI_CSI" "$1"
}
ansi::colorCodes() {
local code i j
printf 'Standard: '
ansi::bold
ansi::white
for code in 0 1 2 3 4 5 6 7; do
if [[ "$code" == 7 ]]; then
ansi::black
fi
ansi::colorCodePatch "$code"
done
ansi::resetForeground
ansi::normal
printf '\nBold: '
ansi::white
for code in 8 9 10 11 12 13 14 15; do
if [[ "$code" == 9 ]]; then
ansi::black
fi
ansi::colorCodePatch "$code"
done
ansi::resetForeground
printf '\n\n'
# for i in 16 22 28 34 40 46; do
for i in 16 22 28; do
for j in $i $((i + 36)) $((i + 72)) $((i + 108)) $((i + 144)) $((i + 180)); do
ansi::white
ansi::bold
for code in $j $((j + 1)) $((j + 2)) $((j + 3)) $((j + 4)) $((j + 5)); do
ansi::colorCodePatch "$code"
done
ansi::normal
ansi::resetForeground
printf ' '
ansi::black
for code in $((j + 18)) $((j + 19)) $((j + 20)) $((j + 21)) $((j + 22)) $((j + 23)); do
ansi::colorCodePatch "$code"
done
ansi::resetForeground
printf '\n'
done
printf '\n'
done
printf 'Grays: '
ansi::bold
ansi::white
for code in 232 233 234 235 236 237 238 239 240 241 242 243; do
ansi::colorCodePatch "$code"
done
ansi::resetForeground
ansi::normal
printf '\n '
ansi::black
for code in 244 245 246 247 248 249 250 251 252 253 254 255; do
ansi::colorCodePatch "$code"
done
ansi::resetForeground
printf '\n'
}
ansi::colorCodePatch() {
ansi::bgColor "$1"
printf ' %3s ' "$1"
ansi::resetBackground
}
ansi::colorLine() {
printf '%s' "$ANSI_LINES_GZIP_B64" | base64 -d | gunzip
}
ansi::colorReport() {
printf '%s' "$ANSI_REPORT_GZIP_B64" | base64 -d | gunzip
}
ansi::colorTable() {
local colorLabel counter fnbLower fnbUpper functionName IFS resetFunction
fnbLower="$(
ansi::faint
printf f
ansi::normal
printf n
ansi::bold
printf b
ansi::normal
)"
fnbUpper="$(
ansi::faint
printf F
ansi::normal
printf N
ansi::bold
printf B
ansi::normal
)"
IFS=$' \n'
counter=
while read -r colorLabel functionName resetFunction; do
printf -- '--%s ' "$colorLabel"
$functionName
printf 'Sample'
$resetFunction
if [[ "$counter" == "x" ]]; then
counter=
printf '\n'
else
counter=x
ansi::column 40
fi
done <<END
bold ansi::bold ansi::normal
faint ansi::faint ansi::normal
italic ansi::italic ansi::plain
fraktur ansi::fraktur ansi::plain
underline ansi::underline ansi::noUnderline
curly-underline ansi::curlyUnderline ansi::noUnderline
double-underline ansi::doubleUnderline ansi::noUnderline
dashed-underline ansi::dashedUnderline ansi::noUnderline
dotted-underline ansi::print_dottedUnderline ansi::noUnderline
blink ansi::blink ansi::noBlink
rapid-blink ansi::rapidBlink ansi::noBlink
inverse ansi::inverse ansi::noInverse
invisible ansi::invisible ansi::visible
strike ansi::strike ansi::noStrike
frame ansi::frame ansi::noBorder
encircle ansi::encircle ansi::noBorder
overline ansi::overline ansi::noOverline
ideogram-right ansi::ideogramRight ansi::resetIdeogram
ideogram-right-double ansi::ideogramRightDouble ansi::resetIdeogram
ideogram-left ansi::ideogramLeft ansi::resetIdeogram
ideogram-left-double ansi::ideogramLeftDouble ansi::resetIdeogram
ideogram-stress ansi::ideogramStress ansi::resetIdeogram
END
if [[ -n "$counter" ]]; then
printf '\n'
fi
printf '\n'
printf ' black red green yellow blue magenta cyan white\n'
ansi::colorTableLine "(none)" "ansi::resetBackground" "$fnbLower" "$fnbUpper"
ansi::colorTableLine "bg-black" "ansi::bgBlack" "$fnbLower" "$fnbUpper"
ansi::colorTableLine "+ intense" "ansi::bgBlackBold" "$fnbLower" "$fnbUpper"
ansi::colorTableLine "bg-red" "ansi::bgRed" "$fnbLower" "$fnbUpper"
ansi::colorTableLine "+ intense" "ansi::bgRedBold" "$fnbLower" "$fnbUpper"
ansi::colorTableLine "bg-green" "ansi::bgGreen" "$fnbLower" "$fnbUpper"
ansi::colorTableLine "+ intense" "ansi::bgGreenBold" "$fnbLower" "$fnbUpper"
ansi::colorTableLine "bg-yellow" "ansi::bgYellow" "$fnbLower" "$fnbUpper"
ansi::colorTableLine "+ intense" "ansi::bgYellowBold" "$fnbLower" "$fnbUpper"
ansi::colorTableLine "bg-blue" "ansi::bgBlue" "$fnbLower" "$fnbUpper"
ansi::colorTableLine "+ intense" "ansi::bgBlueBold" "$fnbLower" "$fnbUpper"
ansi::colorTableLine "bg-magenta" "ansi::bgMagenta" "$fnbLower" "$fnbUpper"
ansi::colorTableLine "+ intense" "ansi::bgMagentaBold" "$fnbLower" "$fnbUpper"
ansi::colorTableLine "bg-cyan" "ansi::bgCyan" "$fnbLower" "$fnbUpper"
ansi::colorTableLine "+ intense" "ansi::bgCyanBold" "$fnbLower" "$fnbUpper"
ansi::colorTableLine "bg-white" "ansi::bgWhite" "$fnbLower" "$fnbUpper"
ansi::colorTableLine "+ intense" "ansi::bgWhiteBold" "$fnbLower" "$fnbUpper"
printf '\n'
printf 'Legend:\n'
printf ' Normal color: f = faint, n = normal, b = bold.\n'
printf ' Bold color: F = faint, N = normal, B = bold.\n'
}
ansi::colorTableLine() {
local fn
printf '%-12s' "$1"
for fn in ansi::black ansi::red ansi::green ansi::yellow ansi::blue ansi::magenta ansi::cyan ansi::white; do
$2
${fn}
printf '%s' "$3"
${fn}Bold
printf '%s' "$4"
ansi::resetForeground
ansi::resetBackground
if [[ "$fn" != "ansi::white" ]]; then
printf ' '
fi
done
printf '\n'
}
ansi::restorePalette() {
printf '%s%s;%s' "$ANSI_OSC" "$RESTORE_PALETTE_CODE" "$ANSI_ST"
}
ansi::randomNumber() {
LC_ALL=C tr -dc 1-9 </dev/urandom | dd ibs=1 obs=1 count=5 2>/dev/null
}
ansi::randomPalette() {
if [ $(($(ansi::randomNumber) % 2)) -eq 0 ]; then
ansi::randomKfcPalette
else
ansi::randomPaletaPalette
fi
}
ansi::randomKfcPalette() {
TOOLS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/tools"
cmd="$TOOLS_DIR/shuffle.sh kfc"
eval "$cmd"
}
ansi::listPalettes() {
printf "%s" "$PALETTES_LIST_B64" | cut -d= -f2-100 | cut -d'"' -f2 | base64 -d | egrep '^paleta/.*$|^kfc/.*/.*$'
}
ansi::getPalettesDir() {
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/palettes"
echo -e "$DIR"
}
PREVIEW_CMD_B64="VD0nZ1l3JyAgICMgVGhlIHRlc3QgdGV4dAplY2hvIC1lICJcbiAgICAgICAgICAgICAgICAgNDBtICAgICA0MW0gICAgIDQybSAgICAgNDNtXAogICAgIDQ0bSAgICAgNDVtICAgICA0Nm0gICAgIDQ3bSI7CmZvciBGR3MgaW4gJyAgICBtJyAnICAgMW0nICcgIDMwbScgJzE7MzBtJyAnICAzMW0nICcxOzMxbScgJyAgMzJtJyBcCiAgICAgICAgICAgJzE7MzJtJyAnICAzM20nICcxOzMzbScgJyAgMzRtJyAnMTszNG0nICcgIDM1bScgJzE7MzVtJyBcCiAgICAgICAgICAgJyAgMzZtJyAnMTszNm0nICcgIDM3bScgJzE7MzdtJzsKICBkbyBGRz0ke0ZHcy8vIC99CiAgZWNobyAtZW4gIiAkRkdzIFwwMzNbJEZHICAkVCAgIgogIGZvciBCRyBpbiA0MG0gNDFtIDQybSA0M20gNDRtIDQ1bSA0Nm0gNDdtOwogICAgZG8gZWNobyAtZW4gIiRFSU5TIFwwMzNbJEZHXDAzM1skQkcgICRUICBcMDMzWzBtIjsKICBkb25lCiAgZWNobzsKZG9uZQplY2hvCg=="
PALETTES_DIR=$(pwd)/palettes
ansi::listPaletaPalettes() { ansi::listPalettes | grep '^paleta/[a-z].*' | cut -d '/' -f2-100 | sort -u; }
ansi::listKfcPalettes() { ansi::listPalettes | grep '^kfc/[a-z].*/[a-z].*' | cut -d'/' -f3-100 | sort -u; }
ansi::listKfcLightPalettes() { ansi::listKfcPalettes | grep '^light .*$' | cut -d' ' -f2-100 | sort -u; }
ansi::listKfcDarkPalettes() { ansi::listKfcPalettes | grep '^dark .*' | cut -d' ' -f2-100 | sort -u; }
ansi::listKfcPalettes() { ansi::listPalettes | grep '^kfc/[a-z].*/[a-z].*' | cut -d'/' -f2,3-100 | tr '/' ' ' | sort -u; }
ansi::loadPalette() {
TYPE="${1:-kfc}"
NAME="${2:-vscode}"
MODE="${3:-dark}"
PALETTE_DATA="$(ansi::catPalette "$TYPE" "$NAME" "$MODE")"
if [[ "$TYPE" == "paleta" ]]; then
paleta <<<"$PALETTE_DATA"
elif [[ "$TYPE" == "kfc" ]]; then
MODE="${3:-dark}"
MODE_ARG=
[[ "$MODE" == light ]] && MODE_ARG="-L"
kfc $MODE_ARG -s "$NAME"
fi
clear
ansi -n --bg-black --green --bold "$NAME"
eval "$(echo -e "$PREVIEW_CMD_B64" | base64 -d)"
exit 0
}
ansi::catPalette() {
TYPE="${1:-kfc}"
NAME="${2:-vscode}"
MODE="${3:-dark}"
PALETTE_FILE=
if [[ "$TYPE" == "kfc" ]]; then
PALETTE_FILE="$(ansi::getPalettesDir)/$TYPE/$MODE/$NAME"
else
PALETTE_FILE="$(ansi::getPalettesDir)/$TYPE/$NAME"
fi
if [[ -f "$PALETTE_FILE" ]]; then
\cat "$PALETTE_FILE"
exit 0
else
echo $PALETTE_FILE missing
exit 1
fi
}
ansi::randomPaletaPalette() {
TOOLS_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/tools"
cmd="$TOOLS_DIR/shuffle.sh paleta"
eval "$cmd"
}
ansi::dev6() {
for code in {30..37}; do
echo -en "\e[${code}m"'\\e['"$code"'m'"\e[0m"
echo -en " \e[$code;1m"'\\e['"$code"';1m'"\e[0m"
echo -en " \e[$code;3m"'\\e['"$code"';3m'"\e[0m"
echo -en " \e[$code;4m"'\\e['"$code"';4m'"\e[0m"
echo -e " \e[$((code + 60))m"'\\e['"$((code + 60))"'m'"\e[0m"
done
}
ansi::dev0() {
printf '%s%s;%s' "$ANSI_OSC" "$DEV_OSC_CODE0" "$ANSI_ST"
}
ansi::dev2() {
ansi::borderBackgroundColor
}
ansi::dev1() {
DAT="$(jo ts=$(date +%s) user=$USER uid=$(id -nu))"
printf '%s%s;%s%s' "$ANSI_OSC" "$DEV_CSI_CODE0" "$DAT" "$ANSI_ST"
#printf '%s38;2;%s;%s;%sm' "$ANSI_CSI" "$1" "$2" "$3"
#printf '%s38;2;%s;%s;%sm' "$ANSI_CSI" "100" "200" "222"
#"$1" "$2" "$3"
# printf '\x1b]%s;%s\x1b\\' "$DEV_OSC_CODE1" "134"
# printf '%s%sa' "$ANSI_CSI" "$DEV_OSC_CODE1"
}
ansi::savePalette() {
printf '%s%s;%s' "$ANSI_OSC" "$SAVE_PALETTE_CODE" "$ANSI_ST"
}
ansi::column() {
printf '%s%sG' "$ANSI_CSI" "${1-}"
}
ansi::columnRelative() {
printf '%s%sa' "$ANSI_CSI" "${1-}"
}
ansi::cyan() {
printf '%s36m' "$ANSI_CSI"
}
ansi::cyanBold() {
printf '%s96m' "$ANSI_CSI"
}
ansi::deleteChars() {
printf '%s%sP' "$ANSI_CSI" "${1-}"
}
ansi::deleteLines() {
printf '%s%sM' "$ANSI_CSI" "${1-}"
}
ansi::dashedUnderline() {
printf '%s4:5m' "$ANSI_CSI"
}
ansi::curlyUnderline() {
printf '%s4:3m' "$ANSI_CSI"
}
ansi::print_dottedUnderline() {
printf '%s4:4m' "$ANSI_CSI"
}
ansi::doubleUnderline() {
printf '%s4:2m' "$ANSI_CSI"
}
ansi::down() {
printf '%s%sB' "$ANSI_CSI" "${1-}"
}
ansi::encircle() {
printf '%s52m' "$ANSI_CSI"
}
ansi::eraseDisplay() {
printf '%s%sJ' "$ANSI_CSI" "${1-}"
}
ansi::eraseChars() {
printf '%s%sX' "$ANSI_CSI" "${1-}"
}
ansi::eraseLine() {
printf '%s%sK' "$ANSI_CSI" "${1-}"
}
ansi::faint() {
printf '%s2m' "$ANSI_CSI"
}
ansi::font() {
printf '%s1%sm' "$ANSI_CSI" "${1-0}"
}
ansi::forward() {
printf '%s%sC' "$ANSI_CSI" "${1-}"
}
ansi::fraktur() {
printf '%s20m' "$ANSI_CSI"
}
ansi::frame() {
printf '%s51m' "$ANSI_CSI"
}
ansi::green() {
printf '%s32m' "$ANSI_CSI"
}
ansi::greenBold() {
printf '%s92m' "$ANSI_CSI"
}
ansi::showCursor() {
printf '%s?25h' "$ANSI_CSI"
}
ansi::hideCursor() {
printf '%s?25l' "$ANSI_CSI"
}
ansi::ideogramLeft() {
printf '%s62m' "$ANSI_CSI"
}
ansi::ideogramLeftDouble() {