home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / sources / misc / 4096 < prev    next >
Encoding:
Text File  |  1992-11-18  |  49.3 KB  |  1,800 lines

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