diff options
author | HampusM <hampus@hampusmat.com> | 2022-06-29 20:17:23 +0200 |
---|---|---|
committer | HampusM <hampus@hampusmat.com> | 2022-06-29 20:17:23 +0200 |
commit | d02d46d27982a8e351736067ab9787f87052b989 (patch) | |
tree | 540ddb694585ea4b6662101e358a94c81c509ed3 /src/engine/graphics/scene.hpp | |
parent | d2a76bd8cfd883070259bf572a9f723a37c0d96e (diff) |
refactor: add termios abstraction
Diffstat (limited to 'src/engine/graphics/scene.hpp')
-rw-r--r-- | src/engine/graphics/scene.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/engine/graphics/scene.hpp b/src/engine/graphics/scene.hpp index 5b52027..da3d990 100644 --- a/src/engine/graphics/scene.hpp +++ b/src/engine/graphics/scene.hpp @@ -3,13 +3,13 @@ #include <fmt/core.h> #include <memory> #include <string_view> -#include <termios.h> #include <utility> #include <vector> #include <yacppdic/auto_wirable.hpp> #include "engine/data/bounds.hpp" #include "engine/data/vector2.hpp" +#include "engine/io/terminal.hpp" #include "interfaces/component.hpp" #include "interfaces/matrix.hpp" #include "interfaces/scene.hpp" @@ -47,7 +47,7 @@ private: std::shared_ptr<IMatrix<MatrixElement>> _matrix; bool _is_shown; - std::shared_ptr<termios> _original_termios = nullptr; + TerminalState _original_terminal_state{}; std::vector<std::pair<std::shared_ptr<IComponent>, Vector2>> _components; }; |