Browse Source

* reverted more changes regarding isatty

marco 21 years ago
parent
commit
581c8a68e2
1 changed files with 7 additions and 4 deletions
  1. 7 4
      rtl/freebsd/termiosproc.inc

+ 7 - 4
rtl/freebsd/termiosproc.inc

@@ -111,18 +111,18 @@ begin
   TCFlush:=fpIOCtl(fd,TIOCFLUSH,pointer(qsel));
 end;
 
-Function IsATTY (Handle:cint):boolean;
+Function IsATTY (Handle:cint):cint;
 {
   Check if the filehandle described by 'handle' is a TTY (Terminal)
 }
 var
   t : Termios;
 begin
- IsAtty:=TCGetAttr(Handle,t)<>-1;
+ IsAtty:=TCGetAttr(Handle,t);
 end;
 
 
-Function IsATTY(var f: text):boolean;
+Function IsATTY(var f: text):cint;
 {
   Idem as previous, only now for text variables.
 }
@@ -132,7 +132,10 @@ end;
 
 {
    $Log$
-   Revision 1.4  2004-07-08 13:23:21  daniel
+   Revision 1.5  2004-07-16 22:14:34  marco
+    * reverted more changes regarding isatty
+
+   Revision 1.4  2004/07/08 13:23:21  daniel
      * gpm now uses a Pascal translation of libgpm instead of linking against
        it.
      * isatty result type changed into boolean