xiwal

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

commit
544c4ce6733010d84861b3578fc310956a8faf7f
parent
930262dc027691f02250fa8b62e683a18f9e1725
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2019-11-17 09:52
add --apply option

Diffstat

M xiwal/__main__.py 4 +++-

1 files changed, 3 insertions, 1 deletions


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

@@ -8,6 +8,7 @@ from . import term
    8     8 
    9     9 def parse_args():
   10    10 	parser = argparse.ArgumentParser()
   -1    11 	parser.add_argument('--apply', '-a', action='store_true')
   11    12 	parser.add_argument('--image', '-i')
   12    13 	parser.add_argument('-n', type=int, default=8)
   13    14 	parser.add_argument('colors', nargs='*')
@@ -29,7 +30,8 @@ def main():
   29    30 
   30    31 	print(';'.join(s))
   31    32 	term.palette(s)
   32    -1 	term.apply(s)
   -1    33 	if args.apply:
   -1    34 		term.apply(s)
   33    35 
   34    36 
   35    37 if __name__ == '__main__':