enable ^L to repaint
All checks were successful
Generic zig build / build (push) Successful in 53s

This commit is contained in:
Emil Lerch 2026-03-17 09:50:46 -07:00
parent 1cd775c27e
commit 36d096a938
Signed by: lobo
GPG key ID: A7B62D657EF764F8
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 => {