diff options
| author | Ed Schouten <ed@FreeBSD.org> | 2009-01-04 22:24:47 +0000 |
|---|---|---|
| committer | Ed Schouten <ed@FreeBSD.org> | 2009-01-04 22:24:47 +0000 |
| commit | 1259994283d5181e40238e6b170d58ac16049d68 (patch) | |
| tree | f265d92fdc10dfc7ed0b2400333d58524f98ff92 | |
| parent | 53a5081fa67bb25c68557fd291547ccf70fc71ab (diff) | |
Notes
| -rw-r--r-- | sys/dev/syscons/teken/teken_subr.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/dev/syscons/teken/teken_subr.h b/sys/dev/syscons/teken/teken_subr.h index d8319f676f01..328858640b94 100644 --- a/sys/dev/syscons/teken/teken_subr.h +++ b/sys/dev/syscons/teken/teken_subr.h @@ -198,11 +198,22 @@ static void teken_subr_backspace(teken_t *t) { +#ifdef TEKEN_CONS25 + if (t->t_cursor.tp_col == 0) { + if (t->t_cursor.tp_row == t->t_originreg.ts_begin) + return; + t->t_cursor.tp_row--; + t->t_cursor.tp_col = t->t_winsize.tp_col - 1; + } else { + t->t_cursor.tp_col--; + } +#else /* !TEKEN_CONS25 */ if (t->t_cursor.tp_col == 0) return; t->t_cursor.tp_col--; t->t_stateflags &= ~TS_WRAPPED; +#endif /* TEKEN_CONS25 */ teken_funcs_cursor(t); } @@ -862,6 +873,7 @@ teken_subr_reset_to_initial_state(teken_t *t) teken_subr_do_reset(t); teken_subr_erase_display(t, 2); + teken_funcs_param(t, TP_SHOWCURSOR, 1); teken_funcs_cursor(t); } |
