diff --git a/TODO.md b/TODO.md index 5cbfc9c..98b9d0b 100644 --- a/TODO.md +++ b/TODO.md @@ -28,9 +28,8 @@ question: fixed at 2, or arbitrary N? ## TUI issues Starting the TUI with a ticker symbol doesn't uppercase (why can't we just solve -this once?). ^L isn't refreshing the screen, and I'm getting artifacts on the -display that don't go away when switching tabs (need specific steps to reproduce -this). +this once?). Display artifacts that don't go away when switching tabs (need +specific steps to reproduce). ## Risk-free rate maintenance diff --git a/src/tui.zig b/src/tui.zig index 868deb8..a8d0830 100644 --- a/src/tui.zig +++ b/src/tui.zig @@ -511,6 +511,12 @@ const App = struct { return; } + // Ctrl+L: full screen redraw (standard TUI convention, not configurable) + if (key.codepoint == 'l' and key.mods.ctrl) { + ctx.queueRefresh() catch {}; + return ctx.consumeAndRedraw(); + } + const action = self.keymap.matchAction(key) orelse return; switch (action) { .quit => {