aboutsummaryrefslogtreecommitdiff
path: root/src/engine/graphics/scene.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-03-03 19:41:23 +0100
committerHampusM <hampus@hampusmat.com>2022-06-13 17:56:54 +0200
commit93123e97251fc791c1cac193d675cce9a1ac2de6 (patch)
tree4486453695d6f715e767bd91bcee89c92f54f7ba /src/engine/graphics/scene.cpp
parent70b21e90d7be4d892b7d17440d64630e7ee1a575 (diff)
feat: add moving cursor
Diffstat (limited to 'src/engine/graphics/scene.cpp')
-rw-r--r--src/engine/graphics/scene.cpp26
1 files changed, 3 insertions, 23 deletions
diff --git a/src/engine/graphics/scene.cpp b/src/engine/graphics/scene.cpp
index 3f63807..a8e7b88 100644
--- a/src/engine/graphics/scene.cpp
+++ b/src/engine/graphics/scene.cpp
@@ -1,10 +1,12 @@
#include "scene.hpp"
+#include "engine/escape.hpp"
+
#include <fmt/core.h>
#include <iostream>
Scene::Scene(IMatrixFactory<std::string_view> matrix_factory)
- : _is_shown(false), _matrix_factory(std::move(matrix_factory))
+ : _is_shown(false), _matrix_factory(matrix_factory)
{
}
@@ -33,25 +35,3 @@ void Scene::leave()
_is_shown = false;
}
-
-/*
-void do_in_statusbar(const std::function<void()> &routine)
-{
- const auto prev_pos = Cursor::where();
-
- const auto window_size = Window::size();
-
- Cursor::hide();
-
- Cursor::move_to(Vector2({1, window_size.height()}));
-
- std::cout << fmt::format(EscapeSequences::ERASE_LINE, fmt::arg("esc", ESC));
- std::cout.flush();
-
- routine();
-
- Cursor::move_to(prev_pos);
-
- Cursor::show();
-}
-*/