aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/main.c b/main.c
index f95a465..026b4b5 100644
--- a/main.c
+++ b/main.c
@@ -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);