mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 11:09:42 +02:00
* Make dosshell work under Unix
git-svn-id: trunk@3452 -
This commit is contained in:
parent
ca06efcd00
commit
2cbd7fddcd
14
fv/app.pas
14
fv/app.pas
@ -1022,16 +1022,30 @@ END;
|
||||
{ DosShell -> Platforms DOS/DPMI/WIN/NT/OS2 - Updated 25Oct99 LdB }
|
||||
{---------------------------------------------------------------------------}
|
||||
PROCEDURE TApplication.DosShell;
|
||||
|
||||
{$ifdef unix}
|
||||
var s:string;
|
||||
{$endif}
|
||||
|
||||
BEGIN { Compatability only }
|
||||
DoneSysError;
|
||||
DoneEvents;
|
||||
drivers.donevideo;
|
||||
drivers.donekeyboard;
|
||||
{ DoneDosMem;}
|
||||
WriteShellMsg;
|
||||
{$ifdef Unix}
|
||||
s:=getenv('SHELL');
|
||||
if s='' then
|
||||
s:='/bin/sh';
|
||||
exec(s,'');
|
||||
{$else}
|
||||
SwapVectors;
|
||||
Exec(GetEnv('COMSPEC'), '');
|
||||
SwapVectors;
|
||||
{$endif}
|
||||
{ InitDosMem;}
|
||||
drivers.initkeyboard;
|
||||
drivers.initvideo;
|
||||
InitEvents;
|
||||
InitSysError;
|
||||
|
Loading…
Reference in New Issue
Block a user