Mitchell Hashimoto
78613e059a
Merge pull request #470 from mitchellh/cli-actions
...
`--version` and general framework for CLI subcommands
2023-09-15 15:11:48 -07:00
Mitchell Hashimoto
de0f71c6a1
c api: add ghostty_info to get metadata about the build
2023-09-15 12:32:41 -07:00
Mitchell Hashimoto
07481fe703
output more information for version
2023-09-15 12:22:35 -07:00
Mitchell Hashimoto
e11299a775
cli actions can be "+<name>"
2023-09-15 12:17:59 -07:00
Mitchell Hashimoto
bcd88619c6
can enable logging for CLI actions with GHOSTTY_LOG env var
2023-09-15 12:15:12 -07:00
Mitchell Hashimoto
26313bc85d
do not write logs to stderr for cli actions
2023-09-15 09:27:48 -07:00
Mitchell Hashimoto
dbfedd2400
Add --version for outputting version, framework for more actions
2023-09-15 09:17:58 -07:00
Mitchell Hashimoto
0ac1010d5a
Merge pull request #467 from rockorager/gtk-close
...
gtk: handle all close-requests
2023-09-15 07:36:10 -07:00
Mitchell Hashimoto
2f23211062
Merge pull request #466 from rockorager/desktop
...
linux: don't presume install location in desktop file
2023-09-15 07:35:04 -07:00
Tim Culverhouse
de5c416341
gtk: handle all close-requests
...
When compiling in any Release mode, the default gtk close-request
handler does not properly fire. We only rely on the default handler if
we aren't confirming the close. Replace the default handler with our own
in all cases (and just destroy the window if we don't need
confirmation).
Fixes #458
2023-09-15 04:31:50 -05:00
Tim Culverhouse
6484c34bec
linux: don't presume install location in desktop file
...
The app.desktop file shipped with the default build presumes the install
location of the binary. Let the OS determine the executable through it's
normal PATH variables.
2023-09-15 03:22:48 -05:00
Mitchell Hashimoto
64d2aa67f3
Merge pull request #464 from mitchellh/goonz/jump_to_prompt_doc_fix
...
Fix references to jump_to_prompt binding
2023-09-14 21:04:05 -07:00
Will Pragnell
7db562e300
fix references to jump_to_prompt binding
2023-09-14 20:52:19 -07:00
Will Pragnell
d700fb6fc7
windows: implement expandPath
2023-09-14 20:48:09 -07:00
Will Pragnell
57894786d4
windows: implement tmpDir
2023-09-14 20:48:09 -07:00
Mitchell Hashimoto
ef9ed48434
Merge pull request #463 from mitchellh/osc52-invalid
...
core: resiliency to invalid base64 data for OSC 52
2023-09-14 20:33:51 -07:00
Mitchell Hashimoto
89e038e42b
Merge pull request #462 from mitchellh/hide-mouse
...
Option to hide mouse cursor while typing
2023-09-14 20:14:39 -07:00
Mitchell Hashimoto
70420fe0d6
core: resiliency to invalid base64 data for OSC 52
...
Fixes #460
2023-09-14 20:13:13 -07:00
Mitchell Hashimoto
a7bc570204
update config docs around mouse-hide-while-typing
2023-09-14 19:55:01 -07:00
Mitchell Hashimoto
a5a93013b3
if mouse hide setting changes to false, show mouse immediately
2023-09-14 19:54:28 -07:00
Mitchell Hashimoto
54f58d9cd2
apprt/gtk: implement hide cursor
2023-09-14 19:45:20 -07:00
Mitchell Hashimoto
724900f143
macos: implement setCursorVisibility
2023-09-14 19:37:30 -07:00
Mitchell Hashimoto
a7e8b7559e
mouse-hide-while-typing config and glfw implementation
2023-09-14 17:36:21 -07:00
Mitchell Hashimoto
64f3b4bb93
Merge pull request #453 from mitchellh/cc-osc-10-11
...
Implement OSC 10 and OSC 11 default color queries
2023-09-14 13:19:13 -07:00
Mitchell Hashimoto
14724290d8
config: change osc-color-report-format enum
2023-09-14 13:15:09 -07:00
Mitchell Hashimoto
19ef4a22a9
terminal: stylistic changes for OSC terminators, 10/11 params
2023-09-14 13:12:41 -07:00
Mitchell Hashimoto
547738d530
Merge pull request #456 from mitchellh/gtk-scale
...
apprt/gtk: apply GDK scale factor to mouse coordinates
2023-09-14 12:55:08 -07:00
cryptocode
dc14ca86ca
Review updates:
...
* Change state names to more human readable query_default_fg/bg
* Single-line state prongs
* String terminator is not an enum
* Removed `endWithStringTerminator` and added nullabe arg to `end`
* Fixed a color reporting bug, fg/bg wasn't correctly picked
2023-09-14 21:46:23 +02:00
cryptocode
a3696a9185
Implement OSC 10 and OSC 11 default color queries
...
These OSC commands report the default foreground and background colors.
Most terminals return the RGB components scaled up to 16-bit components, because some
legacy software are unable to read 8-bit components. The PR follows this conventions.
iTerm2 allow 8-bit reporting through a config option, and a similar option is
added here. In addition to picking between scaled and unscaled reporting, the user
can also turn off OSC 10/11 replies altogether.
Scaling is essentially c / 1 * 65535, where c is the 8-bit component, and reporting
is left-padded with zeros if necessary. This format appears to stem from the XParseColor
format.
2023-09-14 21:41:40 +02:00
Mitchell Hashimoto
62ae59cd97
apprt/gtk: apply GDK scale factor to mouse coordinates
...
Fixes #452
2023-09-14 12:26:36 -07:00
Mitchell Hashimoto
2c070acdcd
Merge pull request #454 from mitchellh/pointer-cursor
...
OSC 22: Set Mouse Shape
2023-09-14 11:55:40 -07:00
Mitchell Hashimoto
01cb1ad90e
apprt/gtk: cursor state should be on surface
2023-09-14 11:22:54 -07:00
Thorsten Ball
d96d60445a
Fix compilation issues with GTK cursor support
2023-09-14 20:19:53 +02:00
Mitchell Hashimoto
cb2931cb27
rename cursor shape to mouse shape for OSC 22
2023-09-14 11:12:17 -07:00
Mitchell Hashimoto
674575e598
apprt/gtk: support set cursor shape
2023-09-14 10:55:05 -07:00
Mitchell Hashimoto
3356146bb4
macos: support cursor style
2023-09-14 10:40:40 -07:00
Mitchell Hashimoto
31a61613e9
apprt/glfw: support setting cursor shape
2023-09-14 10:23:11 -07:00
Mitchell Hashimoto
7734bab8c4
terminal: cursor shape parsing, hook up to apprt callback
2023-09-14 10:12:38 -07:00
Mitchell Hashimoto
ab8569b4bd
terminal: parse OSC 22
2023-09-14 09:36:23 -07:00
Mitchell Hashimoto
39e248df92
Merge pull request #450 from marler8997/windowsCompile
...
windows: initial support for zig build test
2023-09-14 06:57:31 -07:00
Jonathan Marler
a2e881ff4e
windows: initial support for zig build test
...
Makes progress getting "zig build test" to work on windows. Mostly
fixed issues around build configuration and added some branches throughout
the Zig code to return/throw errors for unimplemented parts.
I also added an initial implementation for getting the home dir.
2023-09-14 03:15:40 -06:00
Mitchell Hashimoto
e213a93fe3
Merge pull request #448 from mitchellh/lig-reload
...
macos: ensure all components are updated on config reload
2023-09-13 19:13:16 -07:00
Mitchell Hashimoto
b9dba629c1
config: default cursor style has to be block
...
It appears there are programs that assume this.
2023-09-13 19:01:05 -07:00
Mitchell Hashimoto
c3bf054dd4
apprt/embedded: call core app reload config so changes go to all threads
2023-09-13 19:01:05 -07:00
Mitchell Hashimoto
b4d2818522
typo in loading emoji font for linux
2023-09-13 15:28:08 -07:00
Mitchell Hashimoto
d381cefb8f
bring back built-in emoji font for Linux
2023-09-13 15:27:01 -07:00
Mitchell Hashimoto
0beaafef46
Merge pull request #445 from mitchellh/observe-config
...
macos: AppState config must be published and observed
2023-09-13 15:12:42 -07:00
Mitchell Hashimoto
c1fe1f6646
macos: AppState config must be published and observed
...
Fixes #440
We previously weren't observing changes so they weren't being
automatically propagated. We were using an old pointer which at best
returned the wrong value and at worst crashed. I was able to make it
crash eventually, too.
This changes the fields to be properly published and observed and as a
result the config is immediately available to all users.
2023-09-13 15:06:41 -07:00
Mitchell Hashimoto
238d68fbbb
Merge pull request #444 from mitchellh/font-fallback
...
font fallback search must verify presentation, do not preload emoji
2023-09-13 14:53:01 -07:00
Mitchell Hashimoto
5e75752d7d
core: do not preload Apple Emoji, our fallback search can find it
2023-09-13 14:42:56 -07:00