summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Schlachter <t480-debian-git@schlachter.ca>2026-01-15 00:22:02 -0500
committerDavid Schlachter <t480-debian-git@schlachter.ca>2026-01-15 00:22:02 -0500
commit1d6d76e425f5e892cb99c028fb76cd5d0e71f90b (patch)
tree44d1e732fca71e98486192cd2ab9c9024101b86d
parent3b059edbeca54bc62b1de5d2a8d923fb115716d8 (diff)
Clear screen on exit
-rw-r--r--ui.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/ui.go b/ui.go
index 5d374ef..af6118d 100644
--- a/ui.go
+++ b/ui.go
@@ -148,6 +148,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
case tea.KeyMsg:
switch msg.Type {
case tea.KeyCtrlC, tea.KeyCtrlD:
+ fmt.Print("\033[H\033[2J") // clear screen
return m, tea.Quit
case tea.KeyEsc:
m.currentWord = ""