Changed console to write to both the buffer and the screen if currently active
This commit is contained in:
@ -131,10 +131,9 @@ int sys_screen(void)
|
||||
int result = 0;
|
||||
int consoleindex = -1;
|
||||
if ((consoleindex = newconsole()) != 0)
|
||||
{
|
||||
curproc->consoleIndex = consoleindex;
|
||||
switchtoconsole(consoleindex);
|
||||
wakeup(myproc()->chan);
|
||||
{
|
||||
curproc->consoleIndex = consoleindex;
|
||||
switchtoconsole(consoleindex);
|
||||
result = 1;
|
||||
}
|
||||
return result;
|
||||
|
Reference in New Issue
Block a user