#pragma once #include "definitions.h" #include "pch.h" namespace bed::internal::ui { struct CommandIO { std::string cmd; uint16_t cursor; std::string prompt; uint16_t start; uint16_t height; uint16_t term_height; uint16_t term_width; BEd &bed; CommandIO(BEd &); std::pair run(); std::pair run_pipe(); std::pair run_terminal(); void redraw(); }; } // namespace bed::internal::ui