commit c63796d9bdb510b9486b684d93bdd2658ac3abd3
Author:     Jan Klemkow <[email protected]>
AuthorDate: Mon Apr 13 21:58:06 2020 +0200
Commit:     Jan Klemkow <[email protected]>
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
@@ -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:");
 

Reply via email to