[fix api] Properly set cursor to next line after `Stack.prototype.draw()`. Added `Stack.prototype.clear()`.