File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -296,6 +296,7 @@ STATIC bool maybe_run_list(const char *const *filenames, size_t n_filenames) {
296
296
if (_current_executing_filename == NULL ) {
297
297
return false;
298
298
}
299
+ mp_hal_stdout_tx_str ("\x1b[2K\x1b[0G" ); // Clear line of junk text
299
300
mp_hal_stdout_tx_str (_current_executing_filename );
300
301
serial_write_compressed (MP_ERROR_TEXT (" output:\n" ));
301
302
@@ -409,6 +410,7 @@ STATIC void cleanup_after_vm(mp_obj_t exception) {
409
410
}
410
411
411
412
STATIC void print_code_py_status_message (safe_mode_t safe_mode ) {
413
+ mp_hal_stdout_tx_str ("\x1b[2K\x1b[0G" ); // Clear line
412
414
if (autoreload_is_enabled ()) {
413
415
serial_write_compressed (
414
416
MP_ERROR_TEXT ("Auto-reload is on. Simply save files over USB to run them or enter REPL to disable.\n" ));
@@ -1004,6 +1006,7 @@ int __attribute__((used)) main(void) {
1004
1006
1005
1007
// Start the debug serial
1006
1008
serial_early_init ();
1009
+ mp_hal_stdout_tx_str ("\x1b[2K\x1b[0G" ); // Clear line
1007
1010
1008
1011
// Wait briefly to give a reset window where we'll enter safe mode after the reset.
1009
1012
if (get_safe_mode () == SAFE_MODE_NONE ) {
@@ -1055,6 +1058,8 @@ int __attribute__((used)) main(void) {
1055
1058
// displays init after filesystem, since they could share the flash SPI
1056
1059
board_init ();
1057
1060
1061
+ mp_hal_stdout_tx_str ("\x1b[2K\x1b[0G" ); // Clear line
1062
+
1058
1063
// This is first time we are running CircuitPython after a reset or power-up.
1059
1064
supervisor_set_run_reason (RUN_REASON_STARTUP );
1060
1065
You can’t perform that action at this time.
0 commit comments