aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src
diff options
context:
space:
mode:
authorAndré Kugland <kugland@gmail.com>2022-06-01 03:33:08 +0000
committerGitHub <noreply@github.com>2022-06-01 03:33:08 +0000
commite20541a83e55d5ddd57b1bed0f4666b3c73f680d (patch)
tree20ae6e111c067d7c14d68a84721b4ef5c558ef62 /alacritty_terminal/src
parent63ef6c931901e895442edf5ec113d0ff609a7c24 (diff)
downloadalacritty-e20541a83e55d5ddd57b1bed0f4666b3c73f680d.tar.gz
alacritty-e20541a83e55d5ddd57b1bed0f4666b3c73f680d.zip
Fix DEC Special Character Set (Line drawing)
This patch resolves some mapping issues with the line drawing character set where characters like linefeed were incorrectly mapped to their proper character representation rather than the codepoint of their identification glpyh. Co-authored-by: Christian Duerr <contact@christianduerr.com>
Diffstat (limited to 'alacritty_terminal/src')
-rw-r--r--alacritty_terminal/src/ansi.rs13
1 files changed, 7 insertions, 6 deletions
diff --git a/alacritty_terminal/src/ansi.rs b/alacritty_terminal/src/ansi.rs
index b590bd7d..393f6a8c 100644
--- a/alacritty_terminal/src/ansi.rs
+++ b/alacritty_terminal/src/ansi.rs
@@ -848,16 +848,17 @@ impl StandardCharset {
match self {
StandardCharset::Ascii => c,
StandardCharset::SpecialCharacterAndLineDrawing => match c {
+ '_' => ' ',
'`' => '◆',
'a' => '▒',
- 'b' => '\t',
- 'c' => '\u{000c}',
- 'd' => '\r',
- 'e' => '\n',
+ 'b' => '\u{2409}', // Symbol for horizontal tabulation
+ 'c' => '\u{240c}', // Symbol for form feed
+ 'd' => '\u{240d}', // Symbol for carriage return
+ 'e' => '\u{240a}', // Symbol for line feed
'f' => '°',
'g' => '±',
- 'h' => '\u{2424}',
- 'i' => '\u{000b}',
+ 'h' => '\u{2424}', // Symbol for newline
+ 'i' => '\u{240b}', // Symbol for vertical tabulation
'j' => '┘',
'k' => '┐',
'l' => '┌',