[hackers] [scroll] add comment for terminal settings || Jan Klemkow

From: <git_AT_suckless.org>
Date: Mon, 13 Apr 2020 22:11:40 +0200 (CEST)

commit c63796d9bdb510b9486b684d93bdd2658ac3abd3
Author: Jan Klemkow <j.klemkow_AT_wemelug.de>
AuthorDate: Mon Apr 13 21:58:06 2020 +0200
Commit: Jan Klemkow <j.klemkow_AT_wemelug.de>
CommitDate: Mon Apr 13 21:58:26 2020 +0200

    add comment for terminal settings

diff --git a/scroll.c b/scroll.c
index 7c96ecc..1d65cd0 100644
--- a/scroll.c
+++ b/scroll.c
_AT_@ -449,8 +449,8 @@ main(int argc, char *argv[])
 
         struct termios new = dfl;
         cfmakeraw(&new);
- new.c_cc[VMIN ] = 1;
- new.c_cc[VTIME] = 0;
+ new.c_cc[VMIN ] = 1; /* return read if at least one byte in buffer */
+ new.c_cc[VTIME] = 0; /* no polling time for read from terminal */
         if (tcsetattr(STDIN_FILENO, TCSANOW, &new) == -1)
                 die("tcsetattr:");
 
Received on Mon Apr 13 2020 - 22:11:40 CEST

This archive was generated by hypermail 2.3.0 : Mon Apr 13 2020 - 22:12:46 CEST