1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-11 13:51:01 -05:00

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>
This commit is contained in:
André Kugland 2022-06-01 03:33:08 +00:00 committed by GitHub
parent 63ef6c9319
commit e20541a83e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 9 deletions

View file

@ -36,7 +36,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Vi cursor blinking not reset when navigating in search - Vi cursor blinking not reset when navigating in search
- Scrolling and middle-clicking modifying the primary selection - Scrolling and middle-clicking modifying the primary selection
- Bottom gap for certain builtin box drawing characters - Bottom gap for certain builtin box drawing characters
- Incorrect buili-in glyphs for `U+2567` and `U+2568` - Incorrect built-in glyphs for `U+2567` and `U+2568`
- Character mappings in the DEC special graphics character set (line drawing)
## 0.10.1 ## 0.10.1

View file

@ -848,16 +848,17 @@ impl StandardCharset {
match self { match self {
StandardCharset::Ascii => c, StandardCharset::Ascii => c,
StandardCharset::SpecialCharacterAndLineDrawing => match c { StandardCharset::SpecialCharacterAndLineDrawing => match c {
'_' => ' ',
'`' => '◆', '`' => '◆',
'a' => '▒', 'a' => '▒',
'b' => '\t', 'b' => '\u{2409}', // Symbol for horizontal tabulation
'c' => '\u{000c}', 'c' => '\u{240c}', // Symbol for form feed
'd' => '\r', 'd' => '\u{240d}', // Symbol for carriage return
'e' => '\n', 'e' => '\u{240a}', // Symbol for line feed
'f' => '°', 'f' => '°',
'g' => '±', 'g' => '±',
'h' => '\u{2424}', 'h' => '\u{2424}', // Symbol for newline
'i' => '\u{000b}', 'i' => '\u{240b}', // Symbol for vertical tabulation
'j' => '┘', 'j' => '┘',
'k' => '┐', 'k' => '┐',
'l' => '┌', 'l' => '┌',

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long