Make the terminal do the right filtering when opening.
Make the open save state more robust.