From b1c91774604464911cff0252a67c79fa5a7c9e4b Mon Sep 17 00:00:00 2001 From: "(Tim) Efthimis Kritikos" Date: Tue, 23 Jan 2024 17:38:44 +0000 Subject: [PATCH] GUI: Improved tabs window --- gui.c | 62 +++++++++++++++++++++++++++++++++++++++++++++++++++---- main.c | 4 ---- simdata.h | 6 ++++++ 3 files changed, 64 insertions(+), 8 deletions(-) diff --git a/gui.c b/gui.c index 906e02f..835f0ec 100644 --- a/gui.c +++ b/gui.c @@ -18,6 +18,8 @@ along with this program. If not, see . */ #include +#include +#include "simdata.h" int terminal_width; int terminal_height; @@ -43,22 +45,74 @@ int gui_ncurses_refresh(){ return 0; } +char *tab_name[]={"Overview","Memory","Test"}; + +unsigned int CURRENT_TAB=0; + +enum CPU_STATE_t CPU_STATE=STOPPED; + +void update_tabs(){ + wattron(tabs,COLOR_PAIR(2)); + for(int i=0;i