X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=tmp.c;h=a806ff446234c39c9bd610167e29896ca96e4c5e;hb=f92a7609f7b4a6c72a892b16d371528213eca283;hp=fef4fef2dd932541e5fbbd69f1b580d68be996f7;hpb=9dec35aae55c1d122523458b0c92ec1eea16fbdc;p=smdp.git diff --git a/tmp.c b/tmp.c index fef4fef..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"); @@ -59,13 +60,17 @@ int main(int argc, char *argv[]) { } // load deck object from input - deck_t *doc; - doc = markdown_load(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); }