aboutsummaryrefslogtreecommitdiff
path: root/src/engine/user/cursor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/engine/user/cursor.cpp')
-rw-r--r--src/engine/user/cursor.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/engine/user/cursor.cpp b/src/engine/user/cursor.cpp
index b38cee0..e3ad56c 100644
--- a/src/engine/user/cursor.cpp
+++ b/src/engine/user/cursor.cpp
@@ -53,19 +53,6 @@ auto CursorController::where() const noexcept -> Vector2
return _position;
}
-void CursorController::ensure_position() noexcept
-{
- fmt::print(REQUEST_CURSOR_POSITION, fmt::arg("esc", ESC));
- std::cout.flush();
-
- Vector2Options vector2_options = {};
-
- // NOLINTNEXTLINE(cppcoreguidelines-pro-type-vararg)
- scanf("\033[%u;%uR", &vector2_options.y, &vector2_options.x);
-
- _position = _invert_position_y(Vector2(vector2_options));
-}
-
void CursorController::update_position(const Vector2 &position) noexcept
{
_position = position;