pagedown
ba0f61d752
Refactor: More f-string for kitty
2022-01-29 20:17:46 +08:00
Kovid Goyal
6546c1da9b
run pyupgrade to upgrade the codebase to python3.6
2021-10-21 12:43:55 +05:30
Kovid Goyal
5841776c65
Add the BEGIN key to terminfo
...
Fixes #4101
2021-10-07 13:15:06 +05:30
Kovid Goyal
473e1a6f22
Fix #3926
...
Apparently nvim assumes cnorm doesn't affect cursor shape. It's
ambiguous whether cnorm should affect it or not. So to prevent
regressions in case other programs assume that as well, have it only
make the cursor visible and blinking, without changing its shape.
2021-08-13 09:31:18 +05:30
Kovid Goyal
3287798efe
terminfo: Fix "cnorm" the property for setting the cursor to normal using a solid block rather than a blinking block cursor
...
cnorm should match the default cursor in kitty, which is a blinking
block. Fixes #3906
2021-08-07 15:15:59 +05:30
Kovid Goyal
610a09817f
Fix incorrect Sync terminfo entry
2021-07-03 09:18:33 +05:30
Kovid Goyal
b2a219f9d8
Add the Sync non-standard capability for synchronized updates to terminfo
...
Since the geniuses at terminal-wg are trying their best to create chaos
by retroactively changing the escape code used for this feature, it is
good to have a property for it in terminfo. Since tmux already uses Sync
for it, follow that in kitty's terminfo.
2021-07-01 08:48:59 +05:30
Kovid Goyal
890a149a5d
Move generation of query responses into the query classes
2021-06-24 12:31:17 +05:30
Kovid Goyal
63a36a1054
Add Smulx to terminfo
...
A couple of other terminals use it for styled underlines, in
contravention of the spec. But, in the interests of wider
interoperability add it to kitty as well.
Fixes #3725
2021-06-14 11:58:52 +05:30
Kovid Goyal
6d7df1c5e8
Refactor configuration file parsing
...
Now the time for importing the kitty.config module has been halved, from
16ms from 32ms on my machine. Also, the new architecture will eventually
allow for auto generating a bunch of python-to-C boilerplate code.
2021-05-31 17:40:49 +05:30
Bartosz Wróblewski
6bbe995d64
Generate u[6789] with terminfo.py
...
Should not hurt anything, it's just documenting kitty's existing VT220 compatibility.
2020-12-28 14:05:25 -08:00
Kovid Goyal
91a714947c
Fix encoding error when reporting capabilities for number of colors
2020-10-12 22:39:05 +05:30
Kovid Goyal
6a755bda45
A new kitten to easily query kitty for config values
2020-10-07 13:35:16 +05:30
Andrew Mayorov
390e883ecf
Update terminfo with CSI REP support
2020-05-29 01:06:16 +03:00
Vlad Hanciuta
a61d70ea9a
Add strikethrough capabilities to terminfo
...
The termcap aliases are not standard, but they are used by Vim, it
seems. As far as I can tell, there are no standard termcap attribute for
strikethrough.
2020-04-18 16:37:09 +01:00
Kovid Goyal
d3f37eeba4
more typing work
2020-03-14 11:42:05 +05:30
Kovid Goyal
cc1336a616
More typing work
...
Also use a mypy based linter when editing
2020-03-08 11:02:14 +05:30
Kovid Goyal
c9ce2f47dc
No top level typing issues found in kitty package
2020-03-04 07:31:22 +05:30
Luflosi
088ab5f137
Fix typo
2019-12-19 13:40:08 +01:00
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
Yuri Khan
992de77040
Declare more function and editing keys with modifiers
...
Resolves #1220 .
2018-12-11 23:42:59 +07:00
Dominique Martinet
07a4cec616
reset terminfo: add an empty OSC sequence to rs1 string
...
In OSC/OTH mode, the parser accumulate bytes until it fills up or
encounters some end-of-osc sequence.
After entering in either of these mode by mistake, for example by
displaying random bytes (e.g. cat a binary) nothing would print anymore
but input would still work.
In that situation, being able to hit `reset` and recover a usable
terminal helps.
You can try with `echo -e '\xc2\x9e'` for PM
2018-11-30 15:51:38 +09:00
Kovid Goyal
a91b3b9487
Revert addition of RGB to terminfo
...
See discussion 18fe2e8dfa
2018-11-21 10:33:55 +05:30
Kovid Goyal
18fe2e8dfa
Add the new RGB boolean capability to terminfo to indicate we support truecolor
...
See https://gist.github.com/XVilka/8346728#detection
2018-11-15 13:59:15 +05:30
Kovid Goyal
160fbd2071
Add a terminfo entry for full keyboard mode
...
Fixes #1122
2018-11-05 08:11:35 +05:30
Kovid Goyal
6c4aeeeadd
...
2018-10-10 09:39:53 +05:30
Kovid Goyal
8f7139d48f
Also respond to a terminfo query for "name" in addition to "TN"
2018-09-11 21:41:50 +05:30
Kovid Goyal
8b3b0064a9
...
2018-08-29 18:57:51 +05:30
Luflosi
1d91edfb00
dont -> don't
2018-08-29 03:18:25 +02:00
Kovid Goyal
fda57a81e1
Fix Shift+function key not working
...
Also support pressing F13-f25 function keys. Fixes #485
2018-04-23 11:28:02 +05:30
Kovid Goyal
ed75ad0d41
Log a timestamp as well when printing error messages from python
2018-03-04 10:44:28 +05:30
Kovid Goyal
976c322b83
Print a couple of errors to stderr instead of stdout
2018-03-04 08:58:36 +05:30
Kovid Goyal
2ab6f57159
Add non-standard terminfo capabilities
...
Advertises support for truecolor and styled underlines.
The truecolor properties are used by at least tmux and neovim.
2018-02-08 10:26:13 +05:30
Kovid Goyal
273735f9dc
...
2018-01-31 10:14:08 +05:30
Kovid Goyal
c17c6cae4c
Support S8C1T mode
...
That is, eight bit control codes. When in S8C1T mode, kitty will send
only eight bit control codes to the client.
2017-12-05 20:21:12 +05:30
Kovid Goyal
52ecdfe3a9
Fix incorrect termcap query responses
...
Did not realize that the responses had to be processed via tparm() i.e.
they should be the actual bytes not the textual representation of them.
This broke the backspace key in vim.
2017-12-03 21:34:55 +05:30
Kovid Goyal
b9798c74d4
Support for DCS status and capabilities reporting codes
2017-12-02 14:35:06 +05:30
Kovid Goyal
e86c2f2000
Fix shift+up/down not generating correct escape codes
...
Fixes #186
2017-11-26 17:34:34 +05:30
Kovid Goyal
142c883b0c
Implement DECCKM
2017-02-05 15:30:16 +05:30
Kovid Goyal
0d38a2ea31
Ignore exceptions when printing error messages
2017-01-10 17:17:23 +05:30
Kovid Goyal
2be49e7f66
Add the status line capabilities to terminfo
2016-12-10 08:40:03 +05:30
Kovid Goyal
83787fbc40
Add the missing op terminfo code
2016-11-30 22:27:41 +05:30
Kovid Goyal
7fd15be071
Send the correct escape code for backspace
2016-11-29 12:36:37 +05:30
Kovid Goyal
3031d41e72
Start work on supporting changing of entries in the color table
2016-11-24 15:28:52 +05:30
Kovid Goyal
ca7eb5baa9
Add the missing original colors code
2016-11-24 13:22:49 +05:30
Kovid Goyal
27170a481f
Define shifted variants for a few common keys
2016-11-24 12:57:37 +05:30
Kovid Goyal
bbea86020a
Implement DCS querying of terminfo data
2016-11-24 12:12:19 +05:30
Kovid Goyal
bfeddfa35e
Use the terminfo definition to setup keymaps
...
DRYer
2016-11-24 11:45:26 +05:30
Kovid Goyal
8610bffb40
Make terminfo data available in program
2016-11-24 11:29:28 +05:30