Replaced raw() with cbreak() to use C-c for quit