home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1992 March / Source_Code_CD-ROM_Walnut_Creek_March_1992.iso / usenet / altsrcs / 1 / 1621 / tty.h < prev   
C/C++ Source or Header  |  1990-12-28  |  1KB  |  42 lines

  1. /* Copyright 1990, Daniel J. Bernstein. All rights reserved. */
  2.  
  3. #ifndef PTY_TTY_H
  4. #define PTY_TTY_H
  5.  
  6. #include "config.h"
  7. #include <sgtty.h>
  8.  
  9. struct ttymodes
  10.  {
  11.   int di;
  12.   struct sgttyb sg;
  13.   struct tchars tc;
  14.   long lb;
  15.   struct ltchars lt;
  16. #ifdef TTY_WINDOWS
  17.   struct winsize ws;
  18. #endif
  19. #ifdef TTY_AUXCHARS
  20.   struct auxchars au;
  21. #endif
  22.  }
  23. ;
  24.  
  25. extern int tty_getctrl();
  26. extern tty_setexcl(/* int fd */);
  27. extern tty_setpgrp(/* int fd; int pg; */);
  28. extern tty_dissoc(/* int fd */);
  29. extern tty_getmodes(/* int fd; s ttymodes *tmo */);
  30. extern tty_setmodes(/* int fd; s ttymodes *tmo */);
  31. extern tty_modifymodes(/* int fd; s ttymodes *tmonew; s ttymodes *tmoold */);
  32.  
  33. /* The following don't do any ioctls; they just mangle internal ttymodes. */
  34.  
  35. extern void tty_copymodes(/* s ttymodes *tmonew; s ttymodes *tmoold */);
  36. extern void tty_copywin(/* s ttymodes *tmonew; s ttymodes *tmoold */);
  37. extern void tty_charmode(/* s ttymodes *tmo */);
  38. extern void tty_mungemodes(/* s ttymodes *tmo;cbreak;new;echo;crmod;raw;crt */);
  39. extern void tty_initmodes(/* s ttymodes *tmo;cbreak;new;echo;crmod;raw;crt */);
  40.  
  41. #endif
  42.