termiosh.inc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 2001 by Free Pascal development team
  5. Termios basic prototypes
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. ***********************************************************************}
  12. Function TCGetAttr (fd:cint;var tios:TermIOS):cint;
  13. Function TCSetAttr (fd:cint;OptAct:cint;const tios:TermIOS):cint;
  14. Procedure CFSetISpeed (var tios:TermIOS;speed:Cardinal);
  15. Procedure CFSetOSpeed (var tios:TermIOS;speed:Cardinal);
  16. Procedure CFMakeRaw (var tios:TermIOS);
  17. Function TCSendBreak (fd,duration:cint):cint;
  18. Function TCSetPGrp (fd,id:cint) :cint;
  19. Function TCGetPGrp (fd:cint;var id:cint):cint;
  20. Function TCFlush (fd,qsel:cint):cint;
  21. Function TCDrain (fd:cint) :cint;
  22. Function TCFlow (fd,act:cint) :cint;
  23. Function IsATTY (Handle:cint) :cint;
  24. Function IsATTY (var f:text) :cint;
  25. function TTYname (Handle:cint):string;
  26. function TTYname (var F:Text) :string;
  27. {
  28. $Log$
  29. Revision 1.3 2004-07-09 19:03:35 peter
  30. * isatty return cint again
  31. Revision 1.1 2003/11/19 17:13:00 marco
  32. * new termio units
  33. }