diff options
author | Xiao-Yong Jin <meta.jxy@gmail.com> | 2022-05-11 04:02:57 +0000 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2022-05-11 04:02:57 +0000 |
commit | 0aa00960661531ff5a635d9c418901323299e4b4 (patch) | |
tree | dbbea9317c0c2b5e54b58d0ac7ab2afebdae341f /sys/src/cmd/vt | |
parent | e614e819e39c179945fc52cb1df0505c464620cf (diff) |
vt: increase buffer size
This patch increases the buffer sizes in vt(1) to reduce
the latency from the roundtrip between terminal and cpu
server.
Diffstat (limited to 'sys/src/cmd/vt')
-rw-r--r-- | sys/src/cmd/vt/cons.h | 2 | ||||
-rw-r--r-- | sys/src/cmd/vt/main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/vt/cons.h b/sys/src/cmd/vt/cons.h index 76102b745..d6483ae64 100644 --- a/sys/src/cmd/vt/cons.h +++ b/sys/src/cmd/vt/cons.h @@ -8,7 +8,7 @@ struct Consstate{ extern Consstate cs[]; #define INSET 2 -#define BUFS 32 +#define BUFS 256 #define HISTSIZ (64*1024) /* number of history characters */ #define BSIZE (8*1024) diff --git a/sys/src/cmd/vt/main.c b/sys/src/cmd/vt/main.c index 33bce24ca..c6ec70976 100644 --- a/sys/src/cmd/vt/main.c +++ b/sys/src/cmd/vt/main.c @@ -311,7 +311,7 @@ threadmain(int argc, char **argv) sysfatal("initkeyboard failed: %r"); hc[0] = chancreate(sizeof(char*), 256); /* input to host */ - hc[1] = chancreate(sizeof(Rune*), 8); /* output from host */ + hc[1] = chancreate(sizeof(Rune*), 256); /* output from host */ cs->raw = rflag; |