mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-06-01 16:44:55 +02:00
* fixed return value of IsATTY()
git-svn-id: trunk@1308 -
This commit is contained in:
parent
affb69dd7f
commit
b766a42e23
@ -121,7 +121,7 @@ Function IsATTY (Handle:cint):cint;
|
||||
var
|
||||
t : Termios;
|
||||
begin
|
||||
IsAtty:=TCGetAttr(Handle,t);
|
||||
IsAtty:=ord(TCGetAttr(Handle,t) <> -1);
|
||||
end;
|
||||
|
||||
|
||||
|
@ -117,7 +117,7 @@ Function IsATTY (Handle:cint):cint;
|
||||
var
|
||||
t : Termios;
|
||||
begin
|
||||
IsAtty:=TCGetAttr(Handle,t);
|
||||
IsAtty:=ord(TCGetAttr(Handle,t) <> -1);
|
||||
end;
|
||||
|
||||
|
||||
|
@ -117,7 +117,7 @@ Function IsATTY (Handle:cint):cint;
|
||||
var
|
||||
t : Termios;
|
||||
begin
|
||||
IsAtty:=TCGetAttr(Handle,t);
|
||||
IsAtty:=ord(TCGetAttr(Handle,t) <> -1);
|
||||
end;
|
||||
|
||||
|
||||
|
@ -117,7 +117,7 @@ Function IsATTY (Handle:cint):cint;
|
||||
var
|
||||
t : Termios;
|
||||
begin
|
||||
IsAtty:=TCGetAttr(Handle,t);
|
||||
IsAtty:=ord(TCGetAttr(Handle,t) <> -1);
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user