Clarify comments

This commit is contained in:
Felix Albrigtsen 2021-03-23 21:49:38 +01:00 committed by GitHub
parent 53ab16c54a
commit e1b00c2aac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -1,7 +1,10 @@
# Felix Albrigtsen 2021
#Usage: cprint("%MARKERS[, ..]% text").
#Example: cprint("%b,U% This is blue and underlined")
#Consider putting the \u001b[ outside, only store changing parts
#Consider hardcoding \u001b[ in getSequence(), only store the variable part in a dict
#Currently keeping it this way to avoid hardcoding, simplify adapting to other terminals.
escSeq = {
# Modifiers:
"B": "\u001b[1m", #Bold
@ -77,4 +80,4 @@ def cprint(inStr):
# cprint("%bc,r%This is pretty high visibility %y%with different colors")
# cprint("%bw,b%This text is blue on white, %B,U,I% this is bold, underlined and white on blue")
# cprint("%warning%This is a warning!")
# cprint("%error%And this is an error")
# cprint("%error%And this is an error")