fix python color prompt readline behavior
This commit is contained in:
parent
600f5006e8
commit
aef87b74b1
1 changed files with 4 additions and 4 deletions
|
@ -6,8 +6,8 @@ import sys
|
|||
|
||||
try:
|
||||
import over
|
||||
sys.ps1 = over.text.render("<G>>>> <.>")
|
||||
sys.ps2 = over.text.render("<g>... <.>")
|
||||
except:
|
||||
sys.ps1 = '\x1b[1;32m>>> \x1b[0m'
|
||||
sys.ps2 = '\x1b[0;32m... \x1b[0m'
|
||||
pass
|
||||
|
||||
sys.ps1 = '\001\x1b[1;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