Kovid Goyal
5e158f90a7
Fix some responses from terminal sometimes leaking into shell on after kitten exit
...
Always do a roundtrip at kitten exit, except for special purpose
kittens. This slows down exit by one round trip time (capped at 2
seconds), however it ensures that we never get terminal response leak.
Fixes #9839
2026-04-10 15:14:38 +05:30
Kovid Goyal
b627d2e4ab
Move error handling code into its own library
2025-10-12 13:51:16 +05:30
Kovid Goyal
f067e9cd92
Make various goroutines panic-safe
2025-10-09 07:17:53 +05:30
Kovid Goyal
c861259e3b
Rename go module from kitty -> github.com/kovidgoyal/kitty
...
Makes the code more easily re-useable in other projects
2025-05-16 08:43:39 +05:30
Kovid Goyal
fc463aaba5
Code to query terminal for capabilities
2025-01-03 21:30:05 +05:30
Kovid Goyal
cc1f0bc3fe
Function to drain controlling tty
2023-01-23 16:07:00 +05:30
Kovid Goyal
26ca3f9bad
Simplify code
2023-01-18 16:16:11 +05:30
Kovid Goyal
22532b4805
kitten @: Fix occasional hang until key is pressed while waiting for response from terminal
...
Fixes #5890
2023-01-18 16:07:42 +05:30
Kovid Goyal
63077e5432
Dont do extremely small reads
2023-01-18 10:13:07 +05:30
Kovid Goyal
9db1d581f7
DRYer
2022-11-16 22:37:27 +05:30
Kovid Goyal
b3bc5a5565
...
2022-11-16 22:35:59 +05:30
Kovid Goyal
fc20e8d04b
Fix spurious EOF error when select for reading from the tty fails with a temporary error
2022-11-16 22:32:35 +05:30
Kovid Goyal
1058c999c8
...
2022-11-14 15:42:04 +05:30
Kovid Goyal
ef49634353
Fix some issues reported by staticcheck
2022-11-14 15:42:01 +05:30
Kovid Goyal
1b90c03304
Refactor loop code into its own package
2022-11-14 15:41:52 +05:30