pay more attention to where we display the cursor

It's still just in app control; I'm resisting the urge to introduce
"smarts".
This commit is contained in:
Kartik K. Agaram 2021-12-18 09:32:37 -08:00
parent 9fe884c03a
commit d818efb7c8
3 changed files with 4 additions and 1 deletions

View File

@ -31,6 +31,7 @@
>window = curses.stdscr()
>-- animation-based app
>window:nodelay(true)
>curses.curs_set(0)
>lines, cols = window:getmaxyx()
- __teliva_timestamp: original
grid_char:

View File

@ -1042,7 +1042,8 @@ void developer_mode (lua_State *L) {
init_pair(COLOR_PAIR_LUA_CONSTANT, COLOR_LUA_CONSTANT, COLOR_BACKGROUND);
init_pair(COLOR_PAIR_MATCH, COLOR_MATCH_FOREGROUND, COLOR_MATCH_BACKGROUND);
init_pair(COLOR_PAIR_ERROR, COLOR_ERROR_FOREGROUND, COLOR_ERROR_BACKGROUND);
nodelay(stdscr, 0); /* make getch() block */
nodelay(stdscr, 0); /* always make getch() block in developer mode */
curs_set(1); /* always display cursor in developer mode */
int switch_to_big_picture_view = 1;
if (editor_view_in_progress(L))
switch_to_big_picture_view = restore_editor_view(L);

View File

@ -147,6 +147,7 @@
- __teliva_timestamp: original
window:
>window = curses.stdscr()
>curses.curs_set(0) -- we'll simulate our own cursor
- __teliva_timestamp: original
render:
>function render(window)