Generally makes calling code nicer.
…commands From Pull request #22, "Refactored command handling code." Conflicts: input.c
…atter what tab you were on.
Also, unrecognised control codes get displayed as octal escapes rather than being sent, raw, to the terminal (the latter allowed ANSI codes to do funky things, which was not good).