Set scrollback_lines with -1 to make terminal can scrollback infinite.