diff options
author | ray <ray@FreeBSD.org> | 2013-10-31 09:44:48 +0000 |
---|---|---|
committer | ray <ray@FreeBSD.org> | 2013-10-31 09:44:48 +0000 |
commit | a2f43a333929fa6b49c089d9784d8729fc4ac198 (patch) | |
tree | 11c2e65900dc71865804f3bb32a7b8030f9830ab /sys/teken/teken_subr.h | |
parent | 630a3895d30eb6c0180ef08707c747fb080bf20c (diff) | |
download | FreeBSD-src-a2f43a333929fa6b49c089d9784d8729fc4ac198.zip FreeBSD-src-a2f43a333929fa6b49c089d9784d8729fc4ac198.tar.gz |
Add teken_subr_do_resize new method, to update taken sizes w/o reset positions
and use it in case we update terminal size not touching existing data.
Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'sys/teken/teken_subr.h')
-rw-r--r-- | sys/teken/teken_subr.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sys/teken/teken_subr.h b/sys/teken/teken_subr.h index 64f4e54..f25ab6a 100644 --- a/sys/teken/teken_subr.h +++ b/sys/teken/teken_subr.h @@ -956,6 +956,15 @@ teken_subr_reset_mode(teken_t *t, unsigned int cmd) } static void +teken_subr_do_resize(teken_t *t) +{ + + t->t_scrollreg.ts_begin = 0; + t->t_scrollreg.ts_end = t->t_winsize.tp_row; + t->t_originreg = t->t_scrollreg; +} + +static void teken_subr_do_reset(teken_t *t) { |