home *** CD-ROM | disk | FTP | other *** search
/ Source Code 1994 March / Source_Code_CD-ROM_Walnut_Creek_March_1994.iso / compsrcs / misc / volume33 / pdcurses / part11 < prev    next >
Encoding:
Text File  |  1992-11-19  |  49.1 KB  |  1,794 lines

  1. Newsgroups: comp.sources.misc
  2. From: M.Hessling@gu.edu.au (Mark Hessling)
  3. Subject:  v33i091:  pdcurses - Public Domain curses library for DOS and OS/2 v2.0, Part11/11
  4. Message-ID: <1992Nov19.040926.8458@sparky.imd.sterling.com>
  5. X-Md4-Signature: 0cd8f1106308cdd4c73dddc306e603e6
  6. Date: Thu, 19 Nov 1992 04:09:26 GMT
  7. Approved: kent@sparky.imd.sterling.com
  8.  
  9. Submitted-by: M.Hessling@gu.edu.au (Mark Hessling)
  10. Posting-number: Volume 33, Issue 91
  11. Archive-name: pdcurses/part11
  12. Environment: DOS,OS/2,ANSI-C
  13.  
  14. #! /bin/sh
  15. # This is a shell archive.  Remove anything before this line, then feed it
  16. # into a shell via "sh file" or similar.  To overwrite existing files,
  17. # type "sh file -c".
  18. # Contents:  demos/firework.def demos/newdemo.def demos/testcurs.def
  19. #   demos/xmas.def doc/todo.man flexos/_gname.c nonport/border.c
  20. #   nonport/breakcha.c nonport/cursoff.c nonport/mvwinser.c
  21. #   nonport/rawout.c nonport/tabsize.c nonport/waddraws.c
  22. #   nonport/wordchar.c nonport/wtabsize.c portable/canchang.c
  23. #   portable/clearok.c portable/echo.c portable/erasecha.c
  24. #   portable/fixterm.c portable/gettmode.c portable/has_il.c
  25. #   portable/killchar.c portable/nodelay.c portable/noecho.c
  26. #   portable/resetter.c portable/saveoldt.c portable/saveterm.c
  27. #   portable/ungetch.c private/_clrscr.c private/_findwin.c
  28. #   private/_getscrn.c private/_newline.c private/_rmwin.c
  29. #   private/_usleep.c
  30. # Wrapped by kent@sparky on Wed Nov 18 21:44:11 1992
  31. PATH=/bin:/usr/bin:/usr/ucb:/usr/local/bin:/usr/lbin ; export PATH
  32. echo If this archive is complete, you will see the following message:
  33. echo '          "shar: End of archive 11 (of 11)."'
  34. if test -f 'demos/firework.def' -a "${1}" != "-c" ; then 
  35.   echo shar: Will not clobber existing file \"'demos/firework.def'\"
  36. else
  37.   echo shar: Extracting \"'demos/firework.def'\" \(719 characters\)
  38.   sed "s/^X//" >'demos/firework.def' <<'END_OF_FILE'
  39. XNAME firework windowcompat
  40. X
  41. XDESCRIPTION 'test'
  42. X
  43. XPROTMODE
  44. X
  45. XSTACKSIZE 32767
  46. X
  47. XIMPORTS
  48. XVioGetCurType=vio32.Vio32GetCurType
  49. XVioSetCurType=vio32.Vio32SetCurType
  50. XVioGetCurPos=vio32.Vio32GetCurPos
  51. XVioSetCurPos=vio32.Vio32SetCurPos
  52. XVioGetMode=vio32.Vio32GetMode
  53. XVioSetMode=vio32.Vio32SetMode
  54. XVioReadCellStr=vio32.Vio32ReadCellStr
  55. XVioWrtTTY=vio32.Vio32WrtTTY
  56. XVioWrtNAttr=vio32.Vio32WrtNAttr
  57. XVioGetConfig=vio32.Vio32GetConfig
  58. XVioScrollUp=vio32.Vio32ScrollUp
  59. XVioWrtCellStr=vio32.Vio32WrtCellStr
  60. XVioWrtNCell=vio32.Vio32WrtNCell
  61. XVioWrtCharStr=vio32.Vio32WrtCharStr
  62. XKbd32CharIn=kbd32.Kbd32CharIn
  63. XKbd32Peek=kbd32.Kbd32Peek
  64. XKbd32FlushBuffer=kbd32.Kbd32FlushBuffer
  65. XKbd32GetStatus=kbd32.Kbd32GetStatus
  66. XKbd32SetStatus=kbd32.Kbd32SetStatus
  67. END_OF_FILE
  68.   if test 719 -ne `wc -c <'demos/firework.def'`; then
  69.     echo shar: \"'demos/firework.def'\" unpacked with wrong size!
  70.   fi
  71.   # end of 'demos/firework.def'
  72. fi
  73. if test -f 'demos/newdemo.def' -a "${1}" != "-c" ; then 
  74.   echo shar: Will not clobber existing file \"'demos/newdemo.def'\"
  75. else
  76.   echo shar: Extracting \"'demos/newdemo.def'\" \(718 characters\)
  77.   sed "s/^X//" >'demos/newdemo.def' <<'END_OF_FILE'
  78. XNAME newdemo windowcompat
  79. X
  80. XDESCRIPTION 'test'
  81. X
  82. XPROTMODE
  83. X
  84. XSTACKSIZE 32767
  85. X
  86. XIMPORTS
  87. XVioGetCurType=vio32.Vio32GetCurType
  88. XVioSetCurType=vio32.Vio32SetCurType
  89. XVioGetCurPos=vio32.Vio32GetCurPos
  90. XVioSetCurPos=vio32.Vio32SetCurPos
  91. XVioGetMode=vio32.Vio32GetMode
  92. XVioSetMode=vio32.Vio32SetMode
  93. XVioReadCellStr=vio32.Vio32ReadCellStr
  94. XVioWrtTTY=vio32.Vio32WrtTTY
  95. XVioWrtNAttr=vio32.Vio32WrtNAttr
  96. XVioGetConfig=vio32.Vio32GetConfig
  97. XVioScrollUp=vio32.Vio32ScrollUp
  98. XVioWrtCellStr=vio32.Vio32WrtCellStr
  99. XVioWrtNCell=vio32.Vio32WrtNCell
  100. XVioWrtCharStr=vio32.Vio32WrtCharStr
  101. XKbd32CharIn=kbd32.Kbd32CharIn
  102. XKbd32Peek=kbd32.Kbd32Peek
  103. XKbd32FlushBuffer=kbd32.Kbd32FlushBuffer
  104. XKbd32GetStatus=kbd32.Kbd32GetStatus
  105. XKbd32SetStatus=kbd32.Kbd32SetStatus
  106. END_OF_FILE
  107.   if test 718 -ne `wc -c <'demos/newdemo.def'`; then
  108.     echo shar: \"'demos/newdemo.def'\" unpacked with wrong size!
  109.   fi
  110.   # end of 'demos/newdemo.def'
  111. fi
  112. if test -f 'demos/testcurs.def' -a "${1}" != "-c" ; then 
  113.   echo shar: Will not clobber existing file \"'demos/testcurs.def'\"
  114. else
  115.   echo shar: Extracting \"'demos/testcurs.def'\" \(719 characters\)
  116.   sed "s/^X//" >'demos/testcurs.def' <<'END_OF_FILE'
  117. XNAME testcurs windowcompat
  118. X
  119. XDESCRIPTION 'test'
  120. X
  121. XPROTMODE
  122. X
  123. XSTACKSIZE 32767
  124. X
  125. XIMPORTS
  126. XVioGetCurType=vio32.Vio32GetCurType
  127. XVioSetCurType=vio32.Vio32SetCurType
  128. XVioGetCurPos=vio32.Vio32GetCurPos
  129. XVioSetCurPos=vio32.Vio32SetCurPos
  130. XVioGetMode=vio32.Vio32GetMode
  131. XVioSetMode=vio32.Vio32SetMode
  132. XVioReadCellStr=vio32.Vio32ReadCellStr
  133. XVioWrtTTY=vio32.Vio32WrtTTY
  134. XVioWrtNAttr=vio32.Vio32WrtNAttr
  135. XVioGetConfig=vio32.Vio32GetConfig
  136. XVioScrollUp=vio32.Vio32ScrollUp
  137. XVioWrtCellStr=vio32.Vio32WrtCellStr
  138. XVioWrtNCell=vio32.Vio32WrtNCell
  139. XVioWrtCharStr=vio32.Vio32WrtCharStr
  140. XKbd32CharIn=kbd32.Kbd32CharIn
  141. XKbd32Peek=kbd32.Kbd32Peek
  142. XKbd32FlushBuffer=kbd32.Kbd32FlushBuffer
  143. XKbd32GetStatus=kbd32.Kbd32GetStatus
  144. XKbd32SetStatus=kbd32.Kbd32SetStatus
  145. END_OF_FILE
  146.   if test 719 -ne `wc -c <'demos/testcurs.def'`; then
  147.     echo shar: \"'demos/testcurs.def'\" unpacked with wrong size!
  148.   fi
  149.   # end of 'demos/testcurs.def'
  150. fi
  151. if test -f 'demos/xmas.def' -a "${1}" != "-c" ; then 
  152.   echo shar: Will not clobber existing file \"'demos/xmas.def'\"
  153. else
  154.   echo shar: Extracting \"'demos/xmas.def'\" \(715 characters\)
  155.   sed "s/^X//" >'demos/xmas.def' <<'END_OF_FILE'
  156. XNAME xmas windowcompat
  157. X
  158. XDESCRIPTION 'test'
  159. X
  160. XPROTMODE
  161. X
  162. XSTACKSIZE 32767
  163. X
  164. XIMPORTS
  165. XVioGetCurType=vio32.Vio32GetCurType
  166. XVioSetCurType=vio32.Vio32SetCurType
  167. XVioGetCurPos=vio32.Vio32GetCurPos
  168. XVioSetCurPos=vio32.Vio32SetCurPos
  169. XVioGetMode=vio32.Vio32GetMode
  170. XVioSetMode=vio32.Vio32SetMode
  171. XVioReadCellStr=vio32.Vio32ReadCellStr
  172. XVioWrtTTY=vio32.Vio32WrtTTY
  173. XVioWrtNAttr=vio32.Vio32WrtNAttr
  174. XVioGetConfig=vio32.Vio32GetConfig
  175. XVioScrollUp=vio32.Vio32ScrollUp
  176. XVioWrtCellStr=vio32.Vio32WrtCellStr
  177. XVioWrtNCell=vio32.Vio32WrtNCell
  178. XVioWrtCharStr=vio32.Vio32WrtCharStr
  179. XKbd32CharIn=kbd32.Kbd32CharIn
  180. XKbd32Peek=kbd32.Kbd32Peek
  181. XKbd32FlushBuffer=kbd32.Kbd32FlushBuffer
  182. XKbd32GetStatus=kbd32.Kbd32GetStatus
  183. XKbd32SetStatus=kbd32.Kbd32SetStatus
  184. END_OF_FILE
  185.   if test 715 -ne `wc -c <'demos/xmas.def'`; then
  186.     echo shar: \"'demos/xmas.def'\" unpacked with wrong size!
  187.   fi
  188.   # end of 'demos/xmas.def'
  189. fi
  190. if test -f 'doc/todo.man' -a "${1}" != "-c" ; then 
  191.   echo shar: Will not clobber existing file \"'doc/todo.man'\"
  192. else
  193.   echo shar: Extracting \"'doc/todo.man'\" \(562 characters\)
  194.   sed "s/^X//" >'doc/todo.man' <<'END_OF_FILE'
  195. X/*man-start*********************************************************************
  196. X
  197. XThe following curses functions are not supported in the current release
  198. Xof PDCurses:
  199. X
  200. X   copywin              halfdelay           scr_restore
  201. X                        notimeout           setsyx
  202. X   filter               resetterm           slk*
  203. X   flushok              ripoffline          subpad
  204. X   garbagedlines        scr_dump            vwprintf
  205. X   getsyx               scr_init            vwscanf
  206. X
  207. X**man-end**********************************************************************/
  208. END_OF_FILE
  209.   if test 562 -ne `wc -c <'doc/todo.man'`; then
  210.     echo shar: \"'doc/todo.man'\" unpacked with wrong size!
  211.   fi
  212.   # end of 'doc/todo.man'
  213. fi
  214. if test -f 'flexos/_gname.c' -a "${1}" != "-c" ; then 
  215.   echo shar: Will not clobber existing file \"'flexos/_gname.c'\"
  216. else
  217.   echo shar: Extracting \"'flexos/_gname.c'\" \(927 characters\)
  218.   sed "s/^X//" >'flexos/_gname.c' <<'END_OF_FILE'
  219. X#define    CURSES_LIBRARY    1
  220. X#include <curses.h>
  221. X
  222. X#ifndef NDEBUG
  223. Xchar *rcsid__gname = "$Header: c:/curses/flexos/RCS/_gname.c%v 2.0 1992/11/15 02:42:08 mh Rel $";
  224. X#endif
  225. X
  226. X
  227. X
  228. X
  229. X#ifdef    FLEXOS
  230. XVIRCON    vir;            /* Allocate a Virtual Console Structure */
  231. X
  232. X/*man-start*********************************************************************
  233. X
  234. X  _flexos_gname()    - FLEXOS: Return virtual console name
  235. X
  236. X  PDCurses Description:
  237. X     This is a Flexos platform PDCurses function.
  238. X
  239. X     This routine returns the name of the Flexos virtual console.
  240. X     The VIRCON vir structure is initialized within the initscr()
  241. X     calltree.
  242. X
  243. X  PDCurses Return Value:
  244. X     This routine returns a character pointer.
  245. X
  246. X  PDCurses Errors:
  247. X     No errors are defined for this routine.
  248. X
  249. X  Portability:
  250. X     PDCurses    char*    _flexos_gname( void );
  251. X
  252. X**man-end**********************************************************************/
  253. X
  254. Xchar*    _flexos_gname(void)
  255. X{
  256. X    return (&vir.vc_wname[0]);
  257. X}
  258. X#endif
  259. END_OF_FILE
  260.   if test 927 -ne `wc -c <'flexos/_gname.c'`; then
  261.     echo shar: \"'flexos/_gname.c'\" unpacked with wrong size!
  262.   fi
  263.   # end of 'flexos/_gname.c'
  264. fi
  265. if test -f 'nonport/border.c' -a "${1}" != "-c" ; then 
  266.   echo shar: Will not clobber existing file \"'nonport/border.c'\"
  267. else
  268.   echo shar: Extracting \"'nonport/border.c'\" \(1096 characters\)
  269.   sed "s/^X//" >'nonport/border.c' <<'END_OF_FILE'
  270. X#define    CURSES_LIBRARY    1
  271. X#include <curses.h>
  272. X#undef    border
  273. X
  274. X#ifndef    NDEBUG
  275. Xchar *rcsid_border = "$Header: c:/curses/nonport/RCS/border.c%v 2.0 1992/11/15 03:18:25 MH Rel $";
  276. X#endif
  277. X
  278. X
  279. X
  280. X
  281. X/*man-start*********************************************************************
  282. X
  283. X  border()    - sets the border characters in the stdscr window.
  284. X
  285. X  PDCurses Description:
  286. X     This routine sets the border characters for stdscr.
  287. X
  288. X     WARNING:
  289. X         Don't make this a call to wborder() - it would
  290. X         require too much stack for parameters.
  291. X     
  292. X  PDCurses Return Value:
  293. X     This function returns OK upon success otherwise ERR is returned.
  294. X
  295. X  PDCurses Errors:
  296. X     It is an error for stdscr to be a NULL pointer.
  297. X
  298. X  Portability:
  299. X     PDCurses    int border( chtype l,  chtype r,  chtype t,  chtype b,
  300. X                     chtype tl, chtype tr  chtype bl, chtype br );
  301. X
  302. X**man-end**********************************************************************/
  303. X
  304. Xint    border(chtype l,chtype r,chtype t,chtype b,chtype tl,chtype tr,chtype bl,chtype br)
  305. X{
  306. X    if (stdscr == (WINDOW *)NULL)
  307. X        return( ERR );
  308. X
  309. X    return( wborder( stdscr, l, r, t, b, tl, tr, bl, br ) );
  310. X}
  311. END_OF_FILE
  312.   if test 1096 -ne `wc -c <'nonport/border.c'`; then
  313.     echo shar: \"'nonport/border.c'\" unpacked with wrong size!
  314.   fi
  315.   # end of 'nonport/border.c'
  316. fi
  317. if test -f 'nonport/breakcha.c' -a "${1}" != "-c" ; then 
  318.   echo shar: Will not clobber existing file \"'nonport/breakcha.c'\"
  319. else
  320.   echo shar: Extracting \"'nonport/breakcha.c'\" \(1142 characters\)
  321.   sed "s/^X//" >'nonport/breakcha.c' <<'END_OF_FILE'
  322. X#define    CURSES_LIBRARY    1
  323. X#include <curses.h>
  324. X#undef    breakchar
  325. X
  326. X#ifndef    NDEBUG
  327. Xchar *rcsid_breakcha = "$Header: c:/curses/nonport/RCS/breakcha.c%v 2.0 1992/11/15 03:18:25 MH Rel $";
  328. X#endif
  329. X
  330. X
  331. X
  332. X
  333. X/*man-start*********************************************************************
  334. X
  335. X  breakchar()    - Return's user's current break character.
  336. X
  337. X  PDCurses Description:
  338. X
  339. X     This routine will return the current BREAK char.  This is a
  340. X     routine and not a macro in anticipation of providing
  341. X     user-specified BREAK chars.
  342. X
  343. X  PDCurses Return Value:
  344. X     The (chtype) character value that is the user's current break
  345. X     character.  This is currently hardcoded, but provided in
  346. X     anticipation of providing support for a user defined break char.
  347. X
  348. X  PDCurses Errors:
  349. X     No errors are defined for this function.
  350. X
  351. X  Portability:
  352. X     PDCurses    chtype    breakchar(void);
  353. X     BSD Curses
  354. X     SYS V Curses
  355. X**man-end**********************************************************************/
  356. X
  357. Xchtype    breakchar(void)
  358. X{
  359. X#ifdef FLEXOS
  360. X    return( (chtype) 0x03 );
  361. X#endif
  362. X#ifdef DOS
  363. X    return( (chtype) 0x03 );            /* Control-C */
  364. X#endif
  365. X#ifdef OS2
  366. X    return( (chtype) 0x03 );            /* Control-C */
  367. X#endif
  368. X}
  369. END_OF_FILE
  370.   if test 1142 -ne `wc -c <'nonport/breakcha.c'`; then
  371.     echo shar: \"'nonport/breakcha.c'\" unpacked with wrong size!
  372.   fi
  373.   # end of 'nonport/breakcha.c'
  374. fi
  375. if test -f 'nonport/cursoff.c' -a "${1}" != "-c" ; then 
  376.   echo shar: Will not clobber existing file \"'nonport/cursoff.c'\"
  377. else
  378.   echo shar: Extracting \"'nonport/cursoff.c'\" \(1096 characters\)
  379.   sed "s/^X//" >'nonport/cursoff.c' <<'END_OF_FILE'
  380. X#define    CURSES_LIBRARY    1
  381. X#include <curses.h>
  382. X#undef    cursoff
  383. X
  384. X#ifndef    NDEBUG
  385. Xchar *rcsid_cursoff = "$Header: c:/curses/nonport/RCS/cursoff.c%v 2.0 1992/11/15 03:18:26 MH Rel $";
  386. X#endif
  387. X
  388. X
  389. X
  390. X
  391. X/*man-start*********************************************************************
  392. X
  393. X  cursoff()    - Turns off the hardware cursor.
  394. X
  395. X  PDCurses Description:
  396. X     Turns off the hardware curses, it does nothing if it is already off.
  397. X
  398. X  PDCurses Return Value:
  399. X     Returns OK upon success, ERR upon failure.
  400. X
  401. X  PDCurses Errors:
  402. X     ERR will be returned (in the case of FLEXOS) if the hardware cursor
  403. X     can not be disabled.
  404. X
  405. X  Portability:
  406. X     PDCurses    int cursoff( void );
  407. X
  408. X**man-end**********************************************************************/
  409. X
  410. Xint    cursoff(void)
  411. X{
  412. X    if    (_cursvar.visible_cursor)
  413. X    {
  414. X        _cursvar.visible_cursor = FALSE;
  415. X#ifdef     OS2
  416. X        PDC_set_cursor_mode(32, 33);    /* turn it off */
  417. X#else
  418. X        switch (_cursvar.adapter)
  419. X        {
  420. X        case _FLEXOS:
  421. X            PDC_set_cursor_mode(_cursvar.visible_cursor, 0);
  422. X            break;
  423. X        default:
  424. X            PDC_set_cursor_mode(32, 33);    /* turn it off */
  425. X            break;
  426. X        }
  427. X#endif
  428. X    }
  429. X    return( OK );
  430. X}
  431. END_OF_FILE
  432.   if test 1096 -ne `wc -c <'nonport/cursoff.c'`; then
  433.     echo shar: \"'nonport/cursoff.c'\" unpacked with wrong size!
  434.   fi
  435.   # end of 'nonport/cursoff.c'
  436. fi
  437. if test -f 'nonport/mvwinser.c' -a "${1}" != "-c" ; then 
  438.   echo shar: Will not clobber existing file \"'nonport/mvwinser.c'\"
  439. else
  440.   echo shar: Extracting \"'nonport/mvwinser.c'\" \(910 characters\)
  441.   sed "s/^X//" >'nonport/mvwinser.c' <<'END_OF_FILE'
  442. X#define    CURSES_LIBRARY    1
  443. X#include <curses.h>
  444. X#undef    mvwinsert
  445. X
  446. X#ifndef    NDEBUG
  447. Xchar *rcsid_mvwinser = "$Header: c:/curses/nonport/RCS/mvwinser.c%v 2.0 1992/11/15 03:18:27 MH Rel $";
  448. X#endif
  449. X
  450. X
  451. X
  452. X
  453. X/*man-start*********************************************************************
  454. X
  455. X  mvwinsert()    - Insert line
  456. X
  457. X  PDCurses Description:
  458. X     A blank line is inserted above the current line and the bottom
  459. X     line is lost.
  460. X
  461. X     This routine is provided as an extension to the X/Open interface.
  462. X
  463. X  PDCurses Return Value:
  464. X     These functions return OK on success and ERR on error.
  465. X
  466. X  PDCurses Errors:
  467. X     It is an error to call this function with a NULL window pointer.
  468. X
  469. X  Portability:
  470. X     PDCurses    int mvwinsertln( WINDOW win, int y, int x );
  471. X
  472. X**man-end**********************************************************************/
  473. X
  474. Xint    mvwinsertln(WINDOW *win, int y, int x)
  475. X{
  476. X    return( (wmove(win, y, x) == ERR) ? ERR : winsertln(win) );
  477. X}
  478. END_OF_FILE
  479.   if test 910 -ne `wc -c <'nonport/mvwinser.c'`; then
  480.     echo shar: \"'nonport/mvwinser.c'\" unpacked with wrong size!
  481.   fi
  482.   # end of 'nonport/mvwinser.c'
  483. fi
  484. if test -f 'nonport/rawout.c' -a "${1}" != "-c" ; then 
  485.   echo shar: Will not clobber existing file \"'nonport/rawout.c'\"
  486. else
  487.   echo shar: Extracting \"'nonport/rawout.c'\" \(973 characters\)
  488.   sed "s/^X//" >'nonport/rawout.c' <<'END_OF_FILE'
  489. X#define CURSES_LIBRARY    1
  490. X#include <curses.h>
  491. X#undef  raw_output
  492. X
  493. X#ifndef NDEBUG
  494. Xchar *rcsid_rawout = "$Header: c:/curses/nonport/RCS/rawout.c%v 2.0 1992/11/15 03:18:27 MH Rel $";
  495. X#endif
  496. X
  497. X
  498. X
  499. X
  500. X/*man-start*********************************************************************
  501. X
  502. X  raw_output()    - enable raw output mode
  503. X
  504. X  PDCurses Description:
  505. X     This routine enables the output of raw characters using the
  506. X     'standard' *add* and *ins* curses functions.
  507. X     To force 8 bit output and no translation of control characters,
  508. X     invoke raw_output() with bf as TRUE.  To force 7 bit output and
  509. X     translation of control characters, invoke raw_output() with bf
  510. X     as FALSE.
  511. X
  512. X  PDCurses Return Value:
  513. X     This function returns OK.
  514. X
  515. X  PDCurses Errors:
  516. X     No errors are defined for this function.
  517. X
  518. X  Portability:
  519. X     PDCurses    int raw_output( bool );
  520. X
  521. X**man-end**********************************************************************/
  522. X
  523. Xint    raw_output(bool bf)
  524. X{
  525. X    _cursvar.raw_out = bf;
  526. X    return( OK );
  527. X}
  528. END_OF_FILE
  529.   if test 973 -ne `wc -c <'nonport/rawout.c'`; then
  530.     echo shar: \"'nonport/rawout.c'\" unpacked with wrong size!
  531.   fi
  532.   # end of 'nonport/rawout.c'
  533. fi
  534. if test -f 'nonport/tabsize.c' -a "${1}" != "-c" ; then 
  535.   echo shar: Will not clobber existing file \"'nonport/tabsize.c'\"
  536. else
  537.   echo shar: Extracting \"'nonport/tabsize.c'\" \(959 characters\)
  538.   sed "s/^X//" >'nonport/tabsize.c' <<'END_OF_FILE'
  539. X#define    CURSES_LIBRARY    1
  540. X#include <curses.h>
  541. X#undef    tabsize
  542. X
  543. X#ifndef    NDEBUG
  544. Xchar *rcsid_tabsize = "$Header: c:/curses/nonport/RCS/tabsize.c%v 2.0 1992/11/15 03:18:29 MH Rel $";
  545. X#endif
  546. X
  547. X
  548. X
  549. X
  550. X/*man-start*********************************************************************
  551. X
  552. X  tabsize()    - Set tab size in window
  553. X
  554. X  PDCurses Description:
  555. X     This routine sets the tabsize for stdscr and returns the previous
  556. X     tab size settings.
  557. X
  558. X  PDCurses Return Value:
  559. X     This routine returns the previous tab size setting upon success
  560. X     otherwise, it returns ERR.
  561. X
  562. X  PDCurses Errors:
  563. X     It is an error to call this routine before initscr().
  564. X
  565. X  Portability:
  566. X     PDCurses    int tabsize( int ts );
  567. X     X/Open Dec '88    
  568. X     SysV Curses    
  569. X     BSD Curses    
  570. X
  571. X**man-end**********************************************************************/
  572. X
  573. Xint    tabsize(int ts)
  574. X{
  575. X    int    origval;
  576. X
  577. X    if (stdscr == (WINDOW *)NULL)
  578. X        return( ERR );
  579. X
  580. X    origval = stdscr->_tabsize;
  581. X    stdscr->_tabsize = ts;
  582. X    return( origval );
  583. X}
  584. END_OF_FILE
  585.   if test 959 -ne `wc -c <'nonport/tabsize.c'`; then
  586.     echo shar: \"'nonport/tabsize.c'\" unpacked with wrong size!
  587.   fi
  588.   # end of 'nonport/tabsize.c'
  589. fi
  590. if test -f 'nonport/waddraws.c' -a "${1}" != "-c" ; then 
  591.   echo shar: Will not clobber existing file \"'nonport/waddraws.c'\"
  592. else
  593.   echo shar: Extracting \"'nonport/waddraws.c'\" \(1104 characters\)
  594.   sed "s/^X//" >'nonport/waddraws.c' <<'END_OF_FILE'
  595. X#define    CURSES_LIBRARY    1
  596. X#include <curses.h>
  597. X#undef    waddeawstr
  598. X
  599. X#ifndef    NDEBUG
  600. Xchar *rcsid_waddraws = "$Header: c:/curses/nonport/RCS/waddraws.c%v 2.0 1992/11/15 03:18:29 MH Rel $";
  601. X#endif
  602. X
  603. X
  604. X
  605. X
  606. X/*man-start*********************************************************************
  607. X
  608. X  waddrawstr()    - add raw string to window
  609. X
  610. X  PDCurses Description:
  611. X     The *raw*() routines output 8 bit values.  These contrast to their
  612. X     normal counterparts which output 7 bit values and convert control
  613. X     character to the ^X notation.
  614. X
  615. X     str is a standard 8 bit character string WITHOUT embedded attributes.
  616. X
  617. X  PDCurses Return Value:
  618. X     The waddrawstr() function returns OK on success and ERR on error.
  619. X
  620. X  PDCurses Errors:
  621. X     It is an error to call this function with a NULL window pointer.
  622. X
  623. X  Portability:
  624. X     PDCurses    int waddrawstr( WINDOW* win, char* str );
  625. X
  626. X**man-end**********************************************************************/
  627. X
  628. Xint    waddrawstr(WINDOW *win, char *str)
  629. X{
  630. X    if (win == (WINDOW *)NULL)
  631. X        return( ERR );
  632. X
  633. X    while (*str)
  634. X    {
  635. X        if (waddrawch(win, *str++) == ERR)
  636. X        {
  637. X            return( ERR );
  638. X        }
  639. X    }
  640. X    return( OK );
  641. X}
  642. END_OF_FILE
  643.   if test 1104 -ne `wc -c <'nonport/waddraws.c'`; then
  644.     echo shar: \"'nonport/waddraws.c'\" unpacked with wrong size!
  645.   fi
  646.   # end of 'nonport/waddraws.c'
  647. fi
  648. if test -f 'nonport/wordchar.c' -a "${1}" != "-c" ; then 
  649.   echo shar: Will not clobber existing file \"'nonport/wordchar.c'\"
  650. else
  651.   echo shar: Extracting \"'nonport/wordchar.c'\" \(892 characters\)
  652.   sed "s/^X//" >'nonport/wordchar.c' <<'END_OF_FILE'
  653. X#define    CURSES_LIBRARY    1
  654. X#include <curses.h>
  655. X#undef    wordchar
  656. X
  657. X#ifndef    NDEBUG
  658. Xchar *rcsid_wordchar = "$Header: c:/curses/nonport/RCS/wordchar.c%v 2.0 1992/11/15 03:18:31 MH Rel $";
  659. X#endif
  660. X
  661. X
  662. X
  663. X
  664. X/*man-start*********************************************************************
  665. X
  666. X  wordchar()    - returns the users word delete char
  667. X
  668. X  PDCurses Description:
  669. X     This routine returns the user's current word delete char.
  670. X
  671. X     At the present time, this is still a constant, but positions
  672. X     the library to more fully support this in the future.
  673. X
  674. X  PDCurses Errors:
  675. X     The wordchar returns the user's current delete word character.
  676. X     If none is specified, then Ctrl-U is returned.
  677. X
  678. X  Portability:
  679. X     PDCurses    char wordchar( void );
  680. X     SysV Curses    
  681. X     BSD Curses    
  682. X
  683. X**man-end**********************************************************************/
  684. X
  685. Xchar    wordchar(void)
  686. X{
  687. X    return (_DWCHAR);            /* word delete char */
  688. X}
  689. END_OF_FILE
  690.   if test 892 -ne `wc -c <'nonport/wordchar.c'`; then
  691.     echo shar: \"'nonport/wordchar.c'\" unpacked with wrong size!
  692.   fi
  693.   # end of 'nonport/wordchar.c'
  694. fi
  695. if test -f 'nonport/wtabsize.c' -a "${1}" != "-c" ; then 
  696.   echo shar: Will not clobber existing file \"'nonport/wtabsize.c'\"
  697. else
  698.   echo shar: Extracting \"'nonport/wtabsize.c'\" \(1003 characters\)
  699.   sed "s/^X//" >'nonport/wtabsize.c' <<'END_OF_FILE'
  700. X#define    CURSES_LIBRARY    1
  701. X#include <curses.h>
  702. X#undef    wtabsize
  703. X
  704. X#ifndef    NDEBUG
  705. Xchar *rcsid_wtabsize = "$Header: c:/curses/nonport/RCS/wtabsize.c%v 2.0 1992/11/15 03:18:32 MH Rel $";
  706. X#endif
  707. X
  708. X
  709. X
  710. X
  711. X/*man-start*********************************************************************
  712. X
  713. X  wtabsize()    - Set tab size in window
  714. X
  715. X  X/Open Description:
  716. X     Not available.
  717. X
  718. X  PDCurses Description:
  719. X     This routine sets the tabsize for stdscr and returns the previous
  720. X     tab size settings.
  721. X
  722. X  X/Open Return Value:
  723. X     This routine returns the previous tab size setting upon success
  724. X     otherwise, it returns ERR.
  725. X
  726. X  PDCurses Errors:
  727. X     
  728. X
  729. X  Portability:
  730. X     PDCurses    int wtabsize( WINDOW* win, int ts );
  731. X     X/Open Dec '88    int wtabsize( WINDOW* win, int ts );
  732. X     SysV Curses    
  733. X     BSD Curses    
  734. X
  735. X**man-end**********************************************************************/
  736. X
  737. Xint    wtabsize(WINDOW *win, int ts)
  738. X{
  739. X    int    origval;
  740. X
  741. X    if (win == (WINDOW *)NULL)
  742. X        return( ERR );
  743. X
  744. X    origval = win->_tabsize;
  745. X    win->_tabsize = ts;
  746. X    return( origval );
  747. X}
  748. END_OF_FILE
  749.   if test 1003 -ne `wc -c <'nonport/wtabsize.c'`; then
  750.     echo shar: \"'nonport/wtabsize.c'\" unpacked with wrong size!
  751.   fi
  752.   # end of 'nonport/wtabsize.c'
  753. fi
  754. if test -f 'portable/canchang.c' -a "${1}" != "-c" ; then 
  755.   echo shar: Will not clobber existing file \"'portable/canchang.c'\"
  756. else
  757.   echo shar: Extracting \"'portable/canchang.c'\" \(876 characters\)
  758.   sed "s/^X//" >'portable/canchang.c' <<'END_OF_FILE'
  759. X#define    CURSES_LIBRARY    1
  760. X#include <curses.h>
  761. X#undef can_change_color
  762. X
  763. X#ifndef    NDEBUG
  764. Xchar *rcsid_canchang = "$Header: c:/curses/portable/RCS/canchang.c%v 2.0 1992/11/15 03:28:47 MH Rel $";
  765. X#endif
  766. X
  767. X
  768. X
  769. X
  770. X/*man-start*********************************************************************
  771. X
  772. X  can_change_color()    - Indicate if terminal can change color definitions
  773. X
  774. X  PDCurses Description:
  775. X     This is defined as a macro.
  776. X
  777. X     This routine indicates if the terminal has the capability to change
  778. X     the definition of its colors. Although this is possible at least
  779. X     with VGA monitors, this function always returns FALSE.
  780. X
  781. X
  782. X  PDCurses Return Value:
  783. X     This function returns FALSE.
  784. X
  785. X  PDCurses Errors:
  786. X     N/A
  787. X
  788. X  Portability:
  789. X     PDCurses    int can_change_color( void );
  790. X
  791. X**man-end**********************************************************************/
  792. X
  793. Xint can_change_color(void)
  794. X{
  795. X return(FALSE);
  796. X}
  797. END_OF_FILE
  798.   if test 876 -ne `wc -c <'portable/canchang.c'`; then
  799.     echo shar: \"'portable/canchang.c'\" unpacked with wrong size!
  800.   fi
  801.   # end of 'portable/canchang.c'
  802. fi
  803. if test -f 'portable/clearok.c' -a "${1}" != "-c" ; then 
  804.   echo shar: Will not clobber existing file \"'portable/clearok.c'\"
  805. else
  806.   echo shar: Extracting \"'portable/clearok.c'\" \(1138 characters\)
  807.   sed "s/^X//" >'portable/clearok.c' <<'END_OF_FILE'
  808. X#define    CURSES_LIBRARY    1
  809. X#include <curses.h>
  810. X#undef    clearok
  811. X
  812. X#ifndef    NDEBUG
  813. Xchar *rcsid_clearok = "$Header: c:/curses/portable/RCS/clearok.c%v 2.0 1992/11/15 03:28:47 MH Rel $";
  814. X#endif
  815. X
  816. X
  817. X
  818. X
  819. X/*man-start*********************************************************************
  820. X
  821. X  clearok()    - enable screen clearing
  822. X
  823. X  X/Open Description:
  824. X     If bf is TRUE, the next call to wrefresh() with this window will
  825. X     clear the screen completely and redraw the entire screen.
  826. X
  827. X  X/Open Return Value:
  828. X     The clearok() function returns OK on success and ERR on error.
  829. X
  830. X  X/Open Errors:
  831. X     No errors are defined for this function.
  832. X
  833. X  PDCurses Errors:
  834. X     It is an error to call this function with a NULL window pointer.
  835. X
  836. X  Portability:
  837. X     PDCurses    int clearok( WINDOW* win, bool flag );
  838. X     X/Open Dec '88    int clearok( WINDOW* win, bool bf );
  839. X     BSD Curses
  840. X     SYS V Curses    int clearok( WINDOW* win, bool bf );
  841. X
  842. X**man-end**********************************************************************/
  843. X
  844. Xint    clearok(WINDOW *win, bool flag)
  845. X{
  846. X    if (win == (WINDOW *)NULL)
  847. X        return( ERR );
  848. X
  849. X    if (win == curscr)
  850. X        tmpwin->_clear = flag;
  851. X    else
  852. X        win->_clear = flag;
  853. X
  854. X    return( OK );
  855. X}
  856. END_OF_FILE
  857.   if test 1138 -ne `wc -c <'portable/clearok.c'`; then
  858.     echo shar: \"'portable/clearok.c'\" unpacked with wrong size!
  859.   fi
  860.   # end of 'portable/clearok.c'
  861. fi
  862. if test -f 'portable/echo.c' -a "${1}" != "-c" ; then 
  863.   echo shar: Will not clobber existing file \"'portable/echo.c'\"
  864. else
  865.   echo shar: Extracting \"'portable/echo.c'\" \(1030 characters\)
  866.   sed "s/^X//" >'portable/echo.c' <<'END_OF_FILE'
  867. X#define    CURSES_LIBRARY    1
  868. X#include <curses.h>
  869. X#undef    echo
  870. X
  871. X#ifndef    NDEBUG
  872. Xchar *rcsid_echo = "$Header: c:/curses/portable/RCS/echo.c%v 2.0 1992/11/15 03:28:50 MH Rel $";
  873. X#endif
  874. X
  875. X
  876. X
  877. X
  878. X/*man-start*********************************************************************
  879. X
  880. X  echo()    - enable/disable terminal echo
  881. X
  882. X  X/Open Description:
  883. X     These functions control whether characters typed by the user
  884. X     are echoed by the input routine.  Initially, input characters
  885. X     are echoed.  Subsequent calls to echo() and noecho() do not
  886. X     flush type-ahead.
  887. X
  888. X  PDCurses Description:
  889. X     No additional PDCurses functionality.
  890. X
  891. X  X/Open Return Value:
  892. X     The echo() function returns OK on success and ERR on error.
  893. X
  894. X  X/Open Errors:
  895. X     No errors are defined for this function.
  896. X
  897. X  Portability:
  898. X     PDCurses    int echo( void );
  899. X     X/Open Dec '88    int echo( void );
  900. X     BSD Curses    int echo( void );
  901. X     SYS V Curses    int echo( void );
  902. X
  903. X**man-end**********************************************************************/
  904. X
  905. Xint    echo(void)
  906. X{
  907. X    _cursvar.echo = TRUE;
  908. X    return( OK );
  909. X}
  910. END_OF_FILE
  911.   if test 1030 -ne `wc -c <'portable/echo.c'`; then
  912.     echo shar: \"'portable/echo.c'\" unpacked with wrong size!
  913.   fi
  914.   # end of 'portable/echo.c'
  915. fi
  916. if test -f 'portable/erasecha.c' -a "${1}" != "-c" ; then 
  917.   echo shar: Will not clobber existing file \"'portable/erasecha.c'\"
  918. else
  919.   echo shar: Extracting \"'portable/erasecha.c'\" \(1040 characters\)
  920.   sed "s/^X//" >'portable/erasecha.c' <<'END_OF_FILE'
  921. X#define    CURSES_LIBRARY    1
  922. X#include <curses.h>
  923. X#undef    erasechar
  924. X
  925. X#ifndef    NDEBUG
  926. Xchar *rcsid_erasecha = "$Header: c:/curses/portable/RCS/erasecha.c%v 2.0 1992/11/15 03:28:51 MH Rel $";
  927. X#endif
  928. X
  929. X
  930. X
  931. X
  932. X/*man-start*********************************************************************
  933. X
  934. X  erasechar()    - Return current ERASE character.
  935. X
  936. X  X/Open Description:
  937. X     The user's current ERASE character is returned.
  938. X
  939. X  PDCurses Description:
  940. X     This is hardcoded at this time.  There may be future development
  941. X     to allow applications an easy way to specify this value.
  942. X
  943. X  X/Open Return Value:
  944. X     The erasechar() function returns the user's current line ERASE
  945. X     character.
  946. X
  947. X  X/Open Errors:
  948. X     No errors are defined for this function.
  949. X
  950. X  Portability:
  951. X     PDCurses    char erasechar( void );
  952. X     X/Open Dec '88    char erasechar( void );
  953. X     BSD Curses    char erasechar( void );
  954. X     SYS V Curses    char erasechar( void );
  955. X     
  956. X**man-end**********************************************************************/
  957. X
  958. Xchar    erasechar(void)
  959. X{
  960. X    return(    _ECHAR );    /* character delete char (^H) */
  961. X}
  962. END_OF_FILE
  963.   if test 1040 -ne `wc -c <'portable/erasecha.c'`; then
  964.     echo shar: \"'portable/erasecha.c'\" unpacked with wrong size!
  965.   fi
  966.   # end of 'portable/erasecha.c'
  967. fi
  968. if test -f 'portable/fixterm.c' -a "${1}" != "-c" ; then 
  969.   echo shar: Will not clobber existing file \"'portable/fixterm.c'\"
  970. else
  971.   echo shar: Extracting \"'portable/fixterm.c'\" \(567 characters\)
  972.   sed "s/^X//" >'portable/fixterm.c' <<'END_OF_FILE'
  973. X#define    CURSES_LIBRARY    1
  974. X#include <curses.h>
  975. X#undef    fixterm
  976. X
  977. X#ifndef    NDEBUG
  978. Xchar *rcsid_fixterm = "$Header: c:/curses/portable/RCS/fixterm.c%v 2.0 1992/11/15 03:28:52 MH Rel $";
  979. X#endif
  980. X
  981. X
  982. X
  983. X
  984. X/*man-start*********************************************************************
  985. X
  986. X  fixterm()    - restore terminal mode
  987. X
  988. X  PDCurses Description:
  989. X     Now obsolete. Retained for compatibility with older versions
  990. X     of curses.
  991. X
  992. X     see reset_prog_mode()
  993. X**man-end**********************************************************************/
  994. X
  995. Xint    fixterm(void)
  996. X{
  997. X    return( reset_prog_mode() );
  998. X}
  999. END_OF_FILE
  1000.   if test 567 -ne `wc -c <'portable/fixterm.c'`; then
  1001.     echo shar: \"'portable/fixterm.c'\" unpacked with wrong size!
  1002.   fi
  1003.   # end of 'portable/fixterm.c'
  1004. fi
  1005. if test -f 'portable/gettmode.c' -a "${1}" != "-c" ; then 
  1006.   echo shar: Will not clobber existing file \"'portable/gettmode.c'\"
  1007. else
  1008.   echo shar: Extracting \"'portable/gettmode.c'\" \(542 characters\)
  1009.   sed "s/^X//" >'portable/gettmode.c' <<'END_OF_FILE'
  1010. X#define    CURSES_LIBRARY    1
  1011. X#include <curses.h>
  1012. X#undef    gettmode
  1013. X
  1014. X#ifndef    NDEBUG
  1015. Xchar *rcsid_gettmode = "$Header: c:/curses/portable/RCS/gettmode.c%v 2.0 1992/11/15 03:28:53 MH Rel $";
  1016. X#endif
  1017. X
  1018. X
  1019. X
  1020. X
  1021. X/*man-start*********************************************************************
  1022. X
  1023. X  gettmode()    - Unknown description.
  1024. X
  1025. X  PDCurses Description:
  1026. X     Now obsolete. Retained for compatibility with older versions
  1027. X     of curses.
  1028. X
  1029. X     A no-op.
  1030. X**man-end**********************************************************************/
  1031. X
  1032. Xint    gettmode(void)
  1033. X{
  1034. X    return (OK);
  1035. X}
  1036. END_OF_FILE
  1037.   if test 542 -ne `wc -c <'portable/gettmode.c'`; then
  1038.     echo shar: \"'portable/gettmode.c'\" unpacked with wrong size!
  1039.   fi
  1040.   # end of 'portable/gettmode.c'
  1041. fi
  1042. if test -f 'portable/has_il.c' -a "${1}" != "-c" ; then 
  1043.   echo shar: Will not clobber existing file \"'portable/has_il.c'\"
  1044. else
  1045.   echo shar: Extracting \"'portable/has_il.c'\" \(1184 characters\)
  1046.   sed "s/^X//" >'portable/has_il.c' <<'END_OF_FILE'
  1047. X#define    CURSES_LIBRARY    1
  1048. X#include <curses.h>
  1049. X#undef    has_il
  1050. X
  1051. X#ifndef    NDEBUG
  1052. Xchar *rcsid_has_il = "$Header: c:/curses/portable/RCS/has_il.c%v 2.0 1992/11/15 03:28:54 MH Rel $";
  1053. X#endif
  1054. X
  1055. X
  1056. X
  1057. X
  1058. X/*man-start*********************************************************************
  1059. X
  1060. X  has_il()    - determine whether insert/delete line available
  1061. X
  1062. X  X/Open Description:
  1063. X     This function will return TRUE if the terminal has insert line
  1064. X     and delete line capabilities.
  1065. X
  1066. X  PDCurses Description:
  1067. X     For DOS, this is irrelevant (and ALWAYS TRUE), as the speed of
  1068. X     the DIRECT VIDEO or even BIOS writes is quicker than on a
  1069. X     serial terminal.
  1070. X
  1071. X     For FLEXOS, this value has meaning and depends on the terminal,
  1072. X     though at this time, it is a constant TRUE.
  1073. X
  1074. X  X/Open Return Value:
  1075. X     The has_il() function returns TRUE if the terminal has insert
  1076. X     line and delete line capabilities, otherwise it returns
  1077. X     FALSE.
  1078. X
  1079. X  X/Open Errors:
  1080. X     No errors are defined for this function.
  1081. X
  1082. X  Portability:
  1083. X     PDCurses    bool has_il( void );
  1084. X     X/Open Dec '88    bool has_il( void );
  1085. X     BSD Curses    
  1086. X     SYS V Curses    
  1087. X
  1088. X**man-end**********************************************************************/
  1089. X
  1090. Xbool    has_il(void)
  1091. X{
  1092. X    return( TRUE );
  1093. X}
  1094. END_OF_FILE
  1095.   if test 1184 -ne `wc -c <'portable/has_il.c'`; then
  1096.     echo shar: \"'portable/has_il.c'\" unpacked with wrong size!
  1097.   fi
  1098.   # end of 'portable/has_il.c'
  1099. fi
  1100. if test -f 'portable/killchar.c' -a "${1}" != "-c" ; then 
  1101.   echo shar: Will not clobber existing file \"'portable/killchar.c'\"
  1102. else
  1103.   echo shar: Extracting \"'portable/killchar.c'\" \(1015 characters\)
  1104.   sed "s/^X//" >'portable/killchar.c' <<'END_OF_FILE'
  1105. X#define    CURSES_LIBRARY    1
  1106. X#include <curses.h>
  1107. X#undef    killchar
  1108. X
  1109. X#ifndef    NDEBUG
  1110. Xchar *rcsid_killchar = "$Header: c:/curses/portable/RCS/killchar.c%v 2.0 1992/11/15 03:28:58 MH Rel $";
  1111. X#endif
  1112. X
  1113. X
  1114. X
  1115. X
  1116. X/*man-start*********************************************************************
  1117. X
  1118. X  killchar()    - return current KILL character
  1119. X
  1120. X  X/Open Description:
  1121. X     The user's current line KILL character.
  1122. X
  1123. X  PDCurses Description:
  1124. X     This is hardcoded at this time.  There may be future development
  1125. X     to allow applications an easy way to specify this value.
  1126. X
  1127. X  X/Open Return Value:
  1128. X     The killchar() function returns the user's current line KILL
  1129. X     character.
  1130. X
  1131. X  X/Open Errors:
  1132. X     No errors are defined for this function.
  1133. X
  1134. X  Portability:
  1135. X     PDCurses    char killchar( void );
  1136. X     X/Open Dec '88    char killchar( void );
  1137. X     BSD Curses    char killchar( void );
  1138. X     SYS V Curses    char killchar( void );
  1139. X
  1140. X**man-end**********************************************************************/
  1141. X
  1142. Xchar    killchar(void)
  1143. X{
  1144. X    return( _DLCHAR );    /* line delete char (^U) */
  1145. X}
  1146. END_OF_FILE
  1147.   if test 1015 -ne `wc -c <'portable/killchar.c'`; then
  1148.     echo shar: \"'portable/killchar.c'\" unpacked with wrong size!
  1149.   fi
  1150.   # end of 'portable/killchar.c'
  1151. fi
  1152. if test -f 'portable/nodelay.c' -a "${1}" != "-c" ; then 
  1153.   echo shar: Will not clobber existing file \"'portable/nodelay.c'\"
  1154. else
  1155.   echo shar: Extracting \"'portable/nodelay.c'\" \(1151 characters\)
  1156.   sed "s/^X//" >'portable/nodelay.c' <<'END_OF_FILE'
  1157. X#define    CURSES_LIBRARY    1
  1158. X#include <curses.h>
  1159. X#undef    nodelay
  1160. X
  1161. X#ifndef    NDEBUG
  1162. Xchar *rcsid_nodelay = "$Header: c:/curses/portable/RCS/nodelay.c%v 2.0 1992/11/15 03:29:05 MH Rel $";
  1163. X#endif
  1164. X
  1165. X
  1166. X
  1167. X
  1168. X/*man-start*********************************************************************
  1169. X
  1170. X  nodelay()    - disable block during read
  1171. X
  1172. X  X/Open Description:
  1173. X     This function controls whether wgetch() is a non-blocking
  1174. X     call. If the option is enabled, and no input is ready, wgetch()
  1175. X     will return ERR. If disabled, wgetch() will hang until input
  1176. X     is ready.
  1177. X
  1178. X  PDCurses Description:
  1179. X     There is no additional PDCurses functionality for this function.
  1180. X
  1181. X  X/Open Return Value:
  1182. X     This function returns OK on success and ERR on error.
  1183. X
  1184. X  X/Open Errors:
  1185. X     No errors are defined for this function.
  1186. X
  1187. X  Portability:
  1188. X     PDCurses    int nodelay( WINDOW* win, bool bf );
  1189. X     X/Open Dec '88    int nodelay( WINDOW* win, bool bf );
  1190. X     BSD Curses    int nodelay( WINDOW* win, bool bf );
  1191. X     SYS V Curses    int nodelay( WINDOW* win, bool bf );
  1192. X
  1193. X**man-end**********************************************************************/
  1194. X
  1195. Xint    nodelay( WINDOW *win, bool flag )
  1196. X{
  1197. X    win->_nodelay = flag;
  1198. X    return( OK );
  1199. X}
  1200. END_OF_FILE
  1201.   if test 1151 -ne `wc -c <'portable/nodelay.c'`; then
  1202.     echo shar: \"'portable/nodelay.c'\" unpacked with wrong size!
  1203.   fi
  1204.   # end of 'portable/nodelay.c'
  1205. fi
  1206. if test -f 'portable/noecho.c' -a "${1}" != "-c" ; then 
  1207.   echo shar: Will not clobber existing file \"'portable/noecho.c'\"
  1208. else
  1209.   echo shar: Extracting \"'portable/noecho.c'\" \(1050 characters\)
  1210.   sed "s/^X//" >'portable/noecho.c' <<'END_OF_FILE'
  1211. X#define    CURSES_LIBRARY    1
  1212. X#include <curses.h>
  1213. X#undef    noecho
  1214. X
  1215. X#ifndef    NDEBUG
  1216. Xchar *rcsid_noecho = "$Header: c:/curses/portable/RCS/noecho.c%v 2.0 1992/11/15 03:29:05 MH Rel $";
  1217. X#endif
  1218. X
  1219. X
  1220. X
  1221. X
  1222. X/*man-start*********************************************************************
  1223. X
  1224. X  noecho()    - enable/disable terminal echo
  1225. X
  1226. X  X/Open Description:
  1227. X     These functions control whether characters typed by the user
  1228. X     are echoed by the input routine.  Initially, input characters
  1229. X     are echoed.  Subsequent calls to echo() and noecho() do not
  1230. X     flush type-ahead.
  1231. X
  1232. X  PDCurses Description:
  1233. X     No additional PDCurses functionality.
  1234. X
  1235. X  X/Open Return Value:
  1236. X     The noraw() function returns OK on success and ERR on error.
  1237. X
  1238. X  X/Open Errors:
  1239. X     No errors are defined for this function.
  1240. X
  1241. X  Portability:
  1242. X     PDCurses    int noecho( void );
  1243. X     X/Open Dec '88    int noecho( void );
  1244. X     BSD Curses    int noecho( void );
  1245. X     SYS V Curses    int noecho( void );
  1246. X
  1247. X**man-end**********************************************************************/
  1248. X
  1249. Xint    noecho(void)
  1250. X{
  1251. X    _cursvar.echo = FALSE;
  1252. X    return( OK );
  1253. X}
  1254. END_OF_FILE
  1255.   if test 1050 -ne `wc -c <'portable/noecho.c'`; then
  1256.     echo shar: \"'portable/noecho.c'\" unpacked with wrong size!
  1257.   fi
  1258.   # end of 'portable/noecho.c'
  1259. fi
  1260. if test -f 'portable/resetter.c' -a "${1}" != "-c" ; then 
  1261.   echo shar: Will not clobber existing file \"'portable/resetter.c'\"
  1262. else
  1263.   echo shar: Extracting \"'portable/resetter.c'\" \(599 characters\)
  1264.   sed "s/^X//" >'portable/resetter.c' <<'END_OF_FILE'
  1265. X#include <string.h>
  1266. X#define    CURSES_LIBRARY    1
  1267. X#include <curses.h>
  1268. X
  1269. X#ifndef NDEBUG
  1270. Xchar *rcsid_resetter = "$Header: c:/curses/portable/RCS/resetter.c%v 2.0 1992/11/15 03:29:10 MH Rel $";
  1271. X#endif
  1272. X
  1273. X
  1274. X
  1275. X
  1276. X/*man-start*********************************************************************
  1277. X
  1278. X  resetterm()    - Reset's terminal to "out of curses" mode
  1279. X
  1280. X  PDCurses Description:
  1281. X     Now obsolete. Retained for compatibility with older versions
  1282. X     of curses.
  1283. X
  1284. X     see reset_shell_mode()
  1285. X**man-end**********************************************************************/
  1286. X
  1287. Xint    resetterm(void)
  1288. X{
  1289. X    return( reset_shell_mode() );
  1290. X}
  1291. END_OF_FILE
  1292.   if test 599 -ne `wc -c <'portable/resetter.c'`; then
  1293.     echo shar: \"'portable/resetter.c'\" unpacked with wrong size!
  1294.   fi
  1295.   # end of 'portable/resetter.c'
  1296. fi
  1297. if test -f 'portable/saveoldt.c' -a "${1}" != "-c" ; then 
  1298.   echo shar: Will not clobber existing file \"'portable/saveoldt.c'\"
  1299. else
  1300.   echo shar: Extracting \"'portable/saveoldt.c'\" \(527 characters\)
  1301.   sed "s/^X//" >'portable/saveoldt.c' <<'END_OF_FILE'
  1302. X#define    CURSES_LIBRARY    1
  1303. X#include <curses.h>
  1304. X
  1305. X#if    !defined( NDEBUG )
  1306. Xchar *rcsid_saveoldt = "$Header: c:/curses/portable/RCS/saveoldt.c%v 2.0 1992/11/15 03:29:12 MH Rel $";
  1307. X#endif
  1308. X
  1309. X
  1310. X/*man-start*********************************************************************
  1311. X
  1312. X  saveoldterm()    - Unknown description.
  1313. X
  1314. X  PDCurses Description:
  1315. X     Now obsolete. Retained for compatibility with older versions
  1316. X     of curses.
  1317. X**man-end**********************************************************************/
  1318. X
  1319. Xint    saveoldterm(void)
  1320. X{
  1321. X    return( OK );
  1322. X}
  1323. END_OF_FILE
  1324.   if test 527 -ne `wc -c <'portable/saveoldt.c'`; then
  1325.     echo shar: \"'portable/saveoldt.c'\" unpacked with wrong size!
  1326.   fi
  1327.   # end of 'portable/saveoldt.c'
  1328. fi
  1329. if test -f 'portable/saveterm.c' -a "${1}" != "-c" ; then 
  1330.   echo shar: Will not clobber existing file \"'portable/saveterm.c'\"
  1331. else
  1332.   echo shar: Extracting \"'portable/saveterm.c'\" \(574 characters\)
  1333.   sed "s/^X//" >'portable/saveterm.c' <<'END_OF_FILE'
  1334. X#include <string.h>
  1335. X#define    CURSES_LIBRARY    1
  1336. X#include <curses.h>
  1337. X
  1338. X#ifndef NDEBUG
  1339. Xchar *rcsid_saveterm = "$Header: c:/curses/portable/RCS/saveterm.c%v 2.0 1992/11/15 03:29:13 MH Rel $";
  1340. X#endif
  1341. X
  1342. X/*man-start*********************************************************************
  1343. X
  1344. X  saveterm()    - Save the terminal settings
  1345. X
  1346. X  PDCurses Description:
  1347. X     Now obsolete. Retained for compatibility with older versions
  1348. X     of curses.
  1349. X
  1350. X     see def_prog_mode()
  1351. X**man-end**********************************************************************/
  1352. X
  1353. Xint    saveterm(void)
  1354. X{
  1355. X    return( def_prog_mode() );
  1356. X}
  1357. END_OF_FILE
  1358.   if test 574 -ne `wc -c <'portable/saveterm.c'`; then
  1359.     echo shar: \"'portable/saveterm.c'\" unpacked with wrong size!
  1360.   fi
  1361.   # end of 'portable/saveterm.c'
  1362. fi
  1363. if test -f 'portable/ungetch.c' -a "${1}" != "-c" ; then 
  1364.   echo shar: Will not clobber existing file \"'portable/ungetch.c'\"
  1365. else
  1366.   echo shar: Extracting \"'portable/ungetch.c'\" \(1121 characters\)
  1367.   sed "s/^X//" >'portable/ungetch.c' <<'END_OF_FILE'
  1368. X#define    CURSES_LIBRARY    1
  1369. X#include <curses.h>
  1370. X#undef    ungetch
  1371. X
  1372. X#ifndef NDEBUG
  1373. Xchar *rcsid_ungetch = "$Header: c:/curses/portable/RCS/ungetch.c%v 2.0 1992/11/15 03:29:20 MH Rel $";
  1374. X#endif
  1375. X
  1376. X
  1377. X
  1378. X
  1379. X/*man-start*********************************************************************
  1380. X
  1381. X  ungetch()    - pushes a character back onto the input stream
  1382. X
  1383. X  PDCurses Description:
  1384. X     There is only one input stream to ungetch characters onto.  It
  1385. X     is of size NUNGETCH.
  1386. X
  1387. X  PDCurses Return Value:
  1388. X     The ungetch() routine returns OK upon success otherwise ERR is
  1389. X     returned.
  1390. X
  1391. X  PDCurses Errors:
  1392. X     ERR will be returned when the push back stack is full.
  1393. X
  1394. X  Portability:
  1395. X     PDCurses    ungetch( chtype ch );
  1396. X     SysV Curses    
  1397. X     BSD Curses    
  1398. X
  1399. X**man-end**********************************************************************/
  1400. X
  1401. Xint    ungetch(chtype ch)
  1402. X{
  1403. Xextern    int    c_pindex;        /* putter index */
  1404. Xextern    int    c_gindex;        /* getter index */
  1405. Xextern    int    c_ungind;        /* wungetch() push index */
  1406. Xextern    chtype    c_ungch[NUNGETCH];    /* array of ungotten chars */
  1407. X
  1408. X    if (c_ungind >= NUNGETCH)    /* pushback stack full */
  1409. X        return( ERR );
  1410. X
  1411. X    c_ungch[c_ungind++] = ch;
  1412. X    return( OK );
  1413. X}
  1414. END_OF_FILE
  1415.   if test 1121 -ne `wc -c <'portable/ungetch.c'`; then
  1416.     echo shar: \"'portable/ungetch.c'\" unpacked with wrong size!
  1417.   fi
  1418.   # end of 'portable/ungetch.c'
  1419. fi
  1420. if test -f 'private/_clrscr.c' -a "${1}" != "-c" ; then 
  1421.   echo shar: Will not clobber existing file \"'private/_clrscr.c'\"
  1422. else
  1423.   echo shar: Extracting \"'private/_clrscr.c'\" \(763 characters\)
  1424.   sed "s/^X//" >'private/_clrscr.c' <<'END_OF_FILE'
  1425. X#define    CURSES_LIBRARY    1
  1426. X#include <curses.h>
  1427. X
  1428. X#ifndef    NDEBUG
  1429. Xchar *rcsid__clrscr = "$Header: c:/curses/private/RCS/_clrscr.c%v 2.0 1992/11/15 03:24:42 MH Rel $";
  1430. X#endif
  1431. X
  1432. X
  1433. X
  1434. X
  1435. X/*man-start*********************************************************************
  1436. X
  1437. X  PDC_clr_scrn()    - Clears the physical screen and homes the cursor.
  1438. X
  1439. X  PDCurses Description:
  1440. X     This is an internal routine called by the doupdate() routines.
  1441. X
  1442. X  PDCurses Return Value:
  1443. X     This routine always returns OK.
  1444. X
  1445. X  Portability:
  1446. X     PDCurses    int PDC_clr_scrn( WINDOW* win );
  1447. X
  1448. X**man-end**********************************************************************/
  1449. X
  1450. Xint    PDC_clr_scrn(WINDOW *win)
  1451. X{
  1452. X    chtype    attrs = win->_attrs;
  1453. X    PDC_scroll(0, 0, LINES - 1, COLS - 1, 0, attrs);
  1454. X    PDC_gotoxy(0, 0);
  1455. X    return( OK );
  1456. X}
  1457. END_OF_FILE
  1458.   if test 763 -ne `wc -c <'private/_clrscr.c'`; then
  1459.     echo shar: \"'private/_clrscr.c'\" unpacked with wrong size!
  1460.   fi
  1461.   # end of 'private/_clrscr.c'
  1462. fi
  1463. if test -f 'private/_findwin.c' -a "${1}" != "-c" ; then 
  1464.   echo shar: Will not clobber existing file \"'private/_findwin.c'\"
  1465. else
  1466.   echo shar: Extracting \"'private/_findwin.c'\" \(1042 characters\)
  1467.   sed "s/^X//" >'private/_findwin.c' <<'END_OF_FILE'
  1468. X#define    CURSES_LIBRARY    1
  1469. X#include <curses.h>
  1470. X
  1471. X#ifdef    REGISTERWINDOWS
  1472. X#ifndef    NDEBUG
  1473. Xchar *rcsid__findwin = "$Header: c:/curses/private/RCS/_findwin.c%v 2.0 1992/11/15 03:24:42 MH Rel $";
  1474. X#endif
  1475. X
  1476. X
  1477. X
  1478. X
  1479. X/*man-start*********************************************************************
  1480. X
  1481. X  PDC_findwin()    - Find a window in the visible windows list.
  1482. X
  1483. X  PDCurses Description:
  1484. X     This is a private PDCurses routine.
  1485. X
  1486. X     This routine is a part of the developing window registration
  1487. X     system that will reach maturity soon.
  1488. X
  1489. X     This routine returns the passed WINDOW*'s WINDS pointer.
  1490. X
  1491. X  PDCurses Return Value:
  1492. X     This function returns OK on success and ERR on error.
  1493. X
  1494. X  PDCurses Errors:
  1495. X     No errors are defined for this function.
  1496. X
  1497. X  Portability:
  1498. X     PDCurses    WINDS* PDC_findwin( WINDOW* win );
  1499. X
  1500. X**man-end**********************************************************************/
  1501. X
  1502. XWINDS*    PDC_findwin(WINDOW *win)
  1503. X{
  1504. X    WINDS*    next = _cursvar.visible;
  1505. X
  1506. X    while (next != (WINDS *)NULL)
  1507. X    {
  1508. X        if (next->w == win)
  1509. X            break;
  1510. X        next = next->next;
  1511. X    }
  1512. X    return( next );
  1513. X}
  1514. X#endif
  1515. END_OF_FILE
  1516.   if test 1042 -ne `wc -c <'private/_findwin.c'`; then
  1517.     echo shar: \"'private/_findwin.c'\" unpacked with wrong size!
  1518.   fi
  1519.   # end of 'private/_findwin.c'
  1520. fi
  1521. if test -f 'private/_getscrn.c' -a "${1}" != "-c" ; then 
  1522.   echo shar: Will not clobber existing file \"'private/_getscrn.c'\"
  1523. else
  1524.   echo shar: Extracting \"'private/_getscrn.c'\" \(1068 characters\)
  1525.   sed "s/^X//" >'private/_getscrn.c' <<'END_OF_FILE'
  1526. X#define    CURSES_LIBRARY    1
  1527. X#include <curses.h>
  1528. X
  1529. X#ifndef    NDEBUG
  1530. Xchar *rcsid__getscrn = "$Header: c:/curses/private/RCS/_getscrn.c%v 2.0 1992/11/15 03:24:26 MH Rel $";
  1531. X#endif
  1532. X
  1533. X
  1534. X
  1535. X
  1536. X/*man-start*********************************************************************
  1537. X
  1538. X  PDC_get_scrn_mode()    - Return the current BIOS video mode
  1539. X
  1540. X  PDCurses Description:
  1541. X     This is a private PDCurses routine.
  1542. X
  1543. X     Returns the current BIOS Video Mode Number.
  1544. X
  1545. X  PDCurses Return Value:
  1546. X     This function returns OK on success and ERR on error.
  1547. X
  1548. X  PDCurses Errors:
  1549. X     The FLEXOS version of this routine returns an ERR.
  1550. X
  1551. X  Portability:
  1552. X     PDCurses    int PDC_get_scrn_mode( void );
  1553. X
  1554. X**man-end**********************************************************************/
  1555. X
  1556. X#ifdef     OS2
  1557. XVIOMODEINFO    PDC_get_scrn_mode(void)
  1558. X#else
  1559. Xint    PDC_get_scrn_mode(void)
  1560. X#endif
  1561. X{
  1562. X#ifdef    FLEXOS
  1563. X    return( ERR );
  1564. X#endif
  1565. X#ifdef    DOS
  1566. X    regs.h.ah = 0x0f;
  1567. X    int86(0x10, ®s, ®s);
  1568. X    return ((int) regs.h.al);
  1569. X#endif
  1570. X#ifdef     OS2
  1571. X        VIOMODEINFO vioModeInfo;
  1572. X        VioGetMode (&vioModeInfo, 0);
  1573. X        return vioModeInfo;
  1574. X#endif
  1575. X}
  1576. END_OF_FILE
  1577.   if test 1068 -ne `wc -c <'private/_getscrn.c'`; then
  1578.     echo shar: \"'private/_getscrn.c'\" unpacked with wrong size!
  1579.   fi
  1580.   # end of 'private/_getscrn.c'
  1581. fi
  1582. if test -f 'private/_newline.c' -a "${1}" != "-c" ; then 
  1583.   echo shar: Will not clobber existing file \"'private/_newline.c'\"
  1584. else
  1585.   echo shar: Extracting \"'private/_newline.c'\" \(962 characters\)
  1586.   sed "s/^X//" >'private/_newline.c' <<'END_OF_FILE'
  1587. X#define    CURSES_LIBRARY    1
  1588. X#include <curses.h>
  1589. X
  1590. X#ifndef    NDEBUG
  1591. Xchar *rcsid__newline = "$Header: c:/curses/private/RCS/_newline.c%v 2.0 1992/11/15 03:24:17 MH Rel $";
  1592. X#endif
  1593. X
  1594. X
  1595. X
  1596. X
  1597. X/*man-start*********************************************************************
  1598. X
  1599. X  PDC_newline()    - Advances 1 newline from supplied line number.
  1600. X
  1601. X  PDCurses Description:
  1602. X     This is a private PDCurses routine.
  1603. X
  1604. X     Does line advance and returns the new cursor line.  If error,
  1605. X     return -1.
  1606. X
  1607. X  PDCurses Return Value:
  1608. X     This function returns OK on success and ERR on error.
  1609. X
  1610. X  PDCurses Errors:
  1611. X     No errors are defined for this function.
  1612. X
  1613. X  Portability:
  1614. X     PDCurses    int PDC_newline( WINDOW* win, int lin );
  1615. X
  1616. X**man-end**********************************************************************/
  1617. X
  1618. Xint    PDC_newline(WINDOW *win, int lin)
  1619. X{
  1620. X    if (win == (WINDOW *)NULL)
  1621. X        return( -1 );
  1622. X
  1623. X    if (++lin > win->_bmarg)
  1624. X    {
  1625. X        lin--;
  1626. X        if (win->_scroll)
  1627. X            scroll(win);
  1628. X        else
  1629. X            return( -1 );
  1630. X    }
  1631. X    return( lin );
  1632. X}
  1633. END_OF_FILE
  1634.   if test 962 -ne `wc -c <'private/_newline.c'`; then
  1635.     echo shar: \"'private/_newline.c'\" unpacked with wrong size!
  1636.   fi
  1637.   # end of 'private/_newline.c'
  1638. fi
  1639. if test -f 'private/_rmwin.c' -a "${1}" != "-c" ; then 
  1640.   echo shar: Will not clobber existing file \"'private/_rmwin.c'\"
  1641. else
  1642.   echo shar: Extracting \"'private/_rmwin.c'\" \(1200 characters\)
  1643.   sed "s/^X//" >'private/_rmwin.c' <<'END_OF_FILE'
  1644. X#define    CURSES_LIBRARY    1
  1645. X#include <curses.h>
  1646. X
  1647. X#ifdef    REGISTERWINDOWS
  1648. X#ifndef    NDEBUG
  1649. Xchar *rcsid__rmwin = "$Header: c:/curses/private/RCS/_rmwin.c%v 2.0 1992/11/15 03:24:32 MH Rel $";
  1650. X#endif
  1651. X
  1652. X
  1653. X
  1654. X
  1655. X/*man-start*********************************************************************
  1656. X
  1657. X  _rmwin()    - Unregister window
  1658. X
  1659. X  PDCurses Description:
  1660. X     This routine removes a window from the current visible list
  1661. X     of windows.
  1662. X
  1663. X  PDCurses Return Value:
  1664. X     This function returns OK on success and ERR on error.
  1665. X
  1666. X  PDCurses Errors:
  1667. X     It is an error to call this function with a NULL window pointer.
  1668. X
  1669. X  Portability:
  1670. X     PDCurses    int _rmwin( WINDOW* win );
  1671. X
  1672. X**man-end**********************************************************************/
  1673. X
  1674. Xint    _rmwin(WINDOW *win)
  1675. X{
  1676. Xextern    void    (*fre)();
  1677. X
  1678. X    WINDS  *w = _findwin(win);
  1679. X    WINDS  *next;
  1680. X    WINDS  *prev;
  1681. X
  1682. X    if (w != (WINDS *)NULL)
  1683. X    {
  1684. X        if (_cursvar.visible == w)
  1685. X        {
  1686. X            _cursvar.visible = w->next;
  1687. X            (*fre)(w);
  1688. X        }
  1689. X        else
  1690. X        if (w->next == NULL)
  1691. X        {
  1692. X            if (w->prev != NULL)
  1693. X            {
  1694. X                w->prev->next = NULL;
  1695. X                (*fre)(w);
  1696. X            }
  1697. X        }
  1698. X        else
  1699. X        {
  1700. X            next = w->next;
  1701. X            prev = w->prev;
  1702. X            next->prev = prev;
  1703. X            prev->next = next;
  1704. X            (*fre)(w);
  1705. X        }
  1706. X        return( OK );
  1707. X    }
  1708. X    return( ERR );
  1709. X}
  1710. X#endif
  1711. END_OF_FILE
  1712.   if test 1200 -ne `wc -c <'private/_rmwin.c'`; then
  1713.     echo shar: \"'private/_rmwin.c'\" unpacked with wrong size!
  1714.   fi
  1715.   # end of 'private/_rmwin.c'
  1716. fi
  1717. if test -f 'private/_usleep.c' -a "${1}" != "-c" ; then 
  1718.   echo shar: Will not clobber existing file \"'private/_usleep.c'\"
  1719. else
  1720.   echo shar: Extracting \"'private/_usleep.c'\" \(1149 characters\)
  1721.   sed "s/^X//" >'private/_usleep.c' <<'END_OF_FILE'
  1722. X#define    CURSES_LIBRARY    1
  1723. X#include <curses.h>
  1724. X#undef PDC_usleep
  1725. X
  1726. X#if defined(DOS) && defined(MSC)
  1727. X#include <time.h>
  1728. X#endif
  1729. X
  1730. X#ifndef    NDEBUG
  1731. Xchar *rcsid__usleep = "$Header: c:/curses/private/RCS/_usleep.c%v 2.0 1992/11/15 03:24:40 MH Rel $";
  1732. X#endif
  1733. X
  1734. X
  1735. X
  1736. X/*man-start*********************************************************************
  1737. X
  1738. X  PDC_usleep()    - waits for specified number of microseconds
  1739. X
  1740. X  PDCurses Description:
  1741. X     This routine is intended to provide a mechanism to wait the
  1742. X     specified number of microseconds. This routine is provided for
  1743. X     users of the Microsoft compilers under DOS as the default
  1744. X     library does not provide a suitable function.
  1745. X     Under any other Operating System/Compiler option, this function
  1746. X     does nothing.
  1747. X
  1748. X  Portability:
  1749. X     PDCurses    void PDC_usleep( clock_t );
  1750. X
  1751. X  Acknowledgement
  1752. X     PDC_usleep() was written by John Steele  (jsteele@netcom.com)
  1753. X
  1754. X**man-end**********************************************************************/
  1755. X
  1756. X#if defined(DOS) && defined(MSC)
  1757. Xvoid    PDC_usleep(clock_t wait)
  1758. X{
  1759. X    clock_t goal;
  1760. X    goal = wait + clock();
  1761. X    while (goal > clock())
  1762. X    ;
  1763. X    return;
  1764. X}
  1765. X#else
  1766. Xvoid    PDC_usleep(long wait)
  1767. X{
  1768. X    return;
  1769. X}
  1770. X#endif
  1771. END_OF_FILE
  1772.   if test 1149 -ne `wc -c <'private/_usleep.c'`; then
  1773.     echo shar: \"'private/_usleep.c'\" unpacked with wrong size!
  1774.   fi
  1775.   # end of 'private/_usleep.c'
  1776. fi
  1777. echo shar: End of archive 11 \(of 11\).
  1778. cp /dev/null ark11isdone
  1779. MISSING=""
  1780. for I in 1 2 3 4 5 6 7 8 9 10 11 ; do
  1781.     if test ! -f ark${I}isdone ; then
  1782.     MISSING="${MISSING} ${I}"
  1783.     fi
  1784. done
  1785. if test "${MISSING}" = "" ; then
  1786.     echo You have unpacked all 11 archives.
  1787.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1788. else
  1789.     echo You still must unpack the following archives:
  1790.     echo "        " ${MISSING}
  1791. fi
  1792. exit 0
  1793. exit 0 # Just in case...
  1794.