@@ -944,15 +944,15 @@ def print_line(self, s, clr=False, newline=False):
944944 def prompt (self , more ):
945945 """Show the appropriate Python prompt"""
946946 if not more :
947- self .echo ("\x01 %s\x03 >>> " % (self .config .color_scheme ['prompt' ],))
948- self .stdout_hist += '>>> '
949- self .s_hist .append ('\x01 %s\x03 >>> \x04 ' %
950- (self .config .color_scheme ['prompt' ],))
947+ self .echo ("\x01 %s\x03 %s " % (self .config .color_scheme ['prompt' ], self . ps1 ))
948+ self .stdout_hist += self . ps1
949+ self .s_hist .append ('\x01 %s\x03 %s \x04 ' %
950+ (self .config .color_scheme ['prompt' ], self . ps1 ))
951951 else :
952952 prompt_more_color = self .config .color_scheme ['prompt_more' ]
953- self .echo ("\x01 %s\x03 ... " % (prompt_more_color , ))
954- self .stdout_hist += '... '
955- self .s_hist .append ('\x01 %s\x03 ... \x04 ' % (prompt_more_color , ))
953+ self .echo ("\x01 %s\x03 %s " % (prompt_more_color , self . ps2 ))
954+ self .stdout_hist += self . ps2
955+ self .s_hist .append ('\x01 %s\x03 %s \x04 ' % (prompt_more_color , self . ps2 ))
956956
957957 def push (self , s , insert_into_history = True ):
958958 # curses.raw(True) prevents C-c from causing a SIGINT
@@ -1041,7 +1041,8 @@ def reprint_line(self, lineno, tokens):
10411041 if real_lineno < 0 :
10421042 return
10431043
1044- self .scr .move (real_lineno , 4 )
1044+ self .scr .move (real_lineno ,
1045+ len (self .ps1 ) if lineno == 0 else len (self .ps2 ))
10451046 line = format (tokens , BPythonFormatter (self .config .color_scheme ))
10461047 for string in line .split ('\x04 ' ):
10471048 self .echo (string )
0 commit comments