From 8d84f5933289b91877b2c0a611da63140d8874b2 Mon Sep 17 00:00:00 2001 From: KatolaZ Date: Sat, 20 Jul 2019 18:33:42 +0100 Subject: add visual in status bar --- TODO | 4 +++- gramscii.c | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/TODO b/TODO index c84da67..0f4dc1c 100644 --- a/TODO +++ b/TODO @@ -1,18 +1,20 @@ + optimize redraws (i.e., avoid to redraw if possible) - (?) change cursor shape according to action - auto-arrow 'A' (automatic end-char) +- change screen management (i.e., use an array of lines) - read file at point + visual selection - crop - yank/put * fill * delete -- change screen management (i.e., use an array of lines) - undo (by storing lines changed across insert/remove operations) - manage special chars (DEL/CANC) during text insert (also do not print unmanaged chars!) - get screen geometry - allow scrolling (both vertical and horizontal) +* add "vis" (for visual) in mode strings +* implement "." to reset styles to defaults. * load from file * check if modified on exit * write to new file / default file diff --git a/gramscii.c b/gramscii.c index f5a3425..2913fca 100644 --- a/gramscii.c +++ b/gramscii.c @@ -109,6 +109,8 @@ char* state_str(){ return "arr"; case DEL: return "del"; + case VIS: + return "vis"; default: return "ERR"; } -- cgit v1.2.3