repaint_terminals: don't check all tty as 4 is enough

This commit is contained in:
Protesilaos Stavrou 2024-02-03 09:27:37 +02:00
parent c92478c272
commit 3363f2ff0f
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -61,6 +61,6 @@ ansi_sequences+="\\033]11;$(_get_hex_value background)\\007"
ansi_sequences+="\\033]17;$(_get_hex_value foreground)\\007"
# Apply ANSI sequences to running terminals.
for term in /dev/pts/[0-9]*; do
for term in /dev/pts/[0-4]*; do
printf "%b" "$ansi_sequences" > "$term" &
done