3221 Commits

Author SHA1 Message Date
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
Mitchell Hashimoto
c86ae79d52 core: reset left click count if mouse reporting goes on 2024-03-20 15:58:16 -07:00
Tim Culverhouse
806b33f8f2 mouse: handle switch case '0' for left_click_count
A state of '0' if a valid state for the mouse click. I'm unsure *how* we
get a 0 within this branch but I was able to reliably trigger it while
clicking and dragging. We handle the state explicitly because the `else`
prong is `unreachable`. We only handle triple clicks, and in another
function we reset to 3 if the count goes above that. Add an assert to
confirm this is the case.
2024-03-20 10:57:52 -05:00
Qwerasd
1c87bf51a0 fix(terminal/stream): correct invalid assertion 2024-03-17 15:06:31 -06:00
Mitchell Hashimoto
c2c115a768 fix some issues 2024-03-13 13:40:07 -07:00
Mitchell Hashimoto
b48d24a546 update zig 2024-03-13 09:14:12 -07:00
Mitchell Hashimoto
08f88a0c86 core: remove undefined access on variable
It was possible if there was no selection for `reset` to be undefined.
2024-03-10 17:29:54 -07:00
Mitchell Hashimoto
ad0f062d44 Merge pull request #1558 from mitchellh/wordboundaries
add more word boundary characters
2024-03-04 14:33:52 -08:00
Mitchell Hashimoto
eaa78477d5 terminal: fix tests for brackets on selectWord 2024-03-04 14:30:28 -08:00
Qwerasd
e8460fa2c2 fix(renderer): allocate enough room for fg cells
Previously encountered OOB when screen filled with cells with glyphs,
underlines, and strikethroughs. Also clarified comment slightly.
2024-03-03 20:26:51 -05:00
Adam Stephens
59485713b4 screen/selectword: add more boundary characters 2024-02-29 22:30:30 -05:00
Krzysztof Wolicki
f4e8982e5c Windows Utf8 -> Wtf8 2024-02-26 18:01:06 +01:00
Mitchell Hashimoto
3587ca5c65 Merge pull request #1544 from ProfOak/linux-specific-paste-selection
Move selection paste to linux config section
2024-02-24 13:38:00 -08:00
Mitchell Hashimoto
796d1312ff font/sprite: rect must be smaller than canvas dims 2024-02-24 13:19:49 -08:00
Mitchell Hashimoto
759c8cddb4 font/sprite: test for thick underline, assertion on x/y for rect 2024-02-24 09:30:04 -08:00
em-dash
0f19251aa6 fix crash in underline drawing math 2024-02-24 20:49:51 +11:00
ProfOak
f7911937ec Move selection paste to linux config section 2024-02-21 22:37:05 -06:00
Mitchell Hashimoto
a0c43a8566 Merge pull request #1542 from ProfOak/paste-on-selection
Add keybind support for shift+insert selection paste
2024-02-21 19:27:31 -08:00
Tim Culverhouse
534f97dff0 terminfo: remove completed todo
OSC4 has been implemented. Remove this todo
2024-02-21 20:21:59 -06:00
ProfOak
96daf97d19 Add keybind support for shift+insert selection paste 2024-02-21 19:33:05 -06: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
Gregory Anders
cff9671bdf Omit release events for backspace, enter, and tab if report_all is unset 2024-02-18 09:43:05 -06:00
Mitchell Hashimoto
1170cee550 input: encode ctrl+shift+<ascii letter> in CSIu as lowercase + shift
This follows a specific behavior Kitty has, but no other terminal seems
to have, but it is a reasonable behavior that is in use by real programs
as found by our beta testing community.

We diverge from Kitty though in that we only apply this to ASCII
letters. Kitty does not CSIu encode special characters like `@` or `$`.
For these characters, Ghostty still encodes it as specified by fixterms.
2024-02-17 13:45:49 -08:00