Commits

Anonymous committed 67ffa22

Add "scrollback_lines" option

Comments (0)

Files changed (2)

     command = None
     term_name = 'xterm'
     working_directory = ''
+    scrollback_lines = 100
 
     def __init__(self, command=None, config=None):
         gtk.HBox.__init__(self)
 
         self._terminal.set_cursor_blinks(self.cursor_blinks)
 
+        self._terminal.set_scrollback_lines(self.scrollback_lines)
+
         self._terminal.set_size_request(50, 50)
 
         self._terminal.connect('button-press-event', self.do_button_press)
 
 # Terminal's working directory
 working_directory = '~/'
+
+# Length of the scrollback buffer
+scrollback_lines = 1000