xiwal

Generate terminal color schemes
git clone https://git.ce9e.org/xiwal.git

commit
02695452fc0331b00e21ec7ea746bf52e5db9224
parent
b25fd5b480753a8ab4cfef4c2f0473d7cc5158c4
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-11-17 10:10
use %i for integer interpolation

Diffstat

M xiwal/term.py 6 +++---

1 files changed, 3 insertions, 3 deletions


diff --git a/xiwal/term.py b/xiwal/term.py

@@ -7,9 +7,9 @@ def apply(scheme):
    7     7 	for path in glob.glob('/dev/pts/[0-9]*'):
    8     8 		with open(path, 'w') as tty:
    9     9 			for i in range(0, 16):
   10    -1 				tty.write('\033]4;%s;%s\033\\' % (i, scheme[i]))
   11    -1 			tty.write('\033]%s;%s\033\\' % (11, scheme[0]))
   12    -1 			tty.write('\033]%s;%s\033\\' % (10, scheme[15]))
   -1    10 				tty.write('\033]4;%i;%s\033\\' % (i, scheme[i]))
   -1    11 			tty.write('\033]%i;%s\033\\' % (11, scheme[0]))
   -1    12 			tty.write('\033]%i;%s\033\\' % (10, scheme[15]))
   13    13 
   14    14 
   15    15 def palette(scheme):