Kovid Goyal
9919767aef
Remove unused code
2023-03-30 10:26:39 +05:30
Kovid Goyal
94db6053d5
Turn off atomic update during direct transmission
2023-03-27 20:54:03 +05:30
Kovid Goyal
bf773351ed
DRYer
2023-03-17 11:00:00 +05:30
Kovid Goyal
509a45b579
Dont request release events for most kittens
...
They are not needed and there is always a small risk that a release
event could be delivered after the kitten has stopped reading from the
tty, thereby leaking into the environment.
2023-03-17 10:50:10 +05:30
Kovid Goyal
ffb3b073d7
Convenient loop API to print styled strings
2023-03-14 12:29:44 +05:30
Kovid Goyal
e043fef257
Synthesize click events in the loop
2023-03-07 07:57:14 +05:30
Kovid Goyal
37cebbc817
Implement decoding of mouse events in Go
2023-03-07 07:20:46 +05:30
Kovid Goyal
67436a48cd
New API to suspend a loop
2023-02-14 22:27:41 +05:30
Kovid Goyal
97467acb1f
kitten @ cmd: Dont generate key release events
...
We dont need them and they sometimes can spill over into the prompt if
the command is very fast.
2023-01-23 16:18:46 +05:30
Kovid Goyal
2d846f53a1
...
2023-01-18 14:44:40 +05:30
Kovid Goyal
5edb1e2d6b
micro-optimization
2023-01-18 09:58:29 +05:30
Kovid Goyal
22d69d24d0
Fix panic when no timers are left after dispatch
2023-01-05 19:15:11 +05:30
Kovid Goyal
a721ffeb7d
Finish porting clipboard kitten to Go
2022-11-26 15:15:30 +05:30
Kovid Goyal
86af1d5c16
Wrap EOF errors when doing terminal I/O
2022-11-16 22:23:00 +05:30
Kovid Goyal
87108a18ef
Add a callback for wakeups
2022-11-15 18:01:21 +05:30
Kovid Goyal
834385baff
Improve performance when pasting large amounts of text into readline by not redrawing on every char
2022-11-14 15:42:05 +05:30
Kovid Goyal
350060e0f6
...
2022-11-14 15:42:04 +05:30
Kovid Goyal
a7f6105393
Use Unsafe rather than Dangerous to be consistent
2022-11-14 15:41:55 +05:30
Kovid Goyal
ea8fb10c05
Password input: Handle SIGTSTP
2022-11-14 15:41:55 +05:30
Kovid Goyal
67115530b4
Make the loop API a thin wrapper around internal methods
2022-11-14 15:41:55 +05:30
Kovid Goyal
dcec926590
Do not allow adding timers before loop is run
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