From db879929161a7714fdd779fcd2e0d9a114ad40cf Mon Sep 17 00:00:00 2001 From: uvok Date: Sun, 11 Jan 2026 14:40:34 +0100 Subject: Getting started with windows --- nandgame/cpp/simpc_ui.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nandgame/cpp/simpc_ui.cpp b/nandgame/cpp/simpc_ui.cpp index bf5b94c..1ee22f0 100644 --- a/nandgame/cpp/simpc_ui.cpp +++ b/nandgame/cpp/simpc_ui.cpp @@ -93,6 +93,7 @@ void simpc_ui_write(const std::unique_ptr &topp, uint64_t &i, PRINT_ME(ypos_base + i, NCUR_X, "%04X %s%04X %-30s", current_ROM_address, prefix, program_op_code, disas_code.c_str()); + // mvchgat in bold } if (current_RAM_address < 0) { PRINT_ME( @@ -119,7 +120,7 @@ void simpc_ui_write(const std::unique_ptr &topp, uint64_t &i, // topp->computer->CPU->my_alu->int_op_y); PRINT_ME(getmaxy(stdscr) - 1, 1, - "q - Quit; p - (Un)pause; s - step (while paused)"); + " q - Quit; p - (Un)pause; s - step (while paused) "); PRINT_NEXT(); @@ -145,6 +146,9 @@ void simpc_ui_finish_message(const std::unique_ptr &contextp, attroff(A_BOLD); } +#define SIMPLE_BORDER(w, lr, tb, c) \ + { wborder(w, lr, lr, tb, tb, c, c, c, c); } + void simpc_ui_init(void) { #if NCUR initscr(); @@ -152,6 +156,8 @@ void simpc_ui_init(void) { nodelay(stdscr, TRUE); noecho(); cbreak(); + + SIMPLE_BORDER(stdscr, '|', '-', '+'); #endif } -- cgit v1.2.3