home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 22 gnu / 22-gnu.zip / fweb153.zip / fweb-1.53 / web / termcap0.web < prev    next >
Text File  |  1995-09-23  |  1KB  |  86 lines

  1. @z --- termcap0.web ---
  2.  
  3. FWEB version 1.53 (September 23, 1995)
  4.  
  5. Based on version 0.5 of S. Levy's CWEB [copyright (C) 1987 Princeton University]
  6.  
  7. @x-----------------------------------------------------------------------------
  8.  
  9.  
  10. \Title{TERMCAP0} % Dummy termcap routines.
  11.  
  12. @c
  13. @* INTRODUCTION.  These dummy routines replace those of the termcap library
  14. for the particular uses that \FWEB\ makes of them.
  15. @A 
  16. @<Include files@>@;
  17. typedef char outer_char;
  18. @<Prototypes@>@;
  19.  
  20. @I os.hweb /* System-dependent stuff. */
  21.  
  22. @ The function prototypes must appear before the global variables.
  23. @<Proto...@>=
  24.  
  25. #include SFILE(a_type.h)
  26.  
  27. @
  28. @a
  29.  
  30. int tgetent FCN((buffer,name))
  31.     outer_char *buffer C0("")@;
  32.     CONST outer_char *name C1("")@;
  33. {
  34. *buffer = '\0';
  35.  
  36. return 0;
  37. }
  38.  
  39. @
  40. @a
  41. int tgetflag FCN((id))
  42.     CONST outer_char *id C1("")@;
  43. {
  44. return 0;
  45. }
  46.  
  47. @
  48. @a
  49. int tgetnum FCN((id))
  50.     CONST outer_char *id C1("")@;
  51. {
  52. return -1;
  53. }
  54.  
  55. @
  56. @a
  57. outer_char *tgetstr FCN((id,pp))
  58.     CONST outer_char *id C0("")@;
  59.     outer_char **pp C1("")@;
  60. {
  61. return NULL;
  62. }
  63.  
  64. @
  65. @a
  66. outer_char *tgoto FCN((cm,destcol,destline))
  67.     CONST outer_char *cm C0("")@;
  68.     int destcol C0("")@;
  69.     int destline C1("")@;
  70. {
  71. return (outer_char *)"OOPS";
  72. }
  73.  
  74. @
  75. @a
  76. SRTN tputs FCN((cp,affcnt,outc))
  77.     outer_char *cp C0("")@;
  78.     int affcnt C0("")@;
  79.     int (*outc) PROTO((int)) C1("")@;
  80. {
  81. while(*cp)
  82.     (*outc)(*cp++);
  83. }
  84.  
  85. @* INDEX.
  86.