Only try to hide the scroll bar when in a graphical window, if in terminal the scroll-bar-mode does not apply.