From 2437e6c89c713c3739a87b6c700abbc170327fd6 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 27 Feb 2021 18:20:15 -0500 Subject: [PATCH] ncplayer: handle ctrl-L for redraw --- src/player/play.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/player/play.cpp b/src/player/play.cpp index d6ff1413f..2d2091a2e 100644 --- a/src/player/play.cpp +++ b/src/player/play.cpp @@ -140,6 +140,9 @@ auto perframe(struct ncvisual* ncv, struct ncvisual_options* vopts, } if(keyp == NCKey::Resize){ return 0; + }else if(keyp == 'L'){ // FIXME check for ctrl+l + nc.refresh(nullptr, nullptr); + continue; }else if(keyp >= '0' && keyp <= '8'){ // FIXME eliminate ctrl/alt marsh->blitter = static_cast(keyp - '0'); vopts->blitter = marsh->blitter; @@ -381,6 +384,9 @@ auto main(int argc, char** argv) -> int { break; }else if(ie == 'q'){ goto done; + }else if(ie == 'L'){ + --i; + nc.refresh(nullptr, nullptr); }else if(ie >= '0' && ie <= '8'){ --i; // rerun same input with the new blitter vopts.blitter = blitter = static_cast(ie - '0');