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
Mitchell Hashimoto
fc459ad827
Merge pull request #1486 from mitchellh/unilut
...
Use precomputed lookup tables for even faster codepoint width computations
2024-02-08 21:51:33 -08:00
Mitchell Hashimoto
8d891fb05c
terminal: fast-path ASCII on char width
2024-02-08 21:28:14 -08:00
Mitchell Hashimoto
c838bfc1c1
terminal: swap to table implementatino
2024-02-08 21:17:30 -08:00
Qwerasd
777ecffe6b
fix(terminal/stream): fix OOB read and integer overflow
2024-02-08 22:34:21 -05:00
Qwerasd
68c0813397
terminal/stream: Added ESC parsing fast tracks
2024-02-08 21:49:58 -05:00
Qwerasd
f8c544c119
terminal: stream/parser changes
2024-02-07 19:08:34 -05:00
Mitchell Hashimoto
ae50f2ec97
Merge pull request #1481 from mitchellh/codewidth
...
SIMD Codepoint Width Implementation
2024-02-07 15:35:20 -08:00
Mitchell Hashimoto
17dc64053e
terminal: swap codepointwidth implementations
2024-02-07 09:38:17 -08:00
Qwerasd
343cb9a334
fix(terminal): send SI to execute instead of print
2024-02-07 00:14:54 -05:00
Mitchell Hashimoto
fdc67a08f4
terminal: add tests for incomplete utf-8, fix one bug
2024-02-06 08:45:41 -08:00
Qwerasd
689a521256
terminal: remove unused properties
2024-02-06 03:04:00 -05:00
Qwerasd
5769bb16dd
fix(terminal): Fix boundary utf-8 decoding crash
...
Get rid of completePartialUtf8 and simply use the scalar parse (`.next`) to resolve boundary conditions instead.
2024-02-06 02:51:04 -05:00
Mitchell Hashimoto
dc6c52fac1
terminal: do not have the UTF8Decoder overhead if SIMD
2024-02-05 21:26:40 -08:00
Mitchell Hashimoto
12885a445a
simd: remove old attempts
2024-02-05 21:22:27 -08:00
Mitchell Hashimoto
449d3b49a4
terminal: split input to fit output chunks
2024-02-05 21:22:27 -08:00
Mitchell Hashimoto
351d9eb402
terminal: use new VT simd to process slices
2024-02-05 21:22:27 -08:00
Mitchell Hashimoto
c751619b7e
terminal: use highway-based indexOf to support all targets
2024-02-05 21:22:26 -08:00
Mitchell Hashimoto
36b0db2a72
pkg/highway
2024-02-05 21:22:26 -08:00
Mitchell Hashimoto
fc605c7865
terminal: fix import issue
2024-02-05 21:22:26 -08:00
Mitchell Hashimoto
62ce93dcff
terminal: use SIMD w/ Neon to find ESC in VT streams
2024-02-05 21:22:25 -08:00
Mitchell Hashimoto
c042b052b2
simd: convert indexOf, mess around with simdvt
2024-02-05 21:22:04 -08:00
Mitchell Hashimoto
0c2a87e5fb
terminal: small stylistic tweaks
2024-02-05 21:20:20 -08:00
Qwerasd
cd570890f6
remove commented out test
2024-02-05 23:32:47 -05:00
Qwerasd
846b3421e6
terminal: replace utf8 decoding with custom decoder in stream.zig
...
(Completely removed utf8 handling from Parser.zig)
2024-02-05 23:20:47 -05:00
Qwerasd
f165d36dd2
Add fast DFA utf-8 decoder implementation
2024-02-05 22:15:58 -05:00
Mitchell Hashimoto
986fa34d3e
terminal: remove unused const
2024-02-02 13:28:19 -08:00
Mitchell Hashimoto
7aeb7c1a58
terminal: rename theme to color_scheme for dsr
2024-02-02 13:20:59 -08:00
Mitchell Hashimoto
6fe8376073
terminal: support mode 2031
2024-02-02 13:08:10 -08:00
Mitchell Hashimoto
ae8f5f3ceb
core: colorSchemeCallback on surface, can report
2024-02-02 12:51:20 -08:00
Mitchell Hashimoto
3c26828a3f
terminal: distinguish between DSRs with "?" and not
2024-02-02 12:42:22 -08:00
Mitchell Hashimoto
eb653907d6
config: grapheme-width-method sets mode 2027
...
Fixes #1403
This changes the behavior of `grapheme-width-method = unicode` to change
the default state of mode 2027 to true. Prior to this, setting this
config would force grapheme clustering regardless of mode 2027. Now,
this only sets the default and running TUI programs can disable it if
they want.
2024-02-02 12:13:13 -08:00
Mitchell Hashimoto
e5400bad06
config: add window-theme = auto for automatic choosing based on bg color
2024-02-01 20:49:28 -08:00
Jeffrey C. Ollie
67e347070d
fix typo in CSI n handling
2024-02-01 10:50:49 -06:00
Mitchell Hashimoto
cd642eb100
Merge pull request #1405 from mitchellh/term-crash
...
terminal: avoid reading reset memory for preserving prompt
2024-01-28 09:04:04 -08:00