Member TtyState.savedState set in TtyInit() but never subsequently used.
This can go away...
... which means struct TtyState can be replaced with struct FileState.