From 794c36be32a4af3cd94d5016d1014b54a2febe87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20M=C3=B6ller?= Date: Wed, 27 Feb 2002 15:37:20 +0100 Subject: [PATCH] (do_make_raw): Modify the terminal's VMIN and VTIME values. Rev: src/unix_interact.c:1.15 --- src/unix_interact.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/unix_interact.c b/src/unix_interact.c index 467acc5b..cf46a899 100644 --- a/src/unix_interact.c +++ b/src/unix_interact.c @@ -257,9 +257,14 @@ do_make_raw(struct terminal_attributes *s) CAST(unix_termios, self, s); CLONED(unix_termios, res, self); - /* FIXME: Modify the VMIN and TIME attributes. */ CFMAKERAW(&res->ios); + /* Modify VMIN and VTIME, to save some bandwidth and make traffic + * analysis of interactive sessions a little harder. */ + res->ios.c_cc[VMIN] = 4; + /* Inter-character timer, in units of 0.1s */ + res->ios.c_cc[VTIME] = 1; + return &res->super; } -- GitLab