Mitchell Hashimoto
e15db88656
termio: use new formatter, palette helper for kitty color protocol
2024-08-20 23:36:45 -04:00
Mitchell Hashimoto
e12cfe80b0
terminal: formatter for kitty color protocol kinds
2024-08-20 23:31:34 -04:00
Mitchell Hashimoto
3b2ed40854
terminal: stylistic tweaks to kitty color protocol parsing
2024-08-20 23:21:28 -04:00
Mitchell Hashimoto
f4b2925434
terminal: make kitty color tests a bit more readable
2024-08-20 23:06:09 -04:00
Jeffrey C. Ollie
a2ef0ca751
Address review comments.
...
- Cap the total number of requests at twice the maximum number of
keys (currently 263, so 526 requests). Basically you can set and then
query every key in one message. This is an absurdly high number
but should prevent serious DOS attacks.
- Clarify meaning of new hex color codes.
- Better handle sending messages to the renderer in a way that should
prevent deadlocks.
- Handle 0-255 palette color requests by creatively using non-exhautive
enums.
- Fix an error in the query reply.
2024-08-19 00:22:09 -05:00
Jeffrey C. Ollie
254072e656
fix test error and improve error logging
2024-08-17 15:34:35 -05:00
Jeffrey C. Ollie
b11b8be124
Implement Kitty Color Protocol (OSC 21)
...
Kitty 0.36.0 added support for a new OSC escape sequence for
quering, setting, and resetting the terminal colors. Details
can be found [here](https://sw.kovidgoyal.net/kitty/color-stack/#setting-and-querying-colors ).
This fully parses the OSC 21 escape sequences, but only supports
actually querying and changing the foreground color, the background
color, and the cursor color because that's what Ghostty currently
supports. Adding support for the other settings that Kitty supports
changing ranges from easy (cursor text) to difficult (visual bell,
second transparent background color).
2024-08-17 07:05:28 -05:00
Mitchell Hashimoto
dd9e1d9fa7
Merge pull request #2110 from ghostty-org/yeet-usingns2
...
Yeet Usingnamespace (Part 2, no calls in the repository)
2024-08-16 17:21:42 -07:00
Mitchell Hashimoto
fd37e6a351
pkg/harfbuzz: yeet usingns
2024-08-16 17:00:58 -07:00
Mitchell Hashimoto
38a7a55300
pkg/fontconfig: yeet usingns
2024-08-16 16:58:16 -07:00
Mitchell Hashimoto
d7299b16bf
apprt/gtk: fix imgui calls
2024-08-16 16:53:17 -07:00
Mitchell Hashimoto
7a7f7da4ef
pkg: yeet more usingns
2024-08-16 16:52:28 -07:00
Mitchell Hashimoto
318dc85c02
pkg/macos: yeet more usingns
2024-08-16 16:50:41 -07:00
Mitchell Hashimoto
17d844e7bf
pkg/macos: more
2024-08-16 16:39:33 -07:00
Mitchell Hashimoto
a4c05e4a32
pkg/macos: graphics usingns yeet
2024-08-16 16:38:04 -07:00
Mitchell Hashimoto
097b978052
pkg/macos: animation yeet usingns
2024-08-16 16:35:07 -07:00
Mitchell Hashimoto
2f578a0b97
pkg/macos: foundation yeet usingns
2024-08-16 16:33:47 -07:00
Mitchell Hashimoto
480487b440
pkg/utf8proc: yeet usingns
2024-08-16 16:28:39 -07:00
Mitchell Hashimoto
59755363a3
pkg/pixman: remove usingns
2024-08-16 15:41:50 -07:00
Mitchell Hashimoto
ea73edaf7f
pkg/harfbuzz: fix c.zig
2024-08-16 15:38:18 -07:00
Mitchell Hashimoto
0e2eb85989
pkg/glslang: yeet usingns
2024-08-16 15:36:31 -07:00
Mitchell Hashimoto
91431a90a1
pkg/freetype: remove usingns
2024-08-16 15:34:46 -07:00
Mitchell Hashimoto
c49b3b94b9
pkg/oni: yeet usingnamespace
2024-08-16 15:32:21 -07:00
Mitchell Hashimoto
f13ea7cace
pkg/opengl: yeet usingns
2024-08-16 15:28:22 -07:00
Mitchell Hashimoto
7299a02645
Merge pull request #2108 from ghostty-org/yeet-usingns
...
Yeet Usingnamespace (Partial)
2024-08-16 15:16:40 -07:00
Mitchell Hashimoto
a9107e7eb6
apprt/embedded: fix usingnamespace usage
2024-08-16 15:00:07 -07:00
Mitchell Hashimoto
9409e3072f
apprt/gtk: remove usingnamespace
2024-08-16 14:58:04 -07:00
Mitchell Hashimoto
c3e37b7e15
move global state to dedicated file
2024-08-16 14:43:00 -07:00
Mitchell Hashimoto
b65a804bb2
almost yeeted it all!
2024-08-16 14:42:32 -07:00
Mitchell Hashimoto
ba29bf759b
lots more yeeting
2024-08-16 14:35:10 -07:00
Mitchell Hashimoto
677f0376a0
os: yeet usingns
2024-08-16 14:29:08 -07:00
Mitchell Hashimoto
d0ca949c09
os: start yeeting
2024-08-16 10:57:19 -07:00
Mitchell Hashimoto
29de3e80f1
config: yeet usingns
2024-08-16 10:49:37 -07:00
Mitchell Hashimoto
14e3f43db2
font: yeet usingns
2024-08-16 10:47:15 -07:00
Mitchell Hashimoto
b660380b01
renderer: yeet usingns
2024-08-16 10:43:32 -07:00
Mitchell Hashimoto
9f52a963f5
pty: remove usingns
2024-08-16 10:37:31 -07:00
Mitchell Hashimoto
3404f8e53a
termio: yeet usingns
2024-08-16 10:36:10 -07:00
Mitchell Hashimoto
d8f43b34ba
terminal: yeet usingnamespace
2024-08-16 10:32:43 -07:00
Mitchell Hashimoto
dbeb4c1a4a
apprt: yeet usingnamespace
2024-08-16 10:19:46 -07:00
Mitchell Hashimoto
6a44d3196d
input: yeet usingnamespace
2024-08-16 10:16:46 -07:00
Mitchell Hashimoto
caf0355b5c
Merge pull request #2105 from Uzaaft/patch-1
...
docs: Update how people should vouch for friend
2024-08-16 09:40:36 -07:00
Uzair Aftab
8cb1677ad9
docs: Update how to vouch for friends in README_TESTERS.md
2024-08-16 11:35:13 +02:00
Mitchell Hashimoto
bbc7070c9e
Merge pull request #2104 from qwerasd205/grayscale-kitty-images
...
kitty graphics: support loading 1 channel grayscale images
2024-08-15 19:50:48 -07:00
Qwerasd
37872afbce
kitty graphics: support loading 1 channel grayscale images
2024-08-15 21:38:46 -04:00
Mitchell Hashimoto
da8e4c7f95
Merge pull request #2102 from qwerasd205/misc-fix
...
Misc fixes
2024-08-15 16:48:27 -07:00
Qwerasd
c37ee6c428
fix(terminal): proper style cleanup in cursorCopy
...
Old implementation sometimes resulted in an attempt to free the style
from a different page than it originates. This way is also generally
cleaner.
2024-08-15 19:08:12 -04:00
Qwerasd
16284dbb3f
test(terminal/Screen): add failing unit test for cursorCopy
...
Detects issue with style reference counting when the cursor is moved
across pages during the copy.
2024-08-15 19:06:41 -04:00
Mitchell Hashimoto
78e9e9f93a
Merge pull request #2100 from qwerasd205/mac-opengl
...
macos/opengl: lock context while rendering to stop resize crashes
2024-08-15 14:25:20 -07:00
Mitchell Hashimoto
bc667714dd
renderer/opengl: add comment explaning ogl lock on darwin
2024-08-15 14:25:05 -07:00
Qwerasd
0c11d256c8
RefCountedSet: use usize for living count to avoid overflow
2024-08-15 16:28:27 -04:00