mirror of
https://github.com/digarok/gsplus.git
synced 2024-05-28 13:41:31 +00:00
use vt100 escape codes (in the future, should switch to termcap/terminfo) to erase previous line when stepping to clean up the display.
This commit is contained in:
parent
4974c36458
commit
bf4c1bdc0e
|
@ -130,6 +130,20 @@ static char *get_resource_path(const char *leaf) {
|
|||
}
|
||||
#endif
|
||||
|
||||
void clear_line(void) {
|
||||
/* carriage return, clear_eol */
|
||||
/* cr, ce */
|
||||
fputs("\r\x1b[K", stdout);
|
||||
}
|
||||
|
||||
void clear_prev_line(void) {
|
||||
/* carriage return, cursor_up, clear_eol */
|
||||
/* cr, up, ce */
|
||||
fputs("\r\x1b[A\x1b[K", stdout);
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* todo
|
||||
* - tool break support
|
||||
|
@ -1352,6 +1366,8 @@ command:
|
|||
engine.kpc = addr;
|
||||
}
|
||||
g_stepping = 1;
|
||||
|
||||
clear_prev_line();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -1369,6 +1385,7 @@ command:
|
|||
set_bp('T', tmp);
|
||||
}
|
||||
|
||||
clear_prev_line();
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user