867 Commits

Author SHA1 Message Date
Mitchell Hashimoto
06e88a975b terminal/new: pages have a size 2024-03-22 20:27:18 -07:00
Mitchell Hashimoto
01f2a9b39a terminal/new: wraparound beginnings 2024-03-22 20:27:18 -07:00
Mitchell Hashimoto
76f868621f terminal/new: handle zero-width at beginning of line 2024-03-22 20:27:18 -07:00
Mitchell Hashimoto
05d7d978dd terminal/new: page has grapheme metadata 2024-03-22 20:27:18 -07:00
Mitchell Hashimoto
f8f9f74a8e terminal/new: page has graphemes attached 2024-03-22 20:27:18 -07:00
Mitchell Hashimoto
ed6a31a692 terminal/new: add BitmapAllocator 2024-03-22 20:27:18 -07:00
Mitchell Hashimoto
f6b202f24a terminal/new: todos 2024-03-22 20:27:18 -07:00
Mitchell Hashimoto
c44bc54daf terminal/new: store full style id 2024-03-22 20:27:17 -07:00
Mitchell Hashimoto
dc6de51472 terminal/new: add bench 2024-03-22 20:27:17 -07:00
Mitchell Hashimoto
a1c14d1859 terminal/new: print single lines of ascii chars lol 2024-03-22 20:27:17 -07:00
Mitchell Hashimoto
94c6573e54 terminal/new: detect empty rows 2024-03-22 20:27:17 -07:00
Mitchell Hashimoto
b5d7b0a87a terminal/new: lots of code thrown at the wall 2024-03-22 20:27:17 -07:00
Mitchell Hashimoto
1473b3edf2 terminal/new: PageList 2024-03-22 20:27:17 -07:00
Mitchell Hashimoto
0a27e5a58b terminal/new: print some characters (test string) 2024-03-22 20:27:17 -07:00
Mitchell Hashimoto
1216603e68 terminal/new: Screen beginnings 2024-03-22 20:27:17 -07:00
Mitchell Hashimoto
86deda520f terminal/new: initialize all rows to point to proper cell offsets 2024-03-22 20:27:17 -07:00
Mitchell Hashimoto
24c49f64ad terminal/new 2024-03-22 20:27:17 -07:00
Mitchell Hashimoto
5053a3ab5d terminal/new: page init 2024-03-22 20:27:17 -07:00
Mitchell Hashimoto
181475eec6 terminal/new: clean up comments 2024-03-22 20:27:16 -07:00
Mitchell Hashimoto
334f651387 terminal/new: everything is OffsetBuf based 2024-03-22 20:27:16 -07:00
Mitchell Hashimoto
24354d8392 terminal/new: style set removal 2024-03-22 20:27:16 -07:00
Mitchell Hashimoto
fba9d5ab61 terminal/new: style tests 2024-03-22 20:27:16 -07:00
Mitchell Hashimoto
4fa558735c terminal/new: hash map size is part of buffer 2024-03-22 20:27:16 -07:00
Mitchell Hashimoto
040d07d476 terminal/new: nothing works but everything looks right 2024-03-22 20:27:16 -07:00
Mitchell Hashimoto
6ffe66e728 terminal/new: getOffset 2024-03-22 20:27:16 -07:00
Mitchell Hashimoto
27d0ed05ca terminal/new: comment, remove some pubs 2024-03-22 20:27:16 -07:00
Mitchell Hashimoto
ba749e85ef terminal/new: hash map doesn't need available 2024-03-22 20:27:16 -07:00
Mitchell Hashimoto
210be9cd0c terminal/new: hash map has no load factor 2024-03-22 20:27:16 -07:00
Mitchell Hashimoto
3200d4cb4d terminal/new: slapped together offset map 2024-03-22 20:27:16 -07:00
Mitchell Hashimoto
6b2ec38a05 terminal/new: remove more functions 2024-03-22 20:27:16 -07:00
Mitchell Hashimoto
1a3c617289 terminal/new: hash map remove old functions 2024-03-22 20:27:15 -07:00
Mitchell Hashimoto
11e01ab599 terminal/new: forked hash map works with fixed buffers 2024-03-22 20:27:15 -07:00
Mitchell Hashimoto
18810f89f7 terminal: copy stdlib hash_map 2024-03-22 20:27:15 -07:00
Mitchell Hashimoto
be8745c70a terminal: bunch of junk for paged terminal 2024-03-22 20:27:14 -07:00
Mitchell Hashimoto
b7bf59d772 update zig 2024-03-22 11:15:26 -07:00
Qwerasd
1c87bf51a0 fix(terminal/stream): correct invalid assertion 2024-03-17 15:06:31 -06:00
Mitchell Hashimoto
b48d24a546 update zig 2024-03-13 09:14:12 -07:00
Mitchell Hashimoto
eaa78477d5 terminal: fix tests for brackets on selectWord 2024-03-04 14:30:28 -08:00
Adam Stephens
59485713b4 screen/selectword: add more boundary characters 2024-02-29 22:30:30 -05:00
Krzysztof Wolicki
4add6889d8 Update to new compress.zlib API 2024-02-20 16:43:02 -08:00
Mitchell Hashimoto
793b657ca8 kitty-gfx: deletion should mark image state dirty to force redraw
Fixes #1537
2024-02-18 19:45:18 -08:00
Mitchell Hashimoto
6acf2b40af terminal/kitty-gfx: mistaken logic 2024-02-12 19:35:02 -08:00
Mitchell Hashimoto
9193cfa6d2 style nit 2024-02-12 19:31:58 -08:00
Nameless
28ff9f7310 bug: std.os.realpath on non-windows asserts no nulls, make an error 2024-02-12 19:31:17 -08:00
Mitchell Hashimoto
739fc746bf terminal: OSC parses 4 with empty string param without crashing 2024-02-12 19:30:04 -08:00
Jonathan Marler
e1996ad1e5 os: remove UB, tmpDir is returning stack memory on Windows
On Windows, the tmpDir function is currently using a buffer on the stack
to convert the WTF16-encoded environment variable value "TMP" to utf8
and then returns it as a slice...but that stack buffer is no longer valid
when the function returns.  This was causing the "image load...temporary
file" test to fail on Windows.

I've updated the function to take an allocator but it only uses
the allocator on Windows.  No allocation is needed on other platforms
because they return environment variables that are already utf8 (ascii)
encoded, and the OS pre-allocates all environment variables in the process.
To keep the conditional that determines when allocation is required, I
added the `freeTmpDir` function.
2024-02-10 21:09:05 -07:00
Mitchell Hashimoto
004405ccf9 terminal: only apply VS15/16 to emoji
Fixes #1482
2024-02-10 17:26:45 -08:00
Mitchell Hashimoto
f7c945c4a7 Merge pull request #1494 from mitchellh/grapheme-break
Optimized grapheme break detection (6x speedup)
2024-02-10 07:54:06 -08:00
Mitchell Hashimoto
6f8b4204b9 terminal: use new grapheme break algo 2024-02-09 20:31:20 -08:00
Gregory Anders
21412847c7 Reset status display after a full reset 2024-02-09 15:50:50 -06:00