diff options
| author | David Schlachter <t480-debian-git@schlachter.ca> | 2026-01-15 00:22:02 -0500 |
|---|---|---|
| committer | David Schlachter <t480-debian-git@schlachter.ca> | 2026-01-15 00:22:02 -0500 |
| commit | 1d6d76e425f5e892cb99c028fb76cd5d0e71f90b (patch) | |
| tree | 44d1e732fca71e98486192cd2ab9c9024101b86d /ui.go | |
| parent | 3b059edbeca54bc62b1de5d2a8d923fb115716d8 (diff) | |
Clear screen on exit
Diffstat (limited to 'ui.go')
| -rw-r--r-- | ui.go | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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 = "" |
