fix python color prompt in bpython-0.17
This commit is contained in:
parent
6f7247382b
commit
3f02d344dd
1 changed files with 2 additions and 2 deletions
|
@ -9,7 +9,7 @@ try:
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# bpython defines __name__ == "__console__" and gets broken by ANSI colors, so...
|
# bpython gets broken by ANSI colors, so skip those
|
||||||
if __name__ == "__main__":
|
if type(__builtins__) != dict:
|
||||||
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