home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume25 / pty4 / part02 / ptytty.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-02-18  |  915 b   |  54 lines

  1. #ifndef PTY_TTY_H
  2. #define PTY_TTY_H
  3.  
  4. #include "config/ttyopts.h"
  5. #include <sys/ioctl.h>
  6. #ifdef TTY_TERMIO
  7. #include <sys/termio.h>
  8. #endif
  9.  
  10. struct ttywin
  11.  {
  12. #ifdef TTY_WINDOWS
  13.   struct winsize ws;
  14. #endif
  15.   int dummy;
  16.  }
  17. ;
  18.  
  19. struct ttymodes
  20.  {
  21. #ifdef TTY_TERMIO
  22.   struct termio ti;
  23. #else
  24.   int di; long lb;
  25.   struct sgttyb sg; struct tchars tc; struct ltchars lt;
  26. #endif
  27.   struct ttywin wi;
  28. #ifdef TTY_AUXCHARS
  29.   struct auxchars au;
  30. #endif
  31.  }
  32. ;
  33.  
  34. extern int tty_getctrl();
  35. extern int tty_dissoc();
  36. extern int tty_spaceleft();
  37. extern int tty_setexcl();
  38. extern int tctpgrp();
  39.  
  40. extern int tty_getmodes();
  41. extern int tty_setmodes();
  42. extern int tty_modifymodes();
  43.  
  44. /* The following don't do any ioctls; they just mangle internal ttymodes. */
  45.  
  46. extern void tty_copymodes();
  47. extern void tty_win2modes();
  48. extern void tty_modes2win();
  49. extern void tty_zeromode();
  50. extern void tty_mungemodes();
  51. extern void tty_initmodes();
  52.  
  53. #endif
  54.