1
0
mirror of git://git.suckless.org/st synced 2025-12-17 04:33:10 +01:00
Files
st/st.c
Roberto E. Vargas Caballero e52319cc7d ttyread: test for EOF while reading tty
When a read operation returns 0 then it means that we arrived to the end of the
file, and new reads will return 0 unless you do some other operation such as
lseek(). This case happens with USB-232 adapters when they are unplugged.
2020-04-11 15:23:23 +02:00

55 KiB