Screen is not redrawn after a shell if it is inactive.

This commit is contained in:
mysticbbs 2012-07-14 15:03:58 -04:00
parent b5f073ed25
commit 51875b54df
1 changed files with 4 additions and 7 deletions

View File

@ -169,10 +169,6 @@ Begin
End;
Function ShellDOS (ExecPath: String; Command: String) : LongInt;
{$IFNDEF UNIX}
Var
Image : TConsoleImageRec;
{$ENDIF}
Begin
{$IFDEF WINDOWS}
ExecInheritsHandles := True;
@ -186,7 +182,6 @@ Begin
End;
{$IFNDEF UNIX}
Screen.GetScreenImage(1, 1, 80, 25, Image);
Screen.SetWindow (1, 1, 80, 25, False);
Screen.TextAttr := 7;
Screen.ClearScreen;
@ -228,8 +223,10 @@ Begin
Reset (Session.PromptFile);
{$IFNDEF UNIX}
Screen.PutScreenImage(Image);
UpdateStatusLine(StatusPtr, '');
If Screen.Active Then
Session.io.LocalScreenEnable
Else
Session.io.LocalScreenDisable;
{$ENDIF}
Session.TimeOut := TimerSeconds;