3202 Commits

Author SHA1 Message Date
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
Mitchell Hashimoto
17430a1250 terminal: index handles left/right regions 2023-10-12 08:31:28 -07:00
Mitchell Hashimoto
bf91367db9 Merge pull request #659 from mitchellh/xterm-stuff
xterm audit: REP, XTSHIFTESCAPE
2023-10-11 22:09:26 -07:00
Mitchell Hashimoto
f94f32be79 website 2023-10-11 22:01:37 -07:00
Mitchell Hashimoto
392da475e1 terminal: XTSHIFTESCAPE 2023-10-11 21:49:04 -07:00
Mitchell Hashimoto
f7cc5ccdd6 config: add mouse-shift-capture configuration 2023-10-11 21:38:52 -07:00
Mitchell Hashimoto
96546af475 terminal: test REP 2023-10-11 17:23:27 -07:00
Mitchell Hashimoto
d6f7b45a64 Merge pull request #656 from mitchellh/enable-lr
Enable Left/Right Margin Mode
2023-10-10 16:26:30 -07:00
Mitchell Hashimoto
e593ffa264 terminal: default for right scroll margin was incorrect 2023-10-10 16:06:27 -07:00
Mitchell Hashimoto
0d2bfacd5b terminfo: add left/right margin entries 2023-10-10 15:59:24 -07:00
Mitchell Hashimoto
a9fee348b6 terminal: print handles left/right margins 2023-10-10 15:41:31 -07:00
Mitchell Hashimoto
73ecb6f7ee terminal: CUL handles left/right margins 2023-10-10 15:26:04 -07:00
Mitchell Hashimoto
0c2bf94b13 Enable left/right margin support 2023-10-10 15:21:45 -07:00
Mitchell Hashimoto
1af3e4219a Merge pull request #654 from phinze/doc-terminfo-ssh
Document terminfo & SSH details
2023-10-10 15:20:07 -07:00
Mitchell Hashimoto
42dc244b1d prettier 2023-10-10 15:19:49 -07:00
Mitchell Hashimoto
71d8875043 Merge pull request #655 from mitchellh/xterm-stuff
xterm audit: CNL, CPL, NEL, RI, HTS
2023-10-10 15:19:16 -07:00
Mitchell Hashimoto
fbc305c901 terminal: reverse index xterm audit 2023-10-10 15:15:53 -07:00
Paul Hinze
31d22f45af Document terminfo & SSH details
Adds information to the README to inform users about strategies and
workarounds for handling the lack of Ghostty's terminfo entry on remote
SSH hosts.
2023-10-10 16:55:52 -05:00
Mitchell Hashimoto
d8f2a8dff0 termio: NEL is index then CR 2023-10-10 14:37:25 -07:00
Mitchell Hashimoto
baf9d21b5e website: CNL CPL 2023-10-10 14:36:39 -07:00
Mitchell Hashimoto
2f7dc9dddf Merge pull request #653 from mitchellh/xterm-stuff
xterm audit: DECKPAM, DECKPNAM, DECSCUSR, SU, SD
2023-10-10 14:29:29 -07:00
Mitchell Hashimoto
28b7329fe4 terminal: scroll down test 2023-10-10 14:22:05 -07:00
Mitchell Hashimoto
3cc0cbcc9d terminal: SU, fix DL bug 2023-10-10 13:00:00 -07:00
Mitchell Hashimoto
7a8f2bfed6 terminal: decscusr 2023-10-10 12:24:11 -07:00
Mitchell Hashimoto
c980234cb4 website: deckpam, deckpnam 2023-10-10 12:15:04 -07:00
Mitchell Hashimoto
50fdb9dfe4 Merge pull request #652 from mitchellh/path-space
termio: unescape OSC 7 pwd since it is URL encoded
2023-10-10 11:25:19 -07:00