Short variable declaration and initialization
Fix setting of stty state
Reset stty state on SIGINT