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