X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=src%2Fviewer.c;h=a09fd1f2ea53255484ea702ef5056ac3d6c06c01;hb=549e0be5ae0c62e5e712fad0871e8f0412893356;hp=162477f891cadd9288dadfa68e8586c30610a906;hpb=5ee2b6a0c18b0772a1124938f4ccff1123a56b89;p=smdp.git diff --git a/src/viewer.c b/src/viewer.c index 162477f..a09fd1f 100644 --- a/src/viewer.c +++ b/src/viewer.c @@ -297,6 +297,7 @@ int ncurses_display(deck_t *deck, int notrans, int nofade, int invert) { // show previous slide case KEY_UP: case KEY_LEFT: + case KEY_PPAGE: case 8: // BACKSPACE (ascii) case 127: // BACKSPACE (xterm) case 263: // BACKSPACE (getty) @@ -313,6 +314,7 @@ int ncurses_display(deck_t *deck, int notrans, int nofade, int invert) { // show next slide case KEY_DOWN: case KEY_RIGHT: + case KEY_NPAGE: case '\n': // ENTER case ' ': // SPACE case 'j': @@ -401,7 +403,7 @@ void add_line(WINDOW *window, int y, int x, line_t *line, int max_cols, int colo char *c; // char pointer for iteration char *special = "\\*_`"; // list of interpreted chars cstack_t *stack = cstack_init(); - + if(line->text->text) { int offset = 0; // text offset