Ensure the clearLine method works properly

This commit is contained in:
Andrew Naylor 2015-09-21 00:47:16 +01:00
parent 3a06d72a78
commit 3e8f48ad32

View file

@ -89,7 +89,7 @@ func clearLine() {
guard isatty(fileno(stdout)) != 0 else {
return
}
print("\(csi)2K\(csi)0G")
print("\(csi)2K\(csi)0G", terminator: "")
fflush(stdout)
}