summaryrefslogtreecommitdiffstats
path: root/sys/teken/teken.c
diff options
context:
space:
mode:
authorray <ray@FreeBSD.org>2013-10-31 09:44:48 +0000
committerray <ray@FreeBSD.org>2013-10-31 09:44:48 +0000
commita2f43a333929fa6b49c089d9784d8729fc4ac198 (patch)
tree11c2e65900dc71865804f3bb32a7b8030f9830ab /sys/teken/teken.c
parent630a3895d30eb6c0180ef08707c747fb080bf20c (diff)
downloadFreeBSD-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.c')
-rw-r--r--sys/teken/teken.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/teken/teken.c b/sys/teken/teken.c
index 8ca88d2..a54c9f9 100644
--- a/sys/teken/teken.c
+++ b/sys/teken/teken.c
@@ -347,6 +347,14 @@ teken_set_winsize(teken_t *t, const teken_pos_t *p)
}
void
+teken_set_winsize_noreset(teken_t *t, const teken_pos_t *p)
+{
+
+ t->t_winsize = *p;
+ teken_subr_do_resize(t);
+}
+
+void
teken_set_8bit(teken_t *t)
{
OpenPOWER on IntegriCloud