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:
11
sysproc.c
11
sysproc.c
@ -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);
|
||||
|
Reference in New Issue
Block a user