Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions src/XTerm.NET.Tests/InputHandlerTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,21 @@ public void Print_MultipleCharacters_PrintsSequentially()
Assert.Equal("Hello", line.TranslateToString(true, 0, 5));
}

[Fact]
public void Write_DecSpecialGraphics_MapsCornersCorrectly()
{
// Arrange
var terminal = CreateTerminal();

// Act
terminal.Write("\x1B(0jklmqx\x1B(Bj");

// Assert
var line = terminal.Buffer.Lines[0];
Assert.NotNull(line);
Assert.Equal("\u2518\u2510\u250c\u2514\u2500\u2502j", line.TranslateToString(true));
}

[Fact]
public void HandleCsi_CursorUp_MovesCursor()
{
Expand Down
2 changes: 1 addition & 1 deletion src/XTerm.NET/Common/Charsets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public static class Charsets
public static readonly Dictionary<char, string> VT100LineDrawing = new()
{
// Box Drawing Characters
{ 'j', "\u250c" }, // ? Bottom right corner
{ 'j', "\u2518" }, // ? Bottom right corner
{ 'k', "\u2510" }, // ? Top right corner
{ 'l', "\u250c" }, // ? Top left corner
{ 'm', "\u2514" }, // ? Bottom left corner
Expand Down