Erase only on tty
This commit is contained in:
parent
e62a60927e
commit
c2428b8bf6
@ -171,8 +171,8 @@ End
|
||||
end
|
||||
|
||||
def erase(e = true)
|
||||
if e and @columns > 0 and !@verbose
|
||||
"\r#{" "*@columns}\r"
|
||||
if e and @columns > 0 and @tty and !@verbose
|
||||
"\e[1K\r"
|
||||
else
|
||||
""
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user