Fixed bug in non-windowed mode.

scroll-bar-mode and tool-bar-mode are not available in terminal.