Added ability to set a title for the console

Added seed value to the maze generator
Added a title lock to the console
Added a vconsole lock that locks on any virtual console change
Changed some of the locks used to free up
This commit is contained in:
iDunnoDev
2022-12-18 11:42:58 +00:00
committed by iDunnoDev
parent c65c58a954
commit 662e3795a7
7 changed files with 175 additions and 92 deletions

View File

@ -131,12 +131,19 @@ int sys_screen(void)
int result = 0;
struct vconsole* consoleptr = 0;
int bgcol;
if (argint(0, &bgcol) < 0)
char *title;
if (argint(1, &bgcol) < 0)
{
return -1;
}
if ((consoleptr = newconsole(bgcol)) != 0)
if (argstr(0, &title) < 0)
{
return -1;
}
if ((consoleptr = newconsole(title, bgcol)) != 0)
{
curproc->consoleptr = consoleptr;
switchtoconsole(consoleptr);