Mitchell Hashimoto
3ab51f5643
gtk: key press/release
2023-02-24 07:58:30 -08:00
Mitchell Hashimoto
4fe7b9b3f2
gtk: char input
2023-02-24 07:58:30 -08:00
Mitchell Hashimoto
358ce5a24e
gtk: start hooking up event callbacks
2023-02-24 07:58:30 -08:00
Mitchell Hashimoto
8fbafda3d3
gtk: listen to should quit from app
2023-02-24 07:58:30 -08:00
Mitchell Hashimoto
793c19e187
gtk: proper surface cleanup
2023-02-24 07:58:30 -08:00
Mitchell Hashimoto
90bea1b742
gtk: get proper content scaling
2023-02-24 07:58:30 -08:00
Mitchell Hashimoto
6acf67ec66
gtk: render!
2023-02-24 07:58:30 -08:00
Mitchell Hashimoto
b19f9b2aff
opengl: enable single-threaded draw
2023-02-24 07:58:30 -08:00
Mitchell Hashimoto
7eb7cae9e0
opengl: move screen size GL context changes into draw path
2023-02-24 07:58:30 -08:00
Mitchell Hashimoto
7f34afa395
gtk: hook up GL area and render a color
2023-02-24 07:58:30 -08:00
Mitchell Hashimoto
7991e6e495
apprt/glfw: fix macos build
2023-02-24 07:58:30 -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
153004eb6f
apprt/gtk: compiles again -- does nothing
2023-02-24 07:58:29 -08:00
Mitchell Hashimoto
2dda1d65a4
main update to new runtime API
2023-02-24 07:58:29 -08:00
Mitchell Hashimoto
2adb0c9234
apprt: C API for embedded updated to new style
2023-02-24 07:58:29 -08:00
Mitchell Hashimoto
705d56d18e
surface no longer has reference to app
2023-02-24 07:58:29 -08:00
Mitchell Hashimoto
ac772c2d2d
inherit font size works again
2023-02-24 07:58:29 -08:00
Mitchell Hashimoto
8c18e1ee48
remove memory pool usage for mac
2023-02-24 07:58:29 -08:00
Mitchell Hashimoto
053748481a
more crap
2023-02-24 07:58:29 -08:00
Mitchell Hashimoto
9e4560043a
fix crashes on close
2023-02-24 07:58:29 -08:00
Mitchell Hashimoto
913131c8f1
rename more stuff
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
807c7fc64d
opengl: support loading global gl functions
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
35cb9d20b1
opengl: use premult alpha on fg color to avoid dark edges
...
This avoids an issue I only see in some renderers where the edges of
textures show up with a blurry border. Reading here:
https://www.realtimerendering.com/blog/gpus-prefer-premultiplication/
2023-02-24 07:57:50 -08:00
Mitchell Hashimoto
095a299a16
Update README.md
2023-02-23 09:00:45 -08:00
Mitchell Hashimoto
27e42855ca
macos: use GeometryReader for terminal size for macOS 12
...
We were using the NSView resize func before but this isn't called by
SwiftUI on macOS 12. Instead we wrap it in a GeometryReader and detect
the size change in updateNSView so we can call the proper ghostty
callback.
2023-02-22 20:49:33 -08:00
Mitchell Hashimoto
dc598a3dd7
macos: update minimum deployment target to macOS 12
2023-02-22 14:41:12 -08:00
Mitchell Hashimoto
01e8eb89d4
macos: remove unused vstack
2023-02-19 22:14:52 -08:00
Mitchell Hashimoto
364cca6730
update README with latest macos building instructions
2023-02-19 21:35:49 -08:00
Mitchell Hashimoto
f998341492
update zig
2023-02-19 21:19:17 -08:00
Mitchell Hashimoto
873fb66907
macos: disable ApplePressAndHoldEnabled so that repeated key events work
2023-02-19 16:16:35 -08:00
Mitchell Hashimoto
1e09a1f2e1
macos: add settings view with a coming soon to help some people
2023-02-19 16:00:05 -08:00
Mitchell Hashimoto
c8665ec80e
macos: don't set cursor in mouseMoved
2023-02-19 15:29:25 -08:00
Mitchell Hashimoto
6ea5a5d22d
macos: set ibeam cursor within terminal view
2023-02-19 15:22:36 -08:00
Mitchell Hashimoto
dff45003e1
macos: hook up clipboards
2023-02-19 15:18:01 -08:00
Mitchell Hashimoto
8889dd7de2
macos: emoji keyboard works
2023-02-19 12:28:17 -08:00
Mitchell Hashimoto
7fa02cae95
window charCallback accepts doesn't assume ASCII, accepts any Unicode CP
2023-02-19 12:02:41 -08:00
Mitchell Hashimoto
fbcd5bc0c8
ci: fix path to release app
2023-02-19 11:48:30 -08:00
Mitchell Hashimoto
7a5e3a4003
macos: stdbool missing so we can use bool in ghostty.h
2023-02-19 11:30:57 -08:00
Mitchell Hashimoto
9c0eb01393
ci: use shell to git push tag for release
2023-02-19 11:29:09 -08:00
Mitchell Hashimoto
a719095158
Makefile update for new Zig build flags
2023-02-19 11:15:25 -08:00
Mitchell Hashimoto
d8dd0be32a
main: fix tracy allocator in GlobalState
2023-02-19 11:11:06 -08:00
Mitchell Hashimoto
73de43f169
Merge pull request #72 from mitchellh/macos
...
Swift-based macOS App
2023-02-19 10:45:37 -08:00
Mitchell Hashimoto
d0f82f96ae
ci: release updated to work with new xcodebuild
2023-02-19 10:45:22 -08:00
Mitchell Hashimoto
f1ebc6953e
macos: mouse scroll events
2023-02-19 10:44:57 -08:00
Mitchell Hashimoto
1659f52175
macos: mouse button and mouse move events
2023-02-19 10:44:57 -08:00