fix python color prompt readline behavior

This commit is contained in:
Martin 2018-01-11 11:44:30 +01:00
parent 600f5006e8
commit aef87b74b1

View file

@ -6,8 +6,8 @@ import sys
try: try:
import over import over
sys.ps1 = over.text.render("<G>>>> <.>")
sys.ps2 = over.text.render("<g>... <.>")
except: except:
sys.ps1 = '\x1b[1;32m>>> \x1b[0m' pass
sys.ps2 = '\x1b[0;32m... \x1b[0m'
sys.ps1 = '\001\x1b[1;32m\002>>> \001\x1b[0m\002'
sys.ps2 = '\001\x1b[0;32m\002... \001\x1b[0m\002'