3273 Commits

Author SHA1 Message Date
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
Mitchell Hashimoto
5d1b54eceb termio: unescape OSC 7 pwd since it is URL encoded
Fixes #621
2023-10-10 11:21:59 -07:00
Mitchell Hashimoto
2dd1903851 Merge pull request #650 from mitchellh/mouse
Mouse selection fixes around the initially clicked cell
2023-10-10 09:40:00 -07:00
Mitchell Hashimoto
e11b3465d5 update prettier ignore to ignore website dev compiled 2023-10-10 09:39:39 -07:00
Mitchell Hashimoto
a234627156 core: mouse selection to right should include first cell if past
boundary
2023-10-10 09:37:11 -07:00
Mitchell Hashimoto
a6d3d51945 core: mouse selection when moving left before half-way point
If you have a cell "M" and you click before the mid-point of M on the
left side and then drag left, we should not select "M".
2023-10-10 09:35:11 -07:00
Mitchell Hashimoto
21ec39ed5d Merge pull request #649 from mitchellh/ris-tabs
terminal: RIS should reset tabstops, ESC ? W should reset every 8
2023-10-10 09:16:38 -07:00
Mitchell Hashimoto
f216609662 terminal: RIS should reset tabstops, ESC ? W should reset every 8
Fixes #648

Two issues here:

  - RIS should've been resetting the tabstops to every 8, but was
    clearing all tabstops.

  - `ESC ? W` should've reset tabstops to every 8, but was clearing
    all tabstops.
2023-10-10 09:02:22 -07:00
Mitchell Hashimoto
9573bfccb0 website: RIS 2023-10-10 09:00:19 -07:00
Mitchell Hashimoto
04756e1a79 Merge pull request #646 from mitchellh/sm
xterm audit: DECALN, Top/Bot Margins, Left/Right Margins
2023-10-09 21:27:59 -07:00
Mitchell Hashimoto
d05e488cc4 website: left/right margins 2023-10-09 21:20:30 -07:00
Mitchell Hashimoto
2354454907 terminal: set left and right margins, left and right margin mode 69 2023-10-09 21:20:15 -07:00
Mitchell Hashimoto
be99d8ffe1 terminal: decaln 2023-10-09 20:33:52 -07:00
Mitchell Hashimoto
7cc0bbe211 terminal: set top and bottom margin tests 2023-10-09 20:08:16 -07:00
Mitchell Hashimoto
01a8013533 pkg/harfbuzz: remove accidentally committed archive file 2023-10-09 16:05:55 -07:00
Mitchell Hashimoto
cf1f59f5d9 Merge pull request #644 from mitchellh/sm
terminal: handle ansi vs dec mode
2023-10-09 16:05:32 -07:00
Mitchell Hashimoto
9c45c6a3d1 terminal: handle ansi vs dec mode
Previously, we just ignored ansi vs dec modes (`?`-prefix) and just
responded to both requests most of the time using the number as the
unique value. This _kind of works_ because almost all DEC modes do not
overlap with ANSI modes, but some overlap (i.e. `insert`, ANSI mode 4).

This commit properly separates ANSI vs DEC modes and updates all of our
terminal sequences to handle both (where applicable -- some sequences
are explicitly DEC-only).
2023-10-09 16:01:08 -07:00
Mitchell Hashimoto
5e5b1f81d3 website: add validation for sd 2023-10-09 10:56:13 -07:00
Mitchell Hashimoto
0e22e2a8dd terminal: SD should also work if cursor outside of left/right region 2023-10-09 10:53:47 -07:00
Mitchell Hashimoto
f64ed7441c Merge pull request #643 from mitchellh/sd
xterm audit: SD, TBC, DECID
2023-10-09 10:06:46 -07:00
Mitchell Hashimoto
fc08f9ab17 terminal: TBC tests 2023-10-09 10:01:23 -07:00
Mitchell Hashimoto
ed23f2f1d0 terminal: implement DECID (ESC Z) 2023-10-09 09:43:28 -07:00
Mitchell Hashimoto
773104d343 terminal: scroll down tests 2023-10-09 09:40:28 -07:00
Mitchell Hashimoto
d0b8bf7752 terminal: enable alternate scroll mode by default
Fixes #641

xterm does not so there is an argument to not doing this but a lot of
other terminals do. Having this on by default makes things like less
scroll with the mouse wheel by default which is nice to have.
2023-10-09 09:23:39 -07:00
Mitchell Hashimoto
dbd15c80a6 Merge pull request #642 from gpanders/new-window-no-tabs
macos: force new window for "New Window" action
2023-10-09 09:19:50 -07:00
Gregory Anders
4681b95bb3 macos: force new window for "New Window" action
There is a setting in the macOS System Preferences called "Prefer tabs
when opening documents" (accessed through the userTabbingPreference
field of NSWindow) which, when set to "Always", makes the "New Window"
action open windows in tabs.

Ideally, this setting would be controlled on a per-app basis in macOS,
but unfortunately that is not the case. Because Ghostty explicitly
offers both "New Tab" and "New Window" actions, this user setting should
be ignored when creating new windows.
2023-10-09 09:20:52 -05:00
Mitchell Hashimoto
57a86e3bd7 Merge pull request #640 from mitchellh/dch
xterm audit: dch
2023-10-08 22:33:09 -07:00
Mitchell Hashimoto
60f0e9289a terminal: dch xterm audit 2023-10-08 22:16:35 -07:00
Mitchell Hashimoto
33ce2c29ea Merge pull request #639 from mitchellh/il
xterm audit: insert line (IL), delete line (DL)
2023-10-08 21:40:32 -07:00
Mitchell Hashimoto
1176b65a95 terminal: test IND preserves background sgr 2023-10-08 21:39:29 -07:00