Improve DECSTR behavior

This patch Improves DECSTR(soft reset) behavior.

- Make the cursor visible.
- Reset insert mode/keypad mode/cursor mode.
- Reset character set state.
- Reset the saved attributes with sc.