@@ -433,7 +433,7 @@ STATIC int pyexec_friendly_repl_process_char(int c) {
433
433
434
434
vstr_add_byte (MP_STATE_VM (repl_line ), '\n' );
435
435
repl .cont_line = true;
436
- readline_note_newline ("... " );
436
+ readline_note_newline (mp_repl_get_ps2 () );
437
437
return 0 ;
438
438
439
439
} else {
@@ -454,7 +454,7 @@ STATIC int pyexec_friendly_repl_process_char(int c) {
454
454
455
455
if (mp_repl_continue_with_input (vstr_null_terminated_str (MP_STATE_VM (repl_line )))) {
456
456
vstr_add_byte (MP_STATE_VM (repl_line ), '\n' );
457
- readline_note_newline ("... " );
457
+ readline_note_newline (mp_repl_get_ps2 () );
458
458
return 0 ;
459
459
}
460
460
@@ -468,7 +468,7 @@ STATIC int pyexec_friendly_repl_process_char(int c) {
468
468
vstr_reset (MP_STATE_VM (repl_line ));
469
469
repl .cont_line = false;
470
470
repl .paste_mode = false;
471
- readline_init (MP_STATE_VM (repl_line ), ">>> " );
471
+ readline_init (MP_STATE_VM (repl_line ), mp_repl_get_ps1 () );
472
472
return 0 ;
473
473
}
474
474
}
@@ -598,7 +598,7 @@ int pyexec_friendly_repl(void) {
598
598
}
599
599
600
600
vstr_reset (& line );
601
- int ret = readline (& line , ">>> " );
601
+ int ret = readline (& line , mp_repl_get_ps1 () );
602
602
mp_parse_input_kind_t parse_input_kind = MP_PARSE_SINGLE_INPUT ;
603
603
604
604
if (ret == CHAR_CTRL_A ) {
@@ -651,7 +651,7 @@ int pyexec_friendly_repl(void) {
651
651
// got a line with non-zero length, see if it needs continuing
652
652
while (mp_repl_continue_with_input (vstr_null_terminated_str (& line ))) {
653
653
vstr_add_byte (& line , '\n' );
654
- ret = readline (& line , "... " );
654
+ ret = readline (& line , mp_repl_get_ps2 () );
655
655
if (ret == CHAR_CTRL_C ) {
656
656
// cancel everything
657
657
mp_hal_stdout_tx_str ("\r\n" );
0 commit comments