Mitchell Hashimoto
25484d2ccc
macos: set background opacity/blur on window controller not surface
2024-06-07 12:31:45 -07:00
Mitchell Hashimoto
4dde7edfab
config: macos-titlebar-style, remove titlebar-tabs option
...
Fixes #1833
This is an attempt to simplify the logic that has organically grown
convoluted over time with regards to how the titlebar and tab bar is
styled.
This field is one unified field that ONLY addresses titlebar and tab bar
styling. It can be one of "native", "transparent", or "tabs". The
"native" field is the new behavior in this commit: it makes the titlebar
and tab bar appearance be absolutely native. We do not color anything
(if we do its a bug).
The "transparent" option is the previous `macos-titlebar-tabs = false`
setting where the titlebar/tab bar is native but colored according to
the window background color.
The "tabs" option is `macos-titlebar-tabs = true`.
The `window-theme = auto` affect on titlebar appearance has been
removed. Now, the titlebar will NEVER be styled with "native" and MAY be
styled with "transparent" and will ALWAYS be styled with "tabs" (since
that's a totally custom look anyways).
2024-06-07 12:12:48 -07:00
Mitchell Hashimoto
6dd88a1bb2
Merge pull request #1835 from jparise/childprocess
...
os: std.ChildProcess -> std.process.Child
2024-06-07 09:45:08 -07:00
Jon Parise
b1e1d8c3eb
os: std.ChildProcess -> std.process.Child
...
std.ChildProcess was deprecated in favor of std.process.Child a few
releases back, and the old name is removed in Zig 0.13.0.
2024-06-07 12:36:30 -04:00
Mitchell Hashimoto
54ccefe838
Merge pull request #1832 from rockorager/csiDispatch-alias
...
stream: remove redundant alias handling in csiDispatch
2024-06-06 18:40:35 -07:00
Tim Culverhouse
4eddd919ef
stream: remove redundant alias handling in csiDispatch
...
The alias handling block only handles one alias, which is already
handled in the switch statement. Remove this block and rename all
references to 'action' back to 'input'.
2024-06-06 20:15:58 -05:00
Mitchell Hashimoto
e66d11ac69
Merge pull request #1830 from ghostty-org/xdg-title
...
xdg-terminal-exec invocations set title based on command
2024-06-06 14:53:31 -07:00
Mitchell Hashimoto
be598be6de
config: xdg-terminal-exec parsing should ignore the initial "-e"
2024-06-06 14:50:04 -07:00
Mitchell Hashimoto
1093ccecb4
xdg-terminal-exec invocations set title based on command
...
Fixes #1724
See background in #1724 . The general idea is that for Ghostty
invocations via xdg-terminal-exec, we set the initial title to the
command automatically so that window managers can modify the styling.
We only do this for xdg-terminal-exec because that protocol/spec is
specifically for the scenario that the terminal is being used to launch
a command from the desktop environment.
2024-06-06 10:01:32 -07:00
Mitchell Hashimoto
56871c3828
Merge pull request #1828 from ghostty-org/cgroup
...
Linux: Launch each terminal surface into its own cgroup
2024-06-06 09:28:38 -07:00
Mitchell Hashimoto
096ed254df
Merge pull request #1827 from Jan200101/PR/inspector-unicode
...
inspector: fallback to unicode if key event is invalid
2024-06-05 18:23:30 -07:00
Mitchell Hashimoto
dda6a22ea9
apprt/gtk: cgroup hierarchy only affects surfaces
2024-06-05 10:42:43 -07:00
Mitchell Hashimoto
cc6d8bfbfd
config: clarify some config
2024-06-05 10:29:01 -07:00
Mitchell Hashimoto
99d567274b
config: add cgroup memory limit config
2024-06-05 10:27:53 -07:00
Mitchell Hashimoto
3b41b89c23
apprt/gtk: config to hard fail on cgroup init
2024-06-05 09:47:48 -07:00
Mitchell Hashimoto
ad5d44af10
config: control cgroup isolation
2024-06-05 09:43:57 -07:00
Mitchell Hashimoto
7d9da34259
termio/exec: move subprocess into cgroup
2024-06-05 09:30:21 -07:00
Mitchell Hashimoto
a63c8d0913
termio: plumb a lot more to get ready to move into cgroup
2024-06-05 09:25:36 -07:00
Mitchell Hashimoto
9f1572918f
bikeshed style
2024-06-05 09:11:44 -07:00
Jan200101
4220a3bd3a
inspector: fallback to unicode when key event is invalid
...
This prevents non-ascii characters like Ö from being displayed as invalid
2024-06-05 09:10:24 +02:00
Mitchell Hashimoto
dc51b8269c
plumb the linux cgroup through to termio
2024-06-04 21:37:34 -07:00
Mitchell Hashimoto
1285b4f243
apprt/gtk: store transient cgroup
2024-06-04 21:10:42 -07:00
Mitchell Hashimoto
01bfce0981
os: cgroup can set memory limits
2024-06-04 21:02:25 -07:00
Mitchell Hashimoto
d351e80158
os: cgroup create/move
2024-06-04 20:22:17 -07:00
Mitchell Hashimoto
bbe525c964
os: API to configure cgroup controllers
2024-06-04 19:36:48 -07:00
Mitchell Hashimoto
b5c4d2f60d
os: rename linux => cgroup
2024-06-04 19:28:12 -07:00
Mitchell Hashimoto
c0b061edd9
os: API for listing cgroup controllers
2024-06-04 19:23:18 -07:00
Mitchell Hashimoto
409c958b7e
apprt/gtk: cgroup initialization
2024-06-04 18:59:44 -07:00
Mitchell Hashimoto
0a5f3fa0a4
os: add linux API for getting cgroup by pid
2024-06-04 15:15:11 -07:00
Mitchell Hashimoto
955246d6a0
Merge pull request #1825 from Pangoraw/gtk_nb_switch
...
gtk: update tab's window upon switching notebook
2024-06-04 08:59:16 -07:00
Paul Berg
2d9aad9806
gtk: update tab's window upon switching notebook
2024-06-04 09:19:15 +02:00
Mitchell Hashimoto
a502089582
renderer/opengl: don't append assume capacity
...
Fixes #1815
2024-06-03 20:55:11 -07:00
Mitchell Hashimoto
0b971f6760
Merge pull request #1824 from ghostty-org/iterm2
...
update color themes to a34aeb1f505707a35102fe95984d4bea4a85eb3e
2024-06-03 19:28:59 -07:00
Mitchell Hashimoto
4b277f1bca
update color themes to a34aeb1f505707a35102fe95984d4bea4a85eb3e
2024-06-03 19:24:56 -07:00
Mitchell Hashimoto
fdd30725e5
Merge pull request #1823 from jparise/explicit-bash
...
shell-integration: bash must be explicitly enabled
2024-06-03 18:43:53 -07:00
Mitchell Hashimoto
cd7da9eb4b
inspector: fix encoding of pty-encoded key event
2024-06-03 18:40:52 -07:00
Jon Parise
7d7fa46b0c
shell-integration: bash must be explicitly enabled
...
For now, bash integration must be explicitly enabled (by setting
`shell-integration = bash`). Our automatic shell integration requires
bash version 4 or later, and systems like macOS continue to ship bash
version 3 by default. This approach avoids the cost of performing a
runtime version check.
2024-06-03 20:34:29 -04:00
Mitchell Hashimoto
29b3f9d528
gtk: set tab group so that tabs can be dropped onto other windows
...
Related to #1122
2024-06-03 16:21:50 -07:00
Mitchell Hashimoto
4bcc8b998c
Merge pull request #1822 from ghostty-org/gtk-wrap
...
gtk: goto_split:previous/next wrap
2024-06-03 16:11:58 -07:00
Mitchell Hashimoto
a72a02488f
gtk: goto_split:previous/next wrap
...
Fixes #1258
This matches macOS.
2024-06-03 16:06:24 -07:00
Mitchell Hashimoto
b9340aad55
Merge pull request #1821 from ghostty-org/gtk-mouse
...
gtk: various mouse-hide-while-typing fixes
2024-06-03 15:39:23 -07:00
Mitchell Hashimoto
d6f79ce96b
gtk: note setting title unhides the cursor
2024-06-03 15:36:10 -07:00
Mitchell Hashimoto
67c17cba1a
apprt/gtk: only set cursor on shape change if its visible
2024-06-03 15:07:33 -07:00
Mitchell Hashimoto
30c1ab737c
core: only hide mouse on key press events
...
see comment
2024-06-03 15:04:19 -07:00
Mitchell Hashimoto
ac554c74ff
core: do not toggle mouse hidden on keyCallback with mods
...
If the mouse was hidden, we just keep it hidden.
2024-06-03 14:55:21 -07:00
Mitchell Hashimoto
254608697e
Merge pull request #1820 from ghostty-org/gtk
...
apprt/gtk: when dragging tab out, grab focus
2024-06-03 14:46:14 -07:00
Mitchell Hashimoto
7e82cd4d44
Merge pull request #1819 from ghostty-org/pointcoord
...
terminal: point coord y needs to be a larger int
2024-06-03 14:43:13 -07:00
Mitchell Hashimoto
0abb6b9efa
apprt/gtk: when dragging tab out, grab focus
2024-06-03 14:40:19 -07:00
Mitchell Hashimoto
86322db991
terminal: point coord y needs to be a larger int
...
See comment.
2024-06-03 14:25:37 -07:00
Mitchell Hashimoto
237343f478
Merge pull request #1818 from ghostty-org/legacy
...
input: CSIu should send full codepoint
2024-06-02 14:39:17 -07:00