File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree 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) {
296296 if (_current_executing_filename == NULL ) {
297297 return false;
298298 }
299+ mp_hal_stdout_tx_str ("\x1b[2K\x1b[0G" ); // Clear line of junk text
299300 mp_hal_stdout_tx_str (_current_executing_filename );
300301 serial_write_compressed (MP_ERROR_TEXT (" output:\n" ));
301302
@@ -409,6 +410,7 @@ STATIC void cleanup_after_vm(mp_obj_t exception) {
409410}
410411
411412STATIC void print_code_py_status_message (safe_mode_t safe_mode ) {
413+ mp_hal_stdout_tx_str ("\x1b[2K\x1b[0G" ); // Clear line
412414 if (autoreload_is_enabled ()) {
413415 serial_write_compressed (
414416 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) {
10041006
10051007 // Start the debug serial
10061008 serial_early_init ();
1009+ mp_hal_stdout_tx_str ("\x1b[2K\x1b[0G" ); // Clear line
10071010
10081011 // Wait briefly to give a reset window where we'll enter safe mode after the reset.
10091012 if (get_safe_mode () == SAFE_MODE_NONE ) {
@@ -1055,6 +1058,8 @@ int __attribute__((used)) main(void) {
10551058 // displays init after filesystem, since they could share the flash SPI
10561059 board_init ();
10571060
1061+ mp_hal_stdout_tx_str ("\x1b[2K\x1b[0G" ); // Clear line
1062+
10581063 // This is first time we are running CircuitPython after a reset or power-up.
10591064 supervisor_set_run_reason (RUN_REASON_STARTUP );
10601065
You can’t perform that action at this time.
0 commit comments