terminal: set VMIN and VTIME in non-canonical mode
commit2c6860211f211dfa5625dd1a5a69a802b4384dbb
authorPhillip Wood <phillip.wood@dunelm.org.uk>
Tue, 22 Feb 2022 18:53:34 +0000 (22 18:53 +0000)
committerJunio C Hamano <gitster@pobox.com>
Wed, 23 Feb 2022 21:30:06 +0000 (23 13:30 -0800)
treeef88ebfabe8a26531f77664529082014a467b5b5
parentf7da756566e8abf18abdf9e30a8ed6d2088770de
terminal: set VMIN and VTIME in non-canonical mode

If VMIN and VTIME are both set to zero then the terminal performs
non-blocking reads which means that read_key_without_echo() returns
EOF if there is no key press pending. This results in the user being
unable to select anything when running "git add -p".  Fix this by
explicitly setting VMIN and VTIME when enabling non-canonical mode.

Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/terminal.c