12 main_window
= newwin(LINES
- 1, COLS
, 0, 0);
13 wrefresh(main_window
);
14 minibuf
= newwin(1, COLS
, LINES
- 1, 0);
19 void minibuf_echo (char* string
)
22 wprintw(minibuf
, string
);
23 /* wrefresh(minibuf); */
29 /* wrefresh(minibuf); */
32 void display_render (buffer_t contents
, int state
)
36 wprintw(main_window
, buffer_to_string(contents
));
37 wprintw(minibuf
, "%d:%d ",
38 contents
.cursor
.y
, contents
.cursor
.x
);
42 wprintw(minibuf
, "<N>\n");
45 wprintw(minibuf
, "<I>\n");
48 /* wmove(main_window, contents.cursor.y, contents.cursor.x); */
49 move(contents
.cursor
.y
, contents
.cursor
.x
);
50 wrefresh(main_window
);
55 void cursor_move_handler (buffer_t
* current
, int key
)
59 case 'k': buffer_up(current
);
61 case 'j': buffer_down(current
);
63 case 'h': buffer_left(current
);
65 case 'l': buffer_right(current
);