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
parent c4c0f9c90a
commit 6cc6e53a68
No known key found for this signature in database
GPG key ID: D2747312A6DB51AA
14 changed files with 52 additions and 20 deletions

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):