summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 = ""