Added the drawtitle function to console

Added ability to pick a bg preset for the title bar
Added counting program
Added function to set the current consoles title name
Removed some of the debug code
This commit is contained in:
iDunnoDev
2022-12-16 15:23:38 +00:00
committed by iDunnoDev
parent 924d90c066
commit c65c58a954
11 changed files with 284 additions and 52 deletions

13
defs.h
View File

@ -22,12 +22,23 @@ void cprintf(char*, ...);
void consoleintr(int (*)(void));
int consoleget(void);
void panic(char*) __attribute__((noreturn));
struct vconsole* newconsole(void);
// Function to return a new console ptr for a process to use
struct vconsole* newconsole(int);
// Function to swithc to the provided console using the ptr
int switchtoconsole(struct vconsole*);
// Function to close and reset the current proc console
int closeconsole(void);
// Function to get the current inuse console index
int getcurrentconsoleindex(void);
// Function to clear the current screen buffer
void clearscreen(void);
// Function to get the base consoles ptr
struct vconsole* getbaseconsoleptr(void);
// Function to provide cprintf functionality but saved into a char array
void sprintf(char*, char*, ...);
void setconsoleproctitle(struct vconsole* consoleptr, char* newtitle);
void drawtitle();
// exec.c
int exec(char*, char**);