diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 12 |
1 files changed, 10 insertions, 2 deletions
@@ -11,14 +11,15 @@ unsigned int count_lines(FILE* file); int load_or_save_db(sqlite3 *pInMemory, const char *zFilename, int isSave); int main() { - Data *data = new_data(":memory:"); bootstrap(data); setlocale(LC_ALL, ""); - initscr(); noecho(); cbreak(); + nonl(); + keypad(stdscr, TRUE); + initscr(); FILE *f = fopen("dict.txt", "r"); unsigned int lines = count_lines(f); @@ -43,6 +44,13 @@ int main() { clear(); refresh(); + + TEXT_BOX *box = new_text_box(stdscr, 10); + get_char(box); + + clear(); + refresh(); + endwin(); free_data(data); |