summaryrefslogtreecommitdiff
path: root/src/ui.h
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2025-08-18 23:27:21 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2025-08-19 21:43:07 +0200
commitd819be1c8161741e1e736521d12c06749af87527 (patch)
treed9d39e3469896b21be9ffe4b20a9d4c3d2eed553 /src/ui.h
parentc24320b65ab02061223a7460a01360bd997f9e18 (diff)
src: minor rearrangement:HEADmaster
* Move ui -> tui * Add intermediate ui.h file for future implementation of different ui engines. * Add include guards * tui: use object oriented approach
Diffstat (limited to 'src/ui.h')
-rw-r--r--src/ui.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/ui.h b/src/ui.h
index 3e2bd00..191cc8f 100644
--- a/src/ui.h
+++ b/src/ui.h
@@ -14,7 +14,15 @@
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-void ui_cursor_move (int x, int y);
-void ui_alternate_buffer_enable (void);
-void ui_alternate_buffer_disable (void);
+#ifndef UI_H
+#define UI_H
+
+/* TODO: Select this with IFDEFS */
+#include "tui.h"
+#define ui tui
+#define ui_create tui_create
+#define ui_destroy tui_destroy
+#define ui_loop tui_loop
+
+#endif /* UI_H */