Kovid Goyal
d548a6fcf4
rename typing module to avoid conflicts with stdlib typing
2025-04-28 09:20:10 +05:30
Kovid Goyal
da1626090a
Update codebase to Python 3.10 using pyupgrade
2025-02-03 10:56:50 +05:30
Kovid Goyal
77292a16d6
Make shebangs consistent
...
Follow PEP 0394 and use /usr/bin/env python so that the python in the
users venv is respected. Not that the kitty python files are meant to be
executed standalone anyway, but, whatever.
Fixes #6810
2023-11-11 08:32:05 +05:30
Kovid Goyal
7fe5d7b58f
Replace isort with ruff
2023-01-09 16:47:42 +05:30
Kovid Goyal
5bf5454dbe
Nicer fix for #5469
2022-09-04 22:15:17 +05:30
Kovid Goyal
31fe35cd38
Fix #5469
2022-09-04 13:58:16 +05:30
Kovid Goyal
a89e1b5573
Fix horizontal wheel events not being reported to client programs when they grab the mouse
...
Fixes #2819
2022-06-18 06:47:42 +05:30
pagedown
16c6545e93
Report overlay ready in case of no match
2022-03-25 22:52:35 +08:00
Kovid Goyal
bfb8532c52
Jump through the hoops needed to ensure error reporting is done in case of early termination of kittens that use overlay ready notifications
2022-03-24 08:49:36 +05:30
pagedown
cafc3973ec
mouse_demo: Add mouse scroll wheel buttons
2022-02-13 16:45:48 +08:00
pagedown
436a57a61e
mouse_demo: Fix mouse extra button bit mask
2022-02-13 16:36:51 +08:00
Kovid Goyal
715925795f
Ignore errors in various finalizers during exit
...
This was needed for tui loop to exit cleanly when terminal i/o breaks
2021-11-17 15:43:26 +05:30
Kovid Goyal
17a48f6b9f
TUI: exit cleanly when I/O to terminal fails
2021-11-17 15:33:23 +05:30
Kovid Goyal
5c7a1d1b05
Fix typo
2021-11-17 15:19:17 +05:30
Kovid Goyal
60472fcee3
Add more type annotations
2021-10-27 14:00:29 +05:30
Kovid Goyal
6546c1da9b
run pyupgrade to upgrade the codebase to python3.6
2021-10-21 12:43:55 +05:30
Kovid Goyal
44bcbc4823
Make it easier to handle simple click events
2021-09-28 20:12:55 +05:30
Kovid Goyal
066dfc71aa
A kitten to demo mouse handling
2021-09-28 13:48:56 +05:30
Kovid Goyal
3c742a0037
Use pixel mode for mouse tracking in kittens
2021-09-28 12:46:41 +05:30
Kovid Goyal
f3447d187d
Allow handlers to ask for mouse events
2021-09-28 09:32:53 +05:30
Kovid Goyal
259ca4a11e
Speed up parsing of file transfer OSC codes
...
Avoid roundtrips between unicode and bytes objects
2021-09-25 14:05:21 +05:30
Kovid Goyal
e8e7ad3b75
DRYer
2021-09-16 18:34:51 +05:30
Kovid Goyal
f9c99a61d4
More work on file transfer
2021-09-09 12:59:31 +05:30
Kovid Goyal
8aacf30f19
Centralize definition of file transfer OSC code
2021-09-08 13:43:59 +05:30
Kovid Goyal
ff191c9404
clipboard kitten: fix copies to clipboard not working without the --wait-for-completion option
2021-07-24 07:55:50 +05:30
Kovid Goyal
af956f4d84
Fix debug print for long strings
2021-07-19 16:56:10 +05:30
Kovid Goyal
cdd8e52116
DRYer
2021-07-11 21:39:08 +05:30
Kovid Goyal
c989a7198b
Add support for the keypad Begin key
...
Fixes #3468
2021-04-11 07:58:27 +05:30
Kovid Goyal
9c6ba213f9
Fix key handling in diff kitten
2021-01-16 20:52:14 +05:30
Kovid Goyal
027c5a57f1
Work on porting kittens to use new key infrastructure
...
Also move type definitions into their own module
2021-01-16 20:52:14 +05:30
Kovid Goyal
34db18ea0a
Also transmit key events when broadcasting
2020-12-01 14:11:50 +05:30
Kovid Goyal
ed2dae5884
Fix error when sending empty write buf
2020-12-01 12:25:09 +05:30
Kovid Goyal
df61ee4ac3
...
2020-12-01 11:39:50 +05:30
Kovid Goyal
dab555ea3b
kittens: Dont discard pending input on startup
...
Fixes #3012
2020-10-06 16:39:00 +05:30
Kovid Goyal
382c31ddf2
Use a stub rather than TYPE_CHECKING
2020-03-15 13:27:40 +05:30
Kovid Goyal
2d4f194f0d
more typing work
2020-03-11 09:43:28 +05:30
Kovid Goyal
ce94a9b2df
More typing work
2020-03-11 09:35:59 +05:30
Kovid Goyal
ac2c21e046
more typing work
2020-03-09 16:13:00 +05:30
Kovid Goyal
27524bfc3d
Restore global key definitions so as not to break third party kittens that might use them
2020-03-03 15:06:10 +05:30
Kovid Goyal
8843ded1c9
Refactor key encoding
...
Cannot have key names in global namespace as not all key names are valid
python identifiers. So move them into a dict.
2020-03-03 14:54:30 +05:30
Kovid Goyal
8ebad06e7e
clipboard kitten: Add a --wait-for-completion option to have the kitten wait till copying to clipboard is complete
...
Fixes #1693
2019-06-07 07:13:15 +05:30
Luflosi
a792c94ccf
Use python3 shebang for all python scripts
...
Fixes #1624 .
Use python3 shebang for all python scripts as python still defaults to python2 on many systems.
2019-05-20 14:44:24 +02:00
Kovid Goyal
9fdd8e4ae4
macOS: Fix some kittens causing 100% CPU usage
2019-01-19 14:01:36 +05:30
Kovid Goyal
2c3235d452
Remove need to call super-class on_resize method
2018-07-15 16:19:54 +05:30
Kovid Goyal
0b662ecb9a
Refactor the kittens tui loop to use asyncio
...
Gets us timers and various jobs for free, and makes it easier to
integrate with libraries that use asyncio from the larger python
ecosystem.
2018-07-15 15:27:35 +05:30
Kovid Goyal
e8f7a2b345
Dont send on_text events with empty text
2018-06-16 08:55:10 +05:30
Kovid Goyal
02ac2336bd
DRYer
2018-06-09 12:47:52 +05:30
Kovid Goyal
c094ebce07
Set VMIN to 1 as without it poll() returns immediately even when no data is available to read on macOS
2018-06-09 11:17:12 +05:30
Kovid Goyal
65ed9c759c
...
2018-06-09 11:10:58 +05:30
Kovid Goyal
83fe2438f9
Forgot to port the exception handler loop
2018-06-09 11:08:25 +05:30