104 Commits

Author SHA1 Message Date
Mitchell Hashimoto
3ce7baf30e config: dedicated load func so we can reload 2023-03-19 09:49:44 -07:00
Mitchell Hashimoto
0907da4eba build: generate a version number, show in log on startup 2023-03-04 20:34:15 -08:00
Mitchell Hashimoto
06035e2f95 can now use -Dfont-backend to choose the font backend to use 2023-03-04 10:50:13 -08:00
Mitchell Hashimoto
2a40bdabca macos: load config file default file locations 2023-03-03 09:01:13 -08:00
Mitchell Hashimoto
d8537732dd config: add functions to load from home and load configured 2023-03-03 08:57:21 -08:00
Mitchell Hashimoto
e775c434fb add log when config file is successfully read 2023-03-02 21:22:37 -08:00
Mitchell Hashimoto
d1a1ba4cb6 output runtime at startup 2023-02-25 15:09:26 -08:00
Mitchell Hashimoto
c8e0b0c6f3 don't log config its too noisy 2023-02-24 07:58:31 -08:00
Mitchell Hashimoto
fb13838532 apprt newWindow/newTab do not have to return a surface 2023-02-24 07:58:30 -08:00
Mitchell Hashimoto
2dda1d65a4 main update to new runtime API 2023-02-24 07:58:29 -08:00
Mitchell Hashimoto
053748481a more crap 2023-02-24 07:58:29 -08:00
Mitchell Hashimoto
fbe35c226b Integrating new surface 2023-02-24 07:58:29 -08:00
Mitchell Hashimoto
3d8c62c41f apprt refactor in progress, launches glfw no window 2023-02-24 07:58:29 -08:00
Mitchell Hashimoto
d368b8e727 setup app, run works but crashes in OpenGL 2023-02-24 07:58:29 -08:00
Mitchell Hashimoto
f268f3955e init gtk app 2023-02-24 07:58:29 -08:00
Mitchell Hashimoto
48c9c65915 add app runtime option, add gtk backend 2023-02-24 07:58:29 -08:00
Mitchell Hashimoto
d8dd0be32a main: fix tracy allocator in GlobalState 2023-02-19 11:11:06 -08:00
Mitchell Hashimoto
55b05b22bb c: create/destroy surface API 2023-02-19 10:44:55 -08:00
Mitchell Hashimoto
eed6979868 apprt: start embedded implement, make App API available to C 2023-02-19 10:44:55 -08:00
Mitchell Hashimoto
ba8f142770 app: only create first window in exe mode 2023-02-19 10:44:55 -08:00
Mitchell Hashimoto
26182611c6 move allocator to global state 2023-02-19 10:44:55 -08:00
Mitchell Hashimoto
9bd527fe00 macos: config API 2023-02-19 10:44:54 -08:00
Mitchell Hashimoto
8b80e65928 lots of broken stuff 2023-02-19 10:44:54 -08:00
Mitchell Hashimoto
be75109a1d new build system 2023-02-14 20:58:33 -08:00
Mitchell Hashimoto
11d6e91228 termio: reader thread is thread-safe for writing to writer 2023-02-06 14:52:24 -08:00
Mitchell Hashimoto
e438539a14 Fix new log function options for zig 2023-01-26 09:10:09 -08:00
Mitchell Hashimoto
83f5d29ae2 initialize glfw in app 2022-12-30 15:48:45 -08:00
Mitchell Hashimoto
f871630fa4 move Atlas to font 2022-11-28 10:35:46 -08:00
Mitchell Hashimoto
9ae2df7bae Don't crash when fn key pressed on mac (workaround upstream issue) 2022-11-22 08:45:09 -08:00
Mitchell Hashimoto
c2e2f69989 change config write to be debug 2022-11-20 20:17:05 -08:00
Mitchell Hashimoto
d213c1a939 fix selection regression caused by screen copy optimization 2022-11-20 20:05:07 -08:00
Mitchell Hashimoto
f39484541f set system locale on startup, read Mac locale from OS preferences 2022-11-14 09:59:22 -08:00
Mitchell Hashimoto
135b859b8f raise max file descriptors on launch 2022-11-06 16:38:33 -08:00
Mitchell Hashimoto
ecbd119654 Hook up new window, modify renderers 2022-11-06 10:34:43 -08:00
Mitchell Hashimoto
989046a06c More IO events 2022-11-05 19:31:02 -07:00
Mitchell Hashimoto
8dd67662b3 Blocking queue implementation for thread message passing 2022-11-05 19:31:02 -07:00
Mitchell Hashimoto
d75e869b4e Load $XDG_CONFIG_HOME/ghostty/config if it exists (#25)
Ghostty now loads the config file in `$XDG_CONFIG_HOME/ghostty/config` if it exists on startup. This follows the XDG base dir specification so if $XDG_CONFIG_HOME is not set, we default to `$HOME/.config/ghostty/config`.
2022-11-02 16:12:50 -07:00
Mitchell Hashimoto
be1fa78511 extract passwd to its own file so its easier to test 2022-11-01 17:47:34 -07:00
Mitchell Hashimoto
9e3bbc1598 macos: send logs to unified logging 2022-10-31 15:16:29 -07:00
Mitchell Hashimoto
901ff199c8 log the renderer on startup 2022-10-31 09:44:37 -07:00
Mitchell Hashimoto
e7ffb823af propertly deinit the GPA so we can detect leaks in debug 2022-10-25 15:49:21 -07:00
Mitchell Hashimoto
9ef431c632 use the c allocator when running under valgrind 2022-10-24 15:34:30 -07:00
Mitchell Hashimoto
cf14ea506f update zig 2022-10-24 14:35:42 -07:00
Mitchell Hashimoto
de9731da1f rename grid to a renderer, extract to subfolder
"Grid" was a really antiquated name when it had both the screen state
AND the renderering functionality tied together. This hasn't been true
for a LONG time and it is long overdue that this is renamed to its
proper name.

This also begins setting up a folder structure to anticipate future
renderers and rendering functionality. I'm not working on any alternate
renderers right now so the interface isn't expected to be good, just
laying out the files in this way.
2022-10-23 16:47:34 -07:00
Mitchell Hashimoto
141182aa13 start adding fontconfig conditional compilation 2022-09-23 14:12:38 -07:00
Mitchell Hashimoto
59191b05cd build fontconfig 2022-09-13 14:34:40 -07:00
Mitchell Hashimoto
4f6c67fe9d add LRU 2022-09-12 10:21:18 -07:00
Mitchell Hashimoto
7af9091497 pkg/freetype: Library and Face 2022-08-28 17:07:27 -07:00
Mitchell Hashimoto
44dfe54fe8 output harfbuzz version on startup 2022-08-28 10:26:49 -07:00
Mitchell Hashimoto
5713c2f468 move input test to qualified 2022-08-24 11:17:28 -07:00