diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-08-20 19:22:30 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-08-20 19:22:30 +0200 |
commit | b28c3db57884d406d5a39750fdc9e46baeb139af (patch) | |
tree | 1eda6f403ac77e46d3a9f5098a0b6869aec7a00d /sys/src/cmd/vt/vt.c | |
parent | bc54898807d27e79ba9f1b595ef3e09e3da67522 (diff) |
vt: implement /dev/cons and /dev/consctl as a fileserver, winch, incremental redraw
we used to bind a pipe to /dev/cons and /dev/consctl with some
shared segment hack to pass tty info arround. now we implement
this as a fileserver.
add support for "winchon"/"winchoff" ctl message to enable interrupt
on window size change. (used by ssh)
keep track of fullscreen scrolls, avoiding redrawing the whole
screen each time.
Diffstat (limited to 'sys/src/cmd/vt/vt.c')
-rw-r--r-- | sys/src/cmd/vt/vt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/src/cmd/vt/vt.c b/sys/src/cmd/vt/vt.c index 9a0c0fc48..d7e69465c 100644 --- a/sys/src/cmd/vt/vt.c +++ b/sys/src/cmd/vt/vt.c @@ -23,10 +23,11 @@ #include <u.h> #include <libc.h> #include <draw.h> -#include <bio.h> -#include <ctype.h> + #include "cons.h" +#include <ctype.h> + int wraparound = 1; int originrelative = 0; |