feat(term): make cursor hollow when un-focused

Closes #29.
This commit is contained in:
Leroy Hopson 2024-04-28 22:56:55 +12:00 committed by Leroy Hopson
parent c4c0f9c90a
commit 4c4e61cf99
14 changed files with 52 additions and 20 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 984 B

After

Width:  |  Height:  |  Size: 992 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 503 B

After

Width:  |  Height:  |  Size: 517 B

Before After
Before After

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 810 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 548 B

After

Width:  |  Height:  |  Size: 550 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 560 B

After

Width:  |  Height:  |  Size: 561 B

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.9 KiB

After

Width:  |  Height:  |  Size: 6.8 KiB

Before After
Before After

View file

@ -51,6 +51,16 @@ class TestVisualRegression:
await wait_frames(30)
assert_match("empty")
func test_empty_focused():
subject.grab_focus()
await wait_frames(30)
assert_match("empty_focused")
func test_hollow_cursor():
subject.write("W\b")
await wait_frames(30)
assert_match("hollow_cursor")
func test_default_theme():
# Print every background color.
for i in range(8):