tests: on true color cache thrashing

when new items are added to the cache and entries there are never reused
This commit is contained in:
Boris Faure 2020-05-08 16:58:03 +02:00
parent 850ffa30d6
commit 1bd27081c3
Signed by: borisfaure
GPG Key ID: 35C0410516166BE8
2 changed files with 22 additions and 0 deletions

View File

@ -135,3 +135,4 @@ selection_box_scrolls_up.sh c0fc70e8d865236d66edc7ad13af4dbe
selection_scrolls_down.sh c0fc70e8d865236d66edc7ad13af4dbe
selection_box_scrolls_down.sh c0fc70e8d865236d66edc7ad13af4dbe
esc_term_name_version.sh 4498d5f9f7d827bcd46774063510c712
true_color_cache_thrashing.sh 34df56d44685b91eed2802167f48f3c4

View File

@ -0,0 +1,21 @@
#!/bin/sh
# fill space with E
printf '\033[69;1;1;25;80\044x'
#set color
printf '\033[46;31;3m'
# move
printf '\033[H'
# 3 loops of 128 colors
for i in $(seq 255); do
printf "\033[48;2;0;%s;%sm " "$i" "$i"
done
for i in $(seq 255); do
printf "\033[48;2;%s;0;%sm " "$i" "$i"
done
for i in $(seq 255); do
printf "\033[48;2;%s;%s;0m " "$i" "$i"
done