X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=tmp.c;h=a806ff446234c39c9bd610167e29896ca96e4c5e;hb=d292db7e4bce9bbe8f379757d07a902502dcfb22;hp=7e8589e20e79d9a659efe3af9170aace7c51b329;hpb=3b1d8241131284a13ca059f399d7113075daf351;p=smdp.git diff --git a/tmp.c b/tmp.c index 7e8589e..a806ff4 100644 --- a/tmp.c +++ b/tmp.c @@ -5,6 +5,7 @@ #include #include "include/parser.h" +#include "include/viewer.h" void usage() { fprintf(stderr, "Usage: tmp [OPTION]... [FILE]\n"); @@ -58,12 +59,18 @@ int main(int argc, char *argv[]) { input = stdin; } - // load document object from input - document_t *doc; - doc = markdown_load(input); + // load deck object from input + deck_t *deck; + deck = markdown_load(input); + + //TODO close file if(debug > 0) { - markdown_debug(doc, debug); + markdown_debug(deck, debug); } + + ncurses_display(deck, 0, 0); + + return(EXIT_SUCCESS); }