Instance Method
popEphemeral()
Pops a previous ephemeral console state. All text outputted to the console immidiately after the last call to
pushEphemeral() will be cleared.func popEphemeral()
Discussion
This method can be called once for each call to pushEphemeral().
console.print("a")
console.pushEphemeral()
console.print("b")
console.print("c")
console.pushEphemeral()
console.print("d")
console.print("e")
console.print("f")
console.popEphemeral() // removes "d", "e", and "f" lines
console.print("g")
console.popEphemeral() // removes "b", "c", and "g" lines
// just "a" has been printed now