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

View File

@ -98,7 +98,7 @@ int sys_greeting(void)
cprintf("Using Console: %d\n", getcurrentconsoleindex());
cprintf("Current PID: %d\n", myproc()->pid);
cprintf("Current Parent PID: %d\n", myproc()->parent->pid);
//cprintf("Process Console: %d\n", myproc()->consoleptr->consoleindex);
cprintf("Process Console: %d\n", getconsoleindex(myproc()->consoleptr));
return 0;
}
@ -154,6 +154,6 @@ int sys_screen(void)
int sys_cls(void)
{
clearscreen();
clearscreen(0);
return 0;
}