Commit 32e44ba6 authored by Matthieu Gonnet's avatar Matthieu Gonnet Committed by Seblu
Browse files

Fix clear function in Printer

Clear function used to check if sys.stdout was a tty and didn't allow you to use clear in an other
fd. This check has been deleted in this patch and you can now use clear in a buffer
parent 6c7b043f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -172,7 +172,7 @@ class Printer(object):

    def clear(self):
        '''Clear the terminal'''
        if self.readline is None or not sys.stdout.isatty():
        if self.readline is None:
            return
        self.out("\033[H\033[2J", nl="")