Commit 794c36be authored by Niels Möller's avatar Niels Möller

(do_make_raw): Modify the terminal's VMIN

and VTIME values.

Rev: src/unix_interact.c:1.15
parent 13f5e4f6
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment