3227 Commits

Author SHA1 Message Date
Mitchell Hashimoto
eda0e8ad04 pkg/apple-sdk: update to not have any broken symlinks 2023-10-17 13:11:27 -07:00
Mitchell Hashimoto
b0f95263fc ci: don't specify -gnu on test triple 2023-10-17 13:07:18 -07:00
Mitchell Hashimoto
8f46d114c0 update zig 2023-10-17 12:45:35 -07:00
Mitchell Hashimoto
5a21701394 Merge pull request #697 from mitchellh/glyph-downsample
renderer: do not downsample oversized glyphs
2023-10-17 10:57:41 -07:00
Mitchell Hashimoto
a5066635f0 renderer: do not downsample oversized glyphs
Fixes #696

We should rely on the rasterizer to create glyphs of the proper size,
including doing CPU resizing if necessary.
2023-10-17 10:55:04 -07:00
Mitchell Hashimoto
e9637c2cfe Merge pull request #694 from gpanders/view-menu
macos: add menu items to modify font size
2023-10-16 22:24:16 -07:00
Mitchell Hashimoto
4341428c18 macos: make xcode 14 compatible, do not use switch expr 2023-10-16 20:05:32 -07:00
Gregory Anders
f966a5a163 macos: add menu items to modify font size
Add a new "View" menu to the menu bar with items to increase, decrease,
or reset the font size.
2023-10-16 20:32:33 -05:00
Mitchell Hashimoto
56721d9cac Merge pull request #693 from mitchellh/emoji-cursor
renderer: render cursor behind colored emoji
2023-10-16 13:06:41 -07:00
Mitchell Hashimoto
ab35a21dc2 renderer: render cursor behind colored emoji 2023-10-16 12:57:23 -07:00
Mitchell Hashimoto
0918731d9a renderer/metal: need to set proper alpha for fg mode in shader
Fixes #673
2023-10-16 12:22:51 -07:00
Mitchell Hashimoto
7ce313d1db Merge pull request #691 from mitchellh/vs16-cursor
terminal: with mode 2027, vs16 must move cursor one more right
2023-10-16 09:49:21 -07:00
Mitchell Hashimoto
407bd6fb79 terminal: with mode 2027, vs16 must move cursor one more right
Fixes #680
2023-10-16 09:48:05 -07:00
Mitchell Hashimoto
593d2a560e Merge pull request #690 from mitchellh/dl-full-region
terminal: scroll up full top/bottom region was off by one
2023-10-16 09:27:00 -07:00
Mitchell Hashimoto
12054087e1 terminal: scroll up full top/bottom region was off by one
Fixes #689

See test cases, verified with xterm.
2023-10-16 09:25:47 -07:00
Mitchell Hashimoto
1c0fd2442b Merge pull request #688 from mitchellh/dsr
xterm audit: cursor position report (CPR)
2023-10-15 22:00:10 -07:00
Mitchell Hashimoto
7b81eba565 terminal: cursor position report respects left scroll region with origin 2023-10-15 21:58:13 -07:00
Mitchell Hashimoto
c382f61a32 Merge pull request #687 from mitchellh/cancel
renderer: handle error.NotFound for timer cancellation
2023-10-15 21:44:42 -07:00
Mitchell Hashimoto
313eec0c7d Merge pull request #686 from mitchellh/sc
xterm audit: save cursor, restore cursor
2023-10-15 21:38:21 -07:00
Mitchell Hashimoto
78b5c1db77 renderer: handle error.NotFound for timer cancellation
Fixes #685

This is expected in very rare scenarios where under heavy load, a timer
could complete before a cancellation request is processed, resulting in
a "not found".
2023-10-15 21:35:13 -07:00
Mitchell Hashimoto
06f7cfb398 terminal: save cursor and restore cursor xterm audit 2023-10-15 21:25:47 -07:00
Mitchell Hashimoto
974ee6d7a7 Merge pull request #684 from mitchellh/scroll-input
core: scroll viewport back to bottom on any key input that isn't a mod
2023-10-15 09:09:58 -07:00
Mitchell Hashimoto
879bdf27a9 core: scroll viewport back to bottom on any key input that isn't a mod
Fixes #619

This changes the behavior from requiring printable text to any input
that isn't a modifier and also generates some data we send to the pty.
If there is printable text, we also clear the selection.
2023-10-15 08:53:38 -07:00
Mitchell Hashimoto
877fa606db Merge pull request #683 from mitchellh/osc-alloc
OSC52 can heap-allocate for the payload
2023-10-15 08:45:42 -07:00
Mitchell Hashimoto
de1ed071ad termio: configure OSC parser with an allocator 2023-10-15 08:41:38 -07:00
Mitchell Hashimoto
cfac6c4001 terminal: OSC parser takes optional allocator
OSC 52 is the only command that uses this today. If the allocator is
present it will use it to store the clipboard contents.
2023-10-14 21:49:10 -07:00
Mitchell Hashimoto
6990c1572a macos: insertText should not include null char 2023-10-14 21:06:34 -07:00
Mitchell Hashimoto
6895613d20 Merge pull request #681 from mitchellh/cusror
cursor defaults to fg, `cursor-opacity` setting
2023-10-14 14:15:57 -07:00
Mitchell Hashimoto
b4070eb67e renderer: unfocused cursor should always be fully opaque 2023-10-14 14:11:15 -07:00
Mitchell Hashimoto
ff38d3e358 config: add cursor-opacity 2023-10-14 14:08:06 -07:00
Mitchell Hashimoto
7167cf9054 renderer: default cursor color to foreground
Fixes #667
2023-10-14 14:02:17 -07:00
Mitchell Hashimoto
a75d42b4a5 core: allow arrow key on scroll to fail write to IO
Fixes #625

This only applies if there is a LOT of scroll events. In that case,
clamping the scroll events to whatever our IO thread can handle seems
fine. An alternate approach is to allocate.
2023-10-14 10:53:20 -07:00
Mitchell Hashimoto
84a9339aea Merge pull request #678 from mitchellh/vs16
terminal: VS16 should make a narrow char take up two cells
2023-10-14 10:46:46 -07:00
Mitchell Hashimoto
59140f593b terminal: VS16 should make a narrow char take up two cells in mode 2027 2023-10-14 10:43:50 -07:00
Mitchell Hashimoto
529d1f016f terminal: when clearing previous wide character, preserve SGR state 2023-10-13 15:15:14 -07:00
Mitchell Hashimoto
8fe722686d Merge pull request #671 from mitchellh/sprite-width
Fix cursor width, underline width with wide chars
2023-10-13 14:52:36 -07:00
Mitchell Hashimoto
880252fd1d terminal: printing over wide spacer tail should clear wide char 2023-10-13 14:45:40 -07:00
Mitchell Hashimoto
4f5a05e087 renderer: render cursor over wide character if on tail part 2023-10-13 14:39:10 -07:00
Mitchell Hashimoto
7995d44cfb font: render sprites with a configurable grid cell width
Fixes #666
2023-10-13 14:31:55 -07:00
Mitchell Hashimoto
d66d2c8827 Merge pull request #670 from mitchellh/font-fallbakc
font: fallback search should search full discovery chain
2023-10-13 12:29:59 -07:00
Mitchell Hashimoto
1411015038 font: fallback search should search full discovery chain
Fixes #668

We were previously only checking the first font result in the search.
This also fixes our CoreText scoring algorithm to prioritize faces that
have the codepoint we're searching for.
2023-10-13 12:25:27 -07:00
Mitchell Hashimoto
00b7625694 Merge pull request #665 from mitchellh/linefeed
terminal: linefeed mode
2023-10-12 20:51:05 -07:00
Mitchell Hashimoto
5ce50d08a1 terminal: linefeed mode 2023-10-12 20:46:26 -07:00
Mitchell Hashimoto
8c61f8d890 Merge pull request #664 from mitchellh/kam
xterm audit: ANSI modes 2 (KAM), 4 (INSERT), 12 (SRM)
2023-10-12 19:43:01 -07:00
Mitchell Hashimoto
853c0427e6 website: document srm mode 2023-10-12 19:38:06 -07:00
Mitchell Hashimoto
89d2827910 terminal: insert mode tests, fix insertBlanks multi-cell char split 2023-10-12 19:24:27 -07:00
Mitchell Hashimoto
6a065540dd terminal: KAM (mode 2)
This has an associated config `vt-kam-allowed` which defaults to "false"
since this mode can cause the terminal to become mostly unusable. We
include this mode for completions sake however.
2023-10-12 17:07:47 -07:00
Mitchell Hashimoto
f5a80f6b98 Merge pull request #662 from mitchellh/legacy-sides
input: legacy encoding pc style keys should ignore directional modifiers
2023-10-12 12:34:00 -07:00
Mitchell Hashimoto
d97e5b9dab input: legacy encoding pc style keys should ignore directional modifiers 2023-10-12 12:28:26 -07:00
Mitchell Hashimoto
f402ca140c Merge pull request #660 from mitchellh/ind-lr
terminal: index handles left/right regions
2023-10-12 08:31:39 -07:00