Commit Graph

40 Commits (5a9bd0e49ef11499eb0ccb63725cc882b93356e0)

Author SHA1 Message Date
Mitchell Hashimoto bf9f025aec
lib-vt: begin paste utilities exports starting with safe paste 2025-10-06 21:09:28 -07:00
Mitchell Hashimoto 61fe78c1d3
lib-vt: expose key encoding as a C API 2025-10-05 14:40:20 -07:00
Mitchell Hashimoto 22caf60263
update a bunch of required Zig versions to 0.15 2025-10-03 07:10:44 -07:00
Mitchell Hashimoto 3bc07c24aa
lib-vt: OSC data extraction boilerplate
This also changes OSC strings to be null-terminated to ease lib-vt
integration. This shouldn't have any practical effect on terminal
performance, but it does lower the maximum length of OSC strings by 1
since we always reserve space for the null terminator.
2025-09-29 06:40:01 -07:00
Mitchell Hashimoto a76297058f
example/c-vt: parse a full OSC command 2025-09-28 07:24:09 -07:00
Mitchell Hashimoto 37e238c2f6
remove vt prefixes 2025-09-24 12:36:50 -07:00
Mitchell Hashimoto 96e9053862
move header into subdirectory 2025-09-24 12:30:37 -07:00
Mitchell Hashimoto 48827b21d8
some PR feedback 2025-09-24 12:25:43 -07:00
Mitchell Hashimoto e7a0198103
lib-vt: docs 2025-09-24 10:46:24 -07:00
Mitchell Hashimoto 2c78ad8889
lib-vt: setup a default allocator if null 2025-09-24 10:30:13 -07:00
Mitchell Hashimoto e1429dabae
example/c-vt 2025-09-24 09:54:08 -07:00
Mitchell Hashimoto f97518cc10
example/zig-vt: add comment explaining how to get zero-dep build 2025-09-23 11:55:44 -07:00
Mitchell Hashimoto 64f26c14d3
example/zig-vt 2025-09-21 19:41:58 -07:00
Mitchell Hashimoto 1758f962f6
remove stale example wasm app 2025-09-21 19:40:00 -07:00
Mitchell Hashimoto 162f3390ca
prettier 2024-09-11 11:15:46 -07:00
Qwerasd 10b8ca3c69 spelling: normalize grey -> gray 2024-08-11 18:31:01 -04:00
Mitchell Hashimoto 779611c04b
nix: install prettier, also ignore zig-cache/out 2023-09-28 15:16:12 -07:00
Patrick Fong c2ec3f75ad lint JSON and Typescript as well 2023-09-28 11:05:54 -07:00
Mitchell Hashimoto ce490e21ea
can specify a wasm target in build 2022-12-31 08:53:11 -08:00
Mitchell Hashimoto 1093cf5254
config: enable passwd isn't compiled for wasm 2022-12-30 16:32:49 -08:00
Mitchell Hashimoto 241bfee7d4
wasm: use shared, imported memory
This switches our wasm build to use "shared" memory. Shared memory can
be shared across multiple web workers, which is something we'll want to
support for our multi-threaded behaviors later.

Shared memory has a number of different restrictions so this updates
zig-js to support it as well as updates some of our functions that need
to be aware of it.
2022-12-24 16:24:43 -08:00
Mitchell Hashimoto c391d0f3de
font: web canvas sprite font can composite 2022-12-13 22:17:27 -08:00
Mitchell Hashimoto bf054e5b44
font: web canvas sprite font can write to atlas 2022-12-13 22:01:13 -08:00
Mitchell Hashimoto 0ab8eff069
update example to show multi-codepoint grapheme 2022-12-12 22:05:27 -08:00
Mitchell Hashimoto f53d9fb704
font: web canvas shaper yields runs 2022-12-07 18:29:49 -08:00
Mitchell Hashimoto 6aa212707e
font: web canvas can render emoji 2022-12-06 10:55:42 -08:00
Mitchell Hashimoto 41cbc1a323
wasm: show color atlas in example web app 2022-12-05 21:33:54 -08:00
Mitchell Hashimoto 5993528f33
font: GroupCache is wasm compatible 2022-12-05 21:01:56 -08:00
Mitchell Hashimoto 62990bb33e
font: Group is now wasm-compatible 2022-12-05 20:52:03 -08:00
Mitchell Hashimoto 5291501251
font: DeferredFace is wasm-compatible 2022-12-05 20:28:50 -08:00
Mitchell Hashimoto d2afddb7e2
font: fix some JS memory leaks 2022-12-05 15:45:31 -08:00
Mitchell Hashimoto ed4e8c36b0
font: add 1 to the canvas glyph to avoid clipping 2022-12-05 15:37:55 -08:00
Mitchell Hashimoto 25f2f1a652
font: fix glyph offset calculations for render 2022-12-05 15:25:09 -08:00
Mitchell Hashimoto 5e9dd02eab
font: add method for drawing atlas to canvas 2022-12-05 15:01:34 -08:00
Mitchell Hashimoto 19e326dab6
font: working on rendering glyphs in canvas 2022-12-05 10:54:40 -08:00
Mitchell Hashimoto df302fc2b6
calculate font metrics via canvas 2022-12-04 22:01:58 -08:00
Mitchell Hashimoto c48d8cd151
hook up logging to wasm, example uses new zig-js package 2022-12-04 13:16:54 -08:00
Mitchell Hashimoto c32219554a
blank out web canvas impl 2022-12-01 13:02:17 -08:00
Mitchell Hashimoto b858aea124
Start scaffolding web_canvas backend 2022-12-01 13:02:17 -08:00
Mitchell Hashimoto 2457454b07
test wasm of the term package 2022-08-17 13:57:21 -07:00