Added draw menu, vars and additional functions needed for it

Added some functionality to the procdump to show the current console and parent pids of processes for debugging
Added var to clearconsole that enables the internal lock if one wasnt prelocked before hand
Fixed issue where race conditions would stop the title from drawing by drawing it to the buffer too
Fixed issue where the maze function was spamming the conswrite and cons lock by changing it to send an entire line instead of 1 char at a time
This commit is contained in:
iDunnoDev
2022-12-23 00:48:57 +00:00
committed by iDunnoDev
parent 662e3795a7
commit c23d669858
5 changed files with 366 additions and 84 deletions

5
defs.h
View File

@ -32,13 +32,14 @@ int closeconsole(void);
// Function to get the current inuse console index
int getcurrentconsoleindex(void);
// Function to clear the current screen buffer
void clearscreen(void);
void clearscreen(int);
// 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();
//void drawtitle();
int getconsoleindex(struct vconsole* consolein);
// exec.c
int exec(char*, char**);