enable ^L to repaint

This commit is contained in:
Emil Lerch 2026-03-17 09:50:46 -07:00
parent 5acce9d0bf
commit c58cdab98e
2 changed files with 8 additions and 3 deletions

View file

@ -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

View file

@ -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 => {