mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-15 14:19:28 +02:00
* revert isatty patch
This commit is contained in:
parent
077197e5c4
commit
b3b9b245e1
@ -774,7 +774,7 @@ begin
|
||||
Assign(Debuggeefile,DebuggeeTTY);
|
||||
system.Reset(Debuggeefile);
|
||||
ResetOK:=IOResult=0;
|
||||
If ResetOK and IsATTY(textrec(Debuggeefile).handle) then
|
||||
If ResetOK and {$ifdef ver1_0}IsATTY(textrec(Debuggeefile).handle){$else}(IsATTY(textrec(Debuggeefile).handle)<>-1){$endif} then
|
||||
begin
|
||||
Command('tty '+DebuggeeTTY);
|
||||
TTYUsed:=true;
|
||||
@ -3603,8 +3603,8 @@ end.
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.50 2004-07-09 20:23:31 daniel
|
||||
* Fix compilation
|
||||
Revision 1.51 2004-07-09 23:17:25 peter
|
||||
* revert isatty patch
|
||||
|
||||
Revision 1.49 2004/02/20 21:46:06 peter
|
||||
* fix compile with 1.0.x
|
||||
|
@ -774,7 +774,7 @@ begin
|
||||
TTYFd:=-1;
|
||||
IsXterm:=getenv('TERM')='xterm';
|
||||
ThisTTY:=TTYName(stdinputhandle);
|
||||
if Not IsXterm and IsATTY(stdinputhandle) then
|
||||
if Not IsXterm and {$ifdef ver1_0}IsATTY(stdinputhandle){$else}(IsATTY(stdinputhandle)<>-1){$endif} then
|
||||
begin
|
||||
Console:=TTyNetwork; {Default: Network or other vtxxx tty}
|
||||
if (Copy(ThisTTY, 1, 8) = '/dev/tty') and (ThisTTY[9]<>'p') Then
|
||||
@ -1449,8 +1449,8 @@ end;
|
||||
end.
|
||||
{
|
||||
$Log$
|
||||
Revision 1.33 2004-07-09 20:23:31 daniel
|
||||
* Fix compilation
|
||||
Revision 1.34 2004-07-09 23:17:26 peter
|
||||
* revert isatty patch
|
||||
|
||||
Revision 1.32 2004/02/20 21:46:06 peter
|
||||
* fix compile with 1.0.x
|
||||
|
@ -1830,7 +1830,7 @@ function physicalconsole(fd:longint) : boolean;
|
||||
var name:string;
|
||||
|
||||
begin
|
||||
if isatty(fd) then
|
||||
if (isatty(fd)<>-1) then
|
||||
begin
|
||||
name:=ttyname(fd);
|
||||
if Copy(name,1,8)<>'/dev/tty' then
|
||||
@ -3476,8 +3476,8 @@ end.
|
||||
|
||||
{
|
||||
$Log$
|
||||
Revision 1.9 2004-07-09 20:21:20 daniel
|
||||
* Fix compilation for now
|
||||
Revision 1.10 2004-07-09 23:18:16 peter
|
||||
* revert isatty patch
|
||||
|
||||
Revision 1.8 2004/01/03 12:18:29 marco
|
||||
* a lot of copyright notices and CVS logs added and fixed
|
||||
|
Loading…
Reference in New Issue
Block a user