this commit adds the basic functionality of curses. The output however doesn't get displayed in the window yet.