Mitchell Hashimoto
8dd8bae0cd
config: empty value for RepeatableString resets the list
2024-01-03 09:35:03 -08:00
Mitchell Hashimoto
b4f403f152
font-family settings are repeatable to specify fallback
2024-01-03 09:30:12 -08:00
Mitchell Hashimoto
98237b112f
config: RepeatableString is null-terminated now
...
This makes it easier for these values to interface with C APIs
2024-01-03 09:24:15 -08:00
Mitchell Hashimoto
36013dcaa6
Merge pull request #1203 from jcollie/tokenize-deprecated
...
replace deprecated std.mem.tokenize with std.mem.tokenizeScalar
2024-01-03 09:15:28 -08:00
Jeffrey C. Ollie
f4292bccfc
replace deprecated std.mem.tokenize with std.mem.tokenizeScalar
2024-01-03 10:22:33 -06:00
Mitchell Hashimoto
5091655558
Merge pull request #1202 from gpanders/cell-color-refactor
...
terminal: track palette color in cell state
2024-01-02 20:58:32 -08:00
Gregory Anders
060bdff117
terminal: track palette color in cell state
...
Rather than immediately converting a color palette index into an RGB
value for a cell color, when a palette color is used track the palette
color directly in the cell state and convert to an RGB value in the
renderer.
This causes palette color changes to take effect immediately instead of
only for newly drawn cells.
2024-01-02 22:34:06 -06:00
Mitchell Hashimoto
f79a4d32f7
Merge pull request #1199 from mitchellh/termio-surface-dl
...
termio/exec: avoid potential deadlock with surface message
2024-01-02 15:44:48 -08:00
Mitchell Hashimoto
797da2f737
termio/exec: avoid potential deadlock with surface message
...
Fixes #1198
This adds a fix similar to what we discovered with termio messages: we
attempt to send a surface message but if the queue is full we unlock the
terminal state and try again waiting forever.
In all cases, its safe to unlock the mutex while sending the message, no
scenario we send a surface message requires this lock to be held.
2024-01-02 15:34:20 -08:00
Mitchell Hashimoto
143de07aaa
Merge pull request #1200 from gpanders/macos-profile-release-local
...
macos: use ReleaseLocal build configuration for Profile action
2024-01-02 15:33:59 -08:00
Mitchell Hashimoto
9ca7d1f7be
Merge pull request #1201 from mitchellh/deps-mirror
...
self-host freedesktop build dependencies
2024-01-02 15:33:46 -08:00
Mitchell Hashimoto
3fc5b02d73
pkg/fontconfig: move some dependencies to our own mirror
...
These are unmodified, so users can still verify the checksum with the
official downloads if they feel unsafe.
2024-01-02 15:27:59 -08:00
Gregory Anders
a17fad2da9
macos: use ReleaseLocal build configuration for Profile action
2024-01-02 16:45:26 -06:00
Mitchell Hashimoto
46ccf6b02e
Merge pull request #1195 from vancluever/vancluever-fix-nix-x11
...
nix: add libX11 to RUNPATH
2024-01-01 21:52:48 -08:00
Chris Marchesi
5704baf4e6
nix: add libX11 to RUNPATH
...
This adds libX11 to the (wrapped) binary RUNPATH in the Nix package
fixupPhase, to ensure that the dlopen we are doing of it now in #1193
functions correctly.
Note that we patch ".ghostty-wrapped" here, as this is now the main
binary after #1104 .
2024-01-01 21:40:43 -08:00
Mitchell Hashimoto
acba69a4ce
Merge pull request #1193 from vancluever/vancluever/gtk-x11-modifier-state
...
apprt/gtk: ensure modifier state matches current keypress under X11
2024-01-01 08:35:14 -08:00
Mitchell Hashimoto
732063375a
apprt/gtk: stylistic changes
2024-01-01 08:34:19 -08:00
Chris Marchesi
d235554606
apprt/gtk: Move Xkb state to App, remove un-needed fields, style changes
2023-12-31 12:10:25 -08:00
Mitchell Hashimoto
a3ce446fee
apprt/gtk: use some comptime to load X11 functions
2023-12-31 08:00:43 -08:00
Mitchell Hashimoto
3b7e83150f
apprt/gtk: stylistic changes
2023-12-31 07:50:36 -08:00
Chris Marchesi
fc4fdbb643
apprt/gtk: ensure modifier state matches current keypress under X11
...
This fixes an issue in that when running under X11, when a modifier key
is pressed, the modifier state will "lag" behind what should be current.
This is due to how X11 sends modifiers in events, i.e. it sends the
state from right before the key press, and does not include the effects
of the key press itself.
This is corrected by checking the X event queue directly for a pending
XkbStateNotify event (we mask this on modifiers), and setting the
modifiers off of that if we find one. If not, we fall back to the GDK
call.
2023-12-30 22:58:33 -08:00
Mitchell Hashimoto
00f5523728
Merge pull request #1194 from jcollie/abnormal-exit-enhance
...
Add exit code and runtime to abnormal exit error message, make threshold configurable.
2023-12-30 21:47:59 -08:00
Mitchell Hashimoto
0eee66f21b
termio/exec: stylistic change on abnormal exit
2023-12-30 21:47:34 -08:00
Mitchell Hashimoto
134327c1a3
termio/exec: reorder member since we like alloc on top
2023-12-30 21:46:27 -08:00
Mitchell Hashimoto
aef93a5420
config: make abnormal runtime threshold a u32
2023-12-30 21:45:16 -08:00
Jeffrey C. Ollie
4ef8d099a7
Make the abnormal runtime threshold configurable.
2023-12-30 22:52:47 -06:00
Jeffrey C. Ollie
792284fb69
Add exit code and runtime to abnormal exit error message.
2023-12-30 22:24:25 -06:00
Mitchell Hashimoto
8254ffb750
Merge pull request #1192 from mitchellh/abnormal-exit
...
Abnormal command exit detection
2023-12-30 19:46:08 -08:00
Mitchell Hashimoto
730343c600
termio/exec: pass code and runtime to error but don't show it yet
2023-12-30 19:37:38 -08:00
Mitchell Hashimoto
53dffc8e18
termio/exec: style the exec failure error better
2023-12-30 19:34:45 -08:00
Mitchell Hashimoto
f3aaa884c6
termio/exec: use message to writer thread so we can output failed cmd
2023-12-30 17:51:34 -08:00
Mitchell Hashimoto
aaded1f311
termio/exec: use arraylist to build up message for error
2023-12-30 15:52:26 -08:00
Mitchell Hashimoto
fc963064c6
termio/exec: abnormal exit can use exit code on linux
2023-12-30 15:43:50 -08:00
Mitchell Hashimoto
3ee842e1b7
config: remove command validation
...
Abnormal exit detection is more robust, and this validation always had
issues for example we didn't parse shell escapes and so on.
2023-12-30 15:36:13 -08:00
Mitchell Hashimoto
3fae05e2dc
termio/exec: detect abnormally short runtime and show an error message
2023-12-30 15:35:35 -08:00
Mitchell Hashimoto
f43693152e
Merge pull request #1191 from mitchellh/exec-failed
...
termio/exec: detect exec failure and show an error message
2023-12-30 15:35:09 -08:00
Mitchell Hashimoto
2ed75d47b5
termio/exec: detect exec failure and show an error message
2023-12-30 15:07:23 -08:00
Mitchell Hashimoto
8c5e8c504e
config: skip command validation if it has a space
...
See comment
2023-12-30 14:46:05 -08:00
Mitchell Hashimoto
b7ef0d232f
Merge pull request #1189 from mitchellh/macos-restore-blur
...
macos: wait for window to become visible to set blur
2023-12-29 21:59:05 -08:00
Mitchell Hashimoto
5e0e0b2bd4
macos: wait for window to become visible to set blur
...
Fixes #1181
2023-12-29 21:58:30 -08:00
Mitchell Hashimoto
85c386f45d
termio: remove old warning log statement used for debugging
2023-12-29 21:25:07 -08:00
Mitchell Hashimoto
a159eafc18
Merge pull request #1180 from mitchellh/change-macos-launch
...
Modify the way the login shell is launched on macOS to reduce nesting
2023-12-29 15:50:18 -08:00
Mitchell Hashimoto
a69ec2127e
termio/exec: use bash instead of zsh for shell launching
2023-12-29 15:41:11 -08:00
Mitchell Hashimoto
1652b9049a
Merge pull request #1188 from rockorager/website-script-fix
...
website: fix ich and il scripts
2023-12-29 13:59:53 -08:00
Tim Culverhouse
165bbf4e56
website(il): fix test script
...
The IL V-3 test script has the cursor in the wrong position. Confirmed
with xterm. The cursor should end up in the first column.
2023-12-29 15:57:41 -06:00
Tim Culverhouse
b7ad30b067
website(ich): fix test script v1
...
The V-1 Test script was missing a printf statement. Add the missing
statement to make the expected output correct.
Signed-off-by: Tim Culverhouse <tim@timculverhouse.com>
2023-12-29 15:57:41 -06:00
Mitchell Hashimoto
8feab70fa2
Merge pull request #1187 from rockorager/el-script-fix
...
website(el): clarify cursor position in test script
2023-12-29 13:23:36 -08:00
Tim Culverhouse
27be196fb4
website(el): clarify cursor position in test script
...
The test script for `el` shows the cursor being on the right side of
`X`, however in xterm and ghostty the cursor is _on_ the `X`. Delete the
cursor position and add a comment on where the cursor should be.
2023-12-29 15:19:20 -06:00
Mitchell Hashimoto
6763e9ef37
Merge pull request #1186 from rockorager/website-cub-fix
...
website: fix `cub` test script
2023-12-29 12:54:07 -08:00
Tim Culverhouse
23cd1d95e9
website: fix cub
test script
...
The `CUB` V2 test script has a trailing echo which pushes the cursor
down one line, making the expected output incorrect. Remove the `echo`
command so the cursor position is as shown.
2023-12-29 14:52:53 -06:00