Commit c170516c authored by Roman Alifanov's avatar Roman Alifanov

command_runner: clearing textview first

parent a2cd273c
...@@ -18,6 +18,10 @@ class CommandRunner: ...@@ -18,6 +18,10 @@ class CommandRunner:
GLib.idle_add(self.dialog.logdialog_textview.scroll_to_mark, GLib.idle_add(self.dialog.logdialog_textview.scroll_to_mark,
self.textbuffer.get_insert(), 0, False, 0.0, 1.0) self.textbuffer.get_insert(), 0, False, 0.0, 1.0)
def clear_textview(self):
self.textbuffer.set_text("")
self.dialog.logdialog_textview.scroll_to_mark(self.textbuffer.get_insert(), 0, False, 0.0, 1.0)
def remove_ansi_escape_sequences(self, text): def remove_ansi_escape_sequences(self, text):
result = [] result = []
in_escape = False in_escape = False
...@@ -80,6 +84,7 @@ class CommandRunner: ...@@ -80,6 +84,7 @@ class CommandRunner:
break break
def process_runner(self, command): def process_runner(self, command):
self.clear_textview()
process = None process = None
sel = None sel = None
master_fd, slave_fd = pty.openpty() master_fd, slave_fd = pty.openpty()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment