Fixed styles.
Don't restore cursor on change mode.
Fixed origin mode change.
Characters test.