16 Commits

Author SHA1 Message Date
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 4af1a38507 More linter fixes 2023-09-24 09:06:15 +05:30
Kovid Goyal f8b8f68e38 Make wait_for_write_complete more robust
It now actually waits for the expected sentinel id even when there are
no pending writes
2023-08-08 17:17:51 +05:30
Kovid Goyal 0e87e0c7de Work on refactoring send kitten to fix various issues 2023-08-08 06:28:43 +05:30
Kovid Goyal 04febb20d5 ... 2023-08-07 15:45:46 +05:30
Kovid Goyal bd68dc75f3 simplify code 2023-08-07 12:57:01 +05:30
Kovid Goyal 2a5a89e01c Speed up write performance to loop
20x speed for large numbers of queued writes by avoiding pinging between
the writer and main goroutines
2023-08-05 13:53:32 +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 bf7d27691c Also add the EINTR fix from previous commit to writing to loop 2023-01-18 16:09:19 +05:30
Kovid Goyal ef49634353 Fix some issues reported by staticcheck 2022-11-14 15:42:01 +05:30
Kovid Goyal ea8fb10c05 Password input: Handle SIGTSTP 2022-11-14 15:41:55 +05:30
Kovid Goyal 5cc5759f3e flush_pending_writes must be non-blocking 2022-11-14 15:41:54 +05:30
Kovid Goyal a75d59643c Use one less channel 2022-11-14 15:41:52 +05:30
Kovid Goyal bf35817d73 No need to store most channels on self 2022-11-14 15:41:52 +05:30
Kovid Goyal 1b90c03304 Refactor loop code into its own package 2022-11-14 15:41:52 +05:30