french-wiktionary-flashcards

Easily create Anki flashcards from Wiktionary data.
Log | Files | Refs | README

commit 1d6d76e425f5e892cb99c028fb76cd5d0e71f90b
parent 3b059edbeca54bc62b1de5d2a8d923fb115716d8
Author: David Schlachter <t480-debian-git@schlachter.ca>
Date:   Thu, 15 Jan 2026 00:22:02 -0500

Clear screen on exit

Diffstat:
Mui.go | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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 = ""