summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatolaZ <katolaz@freaknet.org>2019-07-20 18:33:42 +0100
committerKatolaZ <katolaz@freaknet.org>2019-07-20 18:33:42 +0100
commit8d84f5933289b91877b2c0a611da63140d8874b2 (patch)
treeb88815720ef17b5866a348d2c5dc89b527529a21
parent130977d60200ae44ca6e27474a3127d1e8cd34b7 (diff)
add visual in status bar
-rw-r--r--TODO4
-rw-r--r--gramscii.c2
2 files changed, 5 insertions, 1 deletions
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";
}