]> git.99rst.org Git - git.git/commit
terminal: work around macos poll() bug
authorPhillip Wood <redacted>
Wed, 16 Mar 2022 18:54:04 +0000 (18:54 +0000)
committerJunio C Hamano <redacted>
Wed, 16 Mar 2022 19:24:44 +0000 (12:24 -0700)
commit6606d99bae4161289d498b51a21acd11aa09e6ef
treec22dcea648e0905ef7f38349408747be8732afe9
parente4938ce3cc5967c2366db289ca854b0b796a5afd
terminal: work around macos poll() bug

On macos the builtin "add -p" does not handle keys that generate
escape sequences because poll() does not work with terminals
there. Switch to using select() on non-windows platforms to work
around this.

Signed-off-by: Phillip Wood <redacted>
Signed-off-by: Junio C Hamano <redacted>
compat/terminal.c
git clone https://git.99rst.org/PROJECT