fix python color prompt in bpython
This commit is contained in:
parent
38b24661d6
commit
6f7247382b
1 changed files with 4 additions and 2 deletions
|
@ -9,5 +9,7 @@ try:
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
# bpython defines __name__ == "__console__" and gets broken by ANSI colors, so...
|
||||||
|
if __name__ == "__main__":
|
||||||
sys.ps1 = '\001\x1b[1;32m\002>>> \001\x1b[0m\002'
|
sys.ps1 = '\001\x1b[1;32m\002>>> \001\x1b[0m\002'
|
||||||
sys.ps2 = '\001\x1b[0;32m\002... \001\x1b[0m\002'
|
sys.ps2 = '\001\x1b[0;32m\002... \001\x1b[0m\002'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue