Mitchell Hashimoto
b1389cbbfe
renderer: support font style changing at runtime
2023-09-26 08:51:04 -07:00
Mitchell Hashimoto
08954feb59
cli: args can parse unions
2023-09-26 08:45:20 -07:00
Mitchell Hashimoto
57d81ba9e1
core: disable styles
2023-09-26 08:39:36 -07:00
Mitchell Hashimoto
6b913bc6bb
font: Group can enable/disable styles
2023-09-26 08:37:07 -07:00
Mitchell Hashimoto
4b791f3ee1
renderer: always reset font group on config change
2023-09-26 08:18:11 -07:00
Mitchell Hashimoto
17c0e7f75f
config: font style is a union
2023-09-26 08:13:11 -07:00
Mitchell Hashimoto
96f835b78b
core: shift does not send mouse events
...
Fixes #542
2023-09-26 07:52:22 -07:00
Mitchell Hashimoto
b5505d1f92
Merge pull request #543 from isinyaaa/push-lqtuszxmrkkp
...
quirks: CodeNewRoman should disable ligatures by default
2023-09-26 07:36:19 -07:00
Isabella Basso
28322ed304
quirks: CodeNewRoman should disable ligatures by default
2023-09-26 11:10:25 -03:00
Mitchell Hashimoto
6a863a7bbb
Merge pull request #539 from mitchellh/wrap-audit
...
Reset pending wrap state audit
2023-09-25 17:52:37 -07:00
Mitchell Hashimoto
3f48a43ba4
terminal: cursors must set pending wrap
2023-09-25 17:42:37 -07:00
Mitchell Hashimoto
2c26071332
terminal: eraseLine resets wrap
2023-09-25 17:32:51 -07:00
Mitchell Hashimoto
f4886bb80e
macos: read from clipboard uses UTF-8 encoded string, proper byte count
2023-09-25 17:26:23 -07:00
Mitchell Hashimoto
1f3138add7
terminal: eraseChars resets wrap
2023-09-25 16:23:29 -07:00
Mitchell Hashimoto
804d252787
terminal: deleteChars resets pending wrap state
2023-09-25 16:21:04 -07:00
Mitchell Hashimoto
27cc8e5529
terminal: insertLines resets wrap
2023-09-25 16:17:22 -07:00
Mitchell Hashimoto
961e836d67
terminal: DL should reset wrap
2023-09-25 16:13:07 -07:00
Mitchell Hashimoto
806ce6d399
Merge pull request #538 from rockorager/dev
...
Use bg attribute when erasing cells line-wise, or inserting new lines
2023-09-25 14:17:35 -07:00
Tim Culverhouse
cfdce572b9
screen: only use bg attr for inserted rows
...
When scrolling up or deleting lines (effectively the same operation),
the inserted lines should only inherit the bg attribute of the cursor.
This behavior is similar to erase display and erase line. Update tests
to reflect this behavior.
2023-09-25 16:07:48 -05:00
Tim Culverhouse
5d598e4e33
terminal: only use bg attr when erasing line
...
Similar to eraseDisplay semantics, erase line should only apply the bg
attr to erased cells.
2023-09-25 16:07:48 -05:00
Mitchell Hashimoto
42304ce733
Merge pull request #537 from rockorager/setulc
...
terminfo: add Setulc string for colored underlines
2023-09-25 13:59:00 -07:00
Tim Culverhouse
da6dfbbf3d
terminfo: add Setulc string for colored underlines
...
Add terminfo key 'Setulc' to enable colored underlines.
2023-09-25 15:54:03 -05:00
Mitchell Hashimoto
e1d66da1b6
Merge pull request #536 from mitchellh/protected-mode
...
DEC Protected Mode (DECSCA, DECSEL, DECSED)
2023-09-25 11:57:05 -07:00
Mitchell Hashimoto
35f89bd28c
terminal: eraseDisplay protected
2023-09-25 11:16:06 -07:00
Mitchell Hashimoto
e2a26106bb
Merge pull request #535 from rockorager/fix-xtversion
...
terminal: use ST instead of BEL terminator for XTVERSION
2023-09-25 11:11:03 -07:00
Tim Culverhouse
3d5180a177
terminal: use ST instead of BEL terminator for XTVERSION
...
The XTVERSION response should use a string terminator instead of a bell.
Most terminals can handle the bell, however specifically tmux does not
like it.
Fixes : #534
2023-09-25 13:08:31 -05:00
Mitchell Hashimoto
f1c771615f
terminal: eraseLine protected, tests
2023-09-25 10:56:59 -07:00
Mitchell Hashimoto
5528580a29
terminal: DECSED, DECSEL parsing, tests
2023-09-25 10:56:59 -07:00
Mitchell Hashimoto
8137a66ef6
terminal: CSI Ps " q for setting DEC protected mode
2023-09-25 10:56:59 -07:00
Mitchell Hashimoto
2a390785f5
terminal: add protected mode flag to cursor pen
2023-09-25 10:56:57 -07:00
Mitchell Hashimoto
b67922c8ff
Merge pull request #533 from rockorager/dev
...
Charset / cursor state saving and retaining in the alternate screen
2023-09-25 10:56:43 -07:00
Tim Culverhouse
3264e70701
terminal: don't modify pen state when erasing eraseDisplay
...
Erasing the display should be done with only the background attribute of
the current pen. This is the current behavior but is done by altering
the current pen state. The pen state should remain after erasure. Use a
new pen variable to erase the display to enable retaining the pen state.
Add a test condition.
2023-09-25 12:25:45 -05:00
Tim Culverhouse
b592b069c8
terminal: retain cursor and charset when entering alt screen
...
The state of the cursor and charset should be retained when entering the
alternate screen.
Fixes: alacritty/save_cursor_alt
2023-09-25 11:42:01 -05:00
Tim Culverhouse
66875206bb
terminal: move charset to screen
...
Each screen (primary and alternate) retains the state of the current
charset when DECSC (save cursor) is called. Move the CharsetState into
the screen to enable saving the state with each screen.
Add a test for charset state on screen change
2023-09-25 10:43:39 -05:00
Mitchell Hashimoto
601ca5e7de
Merge pull request #531 from mitchellh/codepoint-map
...
Specify font for specific codepoint ranges
2023-09-24 21:06:51 -07:00
Mitchell Hashimoto
7a9a36ecb0
config: remove unused test, make parse test more intense
2023-09-24 20:49:53 -07:00
Mitchell Hashimoto
6ac4cc9671
font: debug log for overide
2023-09-24 20:40:36 -07:00
Mitchell Hashimoto
41170bb4e0
config: codepoint override font descriptors should not require monospace
2023-09-24 20:36:07 -07:00
Mitchell Hashimoto
c2cc2b8f03
core: hook up the codepoint map to the loaded font group
2023-09-24 20:35:05 -07:00
Mitchell Hashimoto
a8877d334c
config: unicode range parser is more lenient about whitespace
2023-09-24 20:32:35 -07:00
Mitchell Hashimoto
bcafbc8abb
config: add font-codepoint-map
2023-09-24 20:28:24 -07:00
Mitchell Hashimoto
f25a3ce87d
Merge pull request #530 from rockorager/dev
...
terminal: fix alacritty tests insert_blank_reset and saved_cursor
2023-09-24 20:04:21 -07:00
Tim Culverhouse
3d35ae1869
terminal: save charset state and DECOM mode when saving cursor
...
The charset state and DECOM mode should be saved along with the cursor
state.
Reference: https://vt100.net/docs/vt510-rm/DECSC.html
Fixes: alacritty/saved_cursor
2023-09-24 21:56:48 -05:00
Tim Culverhouse
17ee5c7fd5
terminal: insert a blank cell in insertBlanks
...
The name sounds obvious, but nothing ever is with ANSI escapes. ICH
(Insert Blank Characters) should insert a cell with no attributes or
colors set.
Remove comment about inserting a space for tests: the tests pass with a
blank cell inserted.
Remove comment about inserted cells having current SGR.
Update tests to check for attribute of inserted cell.
2023-09-24 21:56:48 -05:00
Mitchell Hashimoto
abd3e16ebd
font: Group will use the codepoint map for codepoint overrides
2023-09-24 19:44:06 -07:00
Mitchell Hashimoto
d9644e4357
Merge pull request #529 from rockorager/alacritty/deccolm_reset
...
terminal: make deleteChars insert blank cells
2023-09-24 19:27:33 -07:00
Tim Culverhouse
5f87e09d61
terminal: make deleteChars insert blank cells
...
When DCH (deleteChars) deletes cells from a line, cells are inserted
from the right. The new cells should not have the current pen style, and
should instead be an empty cell.
Add check for this in the existing test.
Fixes: alacritty/deccolm_reset
2023-09-24 19:12:38 -05:00
Mitchell Hashimoto
5c1c090f39
font: change FontIndex to a u16 since we can expect more fonts with maps
2023-09-24 15:53:39 -07:00
Mitchell Hashimoto
9e2e3acecf
font: add codepoint map and descriptor cache to Group, not used yet
2023-09-24 11:50:03 -07:00
Mitchell Hashimoto
3915d9ee3a
font: add CodepointMap with tests
2023-09-24 11:22:57 -07:00