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:
10
sysproc.c
10
sysproc.c
@ -130,9 +130,15 @@ int sys_screen(void)
|
||||
struct proc *curproc = myproc();
|
||||
int result = 0;
|
||||
struct vconsole* consoleptr = 0;
|
||||
if ((consoleptr = newconsole()) != 0)
|
||||
int bgcol;
|
||||
if (argint(0, &bgcol) < 0)
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
||||
if ((consoleptr = newconsole(bgcol)) != 0)
|
||||
{
|
||||
curproc->consoleptr = consoleptr;
|
||||
curproc->consoleptr = consoleptr;
|
||||
switchtoconsole(consoleptr);
|
||||
result = 1;
|
||||
}
|
||||
|
Reference in New Issue
Block a user