ctrl-C signal processing now works. ctrlD and ctrlC combinations no longer segfault. history works. TODO: parsing commands, execing the commands