Changed console to write to both the buffer and the screen if currently active

This commit is contained in:
iDunnoDev
2022-12-12 16:40:38 +00:00
committed by iDunnoDev
parent 05c1a1fe28
commit 5b21654261
4 changed files with 107 additions and 65 deletions

View File

@ -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;