HaikuPorts
  • Login
  • Preferences
  • Help/Guide
  • Wiki
  • Timeline
  • Roadmap
  • View Tickets
  • Search
  • Port Log
  • Blog

Context Navigation

  • Back to Ticket #35

Ticket #35: ncurses-5.6-beos-to-check.txt

File ncurses-5.6-beos-to-check.txt, 23.9 KB (added by scottmc, 7 years ago)

output of grep -nri -C10 'beos' on the ncurses folder with auto files removed (removed aclocal.m4 and configure from previous list)

Line 
1--
2ncurses-5.6/include/curses.h-443-extern NCURSES_EXPORT(void) nofilter(void);
3ncurses-5.6/include/curses.h-444-#else
4ncurses-5.6/include/curses.h-445-#define curses_version() NCURSES_VERSION
5ncurses-5.6/include/curses.h-446-#endif
6ncurses-5.6/include/curses.h-447-
7ncurses-5.6/include/curses.h-448-/*
8ncurses-5.6/include/curses.h-449- * This is an extension to support events...
9ncurses-5.6/include/curses.h-450- */
10ncurses-5.6/include/curses.h-451-#if 1
11ncurses-5.6/include/curses.h-452-#ifdef NCURSES_WGETCH_EVENTS
12ncurses-5.6/include/curses.h:453:#if !defined(__BEOS__)         /* Fix _nc_timed_wait() on BEOS... */
13ncurses-5.6/include/curses.h-454-#  define NCURSES_EVENT_VERSION        1
14ncurses-5.6/include/curses.h:455:#endif /* !defined(__BEOS__) */
15ncurses-5.6/include/curses.h-456-
16ncurses-5.6/include/curses.h-457-/*
17ncurses-5.6/include/curses.h-458- * Bits to set in _nc_event.data.flags
18ncurses-5.6/include/curses.h-459- */
19ncurses-5.6/include/curses.h-460-#  define _NC_EVENT_TIMEOUT_MSEC       1
20ncurses-5.6/include/curses.h-461-#  define _NC_EVENT_FILE               2
21ncurses-5.6/include/curses.h-462-#  define _NC_EVENT_FILE_READABLE      2
22ncurses-5.6/include/curses.h-463-#  if 0                                        /* Not supported yet... */
23ncurses-5.6/include/curses.h-464-#    define _NC_EVENT_FILE_WRITABLE    4
24ncurses-5.6/include/curses.h-465-#    define _NC_EVENT_FILE_EXCEPTION   8
25--
26ncurses-5.6/include/curses.h.in-443-extern NCURSES_EXPORT(void) nofilter(void);
27ncurses-5.6/include/curses.h.in-444-#else
28ncurses-5.6/include/curses.h.in-445-#define curses_version() NCURSES_VERSION
29ncurses-5.6/include/curses.h.in-446-#endif
30ncurses-5.6/include/curses.h.in-447-
31ncurses-5.6/include/curses.h.in-448-/*
32ncurses-5.6/include/curses.h.in-449- * This is an extension to support events...
33ncurses-5.6/include/curses.h.in-450- */
34ncurses-5.6/include/curses.h.in-451-#if @NCURSES_EXT_FUNCS@
35ncurses-5.6/include/curses.h.in-452-#ifdef NCURSES_WGETCH_EVENTS
36ncurses-5.6/include/curses.h.in:453:#if !defined(__BEOS__)              /* Fix _nc_timed_wait() on BEOS... */
37ncurses-5.6/include/curses.h.in-454-#  define NCURSES_EVENT_VERSION     1
38ncurses-5.6/include/curses.h.in:455:#endif      /* !defined(__BEOS__) */
39ncurses-5.6/include/curses.h.in-456-
40ncurses-5.6/include/curses.h.in-457-/*
41ncurses-5.6/include/curses.h.in-458- * Bits to set in _nc_event.data.flags
42ncurses-5.6/include/curses.h.in-459- */
43ncurses-5.6/include/curses.h.in-460-#  define _NC_EVENT_TIMEOUT_MSEC    1
44ncurses-5.6/include/curses.h.in-461-#  define _NC_EVENT_FILE            2
45ncurses-5.6/include/curses.h.in-462-#  define _NC_EVENT_FILE_READABLE   2
46ncurses-5.6/include/curses.h.in-463-#  if 0                                     /* Not supported yet... */
47ncurses-5.6/include/curses.h.in-464-#    define _NC_EVENT_FILE_WRITABLE 4
48ncurses-5.6/include/curses.h.in-465-#    define _NC_EVENT_FILE_EXCEPTION        8
49--
50ncurses-5.6/include/curses.head-443-extern NCURSES_EXPORT(void) nofilter(void);
51ncurses-5.6/include/curses.head-444-#else
52ncurses-5.6/include/curses.head-445-#define curses_version() NCURSES_VERSION
53ncurses-5.6/include/curses.head-446-#endif
54ncurses-5.6/include/curses.head-447-
55ncurses-5.6/include/curses.head-448-/*
56ncurses-5.6/include/curses.head-449- * This is an extension to support events...
57ncurses-5.6/include/curses.head-450- */
58ncurses-5.6/include/curses.head-451-#if 1
59ncurses-5.6/include/curses.head-452-#ifdef NCURSES_WGETCH_EVENTS
60ncurses-5.6/include/curses.head:453:#if !defined(__BEOS__)              /* Fix _nc_timed_wait() on BEOS... */
61ncurses-5.6/include/curses.head-454-#  define NCURSES_EVENT_VERSION     1
62ncurses-5.6/include/curses.head:455:#endif      /* !defined(__BEOS__) */
63ncurses-5.6/include/curses.head-456-
64ncurses-5.6/include/curses.head-457-/*
65ncurses-5.6/include/curses.head-458- * Bits to set in _nc_event.data.flags
66ncurses-5.6/include/curses.head-459- */
67ncurses-5.6/include/curses.head-460-#  define _NC_EVENT_TIMEOUT_MSEC    1
68ncurses-5.6/include/curses.head-461-#  define _NC_EVENT_FILE            2
69ncurses-5.6/include/curses.head-462-#  define _NC_EVENT_FILE_READABLE   2
70ncurses-5.6/include/curses.head-463-#  if 0                                     /* Not supported yet... */
71ncurses-5.6/include/curses.head-464-#    define _NC_EVENT_FILE_WRITABLE 4
72ncurses-5.6/include/curses.head-465-#    define _NC_EVENT_FILE_EXCEPTION        8
73--
74ncurses-5.6/misc/shlib-50-# Using the actual soname (e.g., ../lib/libncurses.so) alone, is a more
75ncurses-5.6/misc/shlib-51-# flexible solution; you can link without having to set the environment
76ncurses-5.6/misc/shlib-52-# variable, and on some systems (IRIX) you can even run the resulting binaries
77ncurses-5.6/misc/shlib-53-# without setting LD_LIBRARY_PATH.
78ncurses-5.6/misc/shlib-54-#
79ncurses-5.6/misc/shlib-55-# Using a conventional link, with -L and -l options on Linux results in a
80ncurses-5.6/misc/shlib-56-# statically linked executable, which we don't want at all.
81ncurses-5.6/misc/shlib-57-#
82ncurses-5.6/misc/shlib-58-# Special cases:
83ncurses-5.6/misc/shlib-59-#
84ncurses-5.6/misc/shlib:60:#     BeOS R4.5 uses $LIBRARY_PATH rather than $LD_LIBRARY_PATH.
85ncurses-5.6/misc/shlib-61-#     Cygwin uses $PATH
86ncurses-5.6/misc/shlib-62-#     Mac OS X uses $DYLD_LIBRARY_PATH
87ncurses-5.6/misc/shlib-63-#
88ncurses-5.6/misc/shlib-64-# Other cases not handled by this script:
89ncurses-5.6/misc/shlib-65-#
90ncurses-5.6/misc/shlib-66-#     AIX uses $LIBPATH
91ncurses-5.6/misc/shlib-67-#     IRIX64 may use $LD_LIBRARY64_PATH or $LD_LIBRARYN32_PATH
92ncurses-5.6/misc/shlib-68-#     Solaris may use $LD_LIBRARY_PATH_64
93ncurses-5.6/misc/shlib-69-#
94ncurses-5.6/misc/shlib-70-CDPATH=
95--
96ncurses-5.6/misc/shlib-87-done
97ncurses-5.6/misc/shlib-88-
98ncurses-5.6/misc/shlib-89-# Set the environment variable.
99ncurses-5.6/misc/shlib-90-if test -n "$q" ; then
100ncurses-5.6/misc/shlib-91-      system=
101ncurses-5.6/misc/shlib-92-      if test -n "$SHLIB_HOST" ; then
102ncurses-5.6/misc/shlib-93-              system="$SHLIB_HOST"
103ncurses-5.6/misc/shlib-94-      elif test -n "$PATHEXT" ; then
104ncurses-5.6/misc/shlib-95-              system=cygwin
105ncurses-5.6/misc/shlib-96-      elif test -n "$LIBRARY_PATH" ; then
106ncurses-5.6/misc/shlib:97:              system=beos
107ncurses-5.6/misc/shlib-98-      elif test -n "$DYLD_LIBRARY_PATH" ; then
108ncurses-5.6/misc/shlib-99-              system=darwin
109ncurses-5.6/misc/shlib-100-     elif test -n "$LD_LIBRARY_PATH"; then
110ncurses-5.6/misc/shlib-101-             system=unix
111ncurses-5.6/misc/shlib-102-     else
112ncurses-5.6/misc/shlib-103-             for r in $q/*.*
113ncurses-5.6/misc/shlib-104-             do
114ncurses-5.6/misc/shlib-105-                     if test -f "$r"
115ncurses-5.6/misc/shlib-106-                     then
116ncurses-5.6/misc/shlib-107-                             case $r in
117--
118ncurses-5.6/misc/shlib-114-                             esac
119ncurses-5.6/misc/shlib-115-                     fi
120ncurses-5.6/misc/shlib-116-                     test -n "$system" && break
121ncurses-5.6/misc/shlib-117-             done
122ncurses-5.6/misc/shlib-118-     fi
123ncurses-5.6/misc/shlib-119-
124ncurses-5.6/misc/shlib-120-     case .$system in
125ncurses-5.6/misc/shlib-121-     .cygwin*)
126ncurses-5.6/misc/shlib-122-             variable=PATH
127ncurses-5.6/misc/shlib-123-             ;;
128ncurses-5.6/misc/shlib:124:     .beos*)
129ncurses-5.6/misc/shlib-125-             variable=LIBRARY_PATH
130ncurses-5.6/misc/shlib-126-             ;;
131ncurses-5.6/misc/shlib-127-     .darwin*)
132ncurses-5.6/misc/shlib-128-             variable=DYLD_LIBRARY_PATH
133ncurses-5.6/misc/shlib-129-             ;;
134ncurses-5.6/misc/shlib-130-     *)
135ncurses-5.6/misc/shlib-131-             variable=LD_LIBRARY_PATH
136ncurses-5.6/misc/shlib-132-             ;;
137ncurses-5.6/misc/shlib-133-     esac
138ncurses-5.6/misc/shlib-134-
139--
140ncurses-5.6/misc/terminfo.src-640-#
141ncurses-5.6/misc/terminfo.src-641-# See ansi.sysk and nansi.sys above.
142ncurses-5.6/misc/terminfo.src-642-nansi.sysk|nansisysk|PC-DOS Public Domain NANSI.SYS with keypad redefined for vi,
143ncurses-5.6/misc/terminfo.src-643-      dch1=\E[1P, dl1=\E[1M, ich1=\E[1@, il1=\E[1L,
144ncurses-5.6/misc/terminfo.src-644-      is2=U4 PC-DOS Public Domain NANSI.SYS with keypad redefined for vi 9-29-86\n\E[;75;8p,
145ncurses-5.6/misc/terminfo.src-645-      use=ansi.sysk,
146ncurses-5.6/misc/terminfo.src-646-
147ncurses-5.6/misc/terminfo.src-647-#### ANSI console types
148ncurses-5.6/misc/terminfo.src-648-#
149ncurses-5.6/misc/terminfo.src-649-
150ncurses-5.6/misc/terminfo.src:650:#### BeOS
151ncurses-5.6/misc/terminfo.src-651-#
152ncurses-5.6/misc/terminfo.src:652:# BeOS entry for Terminal program Seems to be almost ANSI
153ncurses-5.6/misc/terminfo.src:653:beterm|BeOS Terminal,
154ncurses-5.6/misc/terminfo.src-654-      am, eo, mir, msgr, xenl, xon,
155ncurses-5.6/misc/terminfo.src-655-      colors#8, cols#80, it#8, lines#25, ncv#5, pairs#64,
156ncurses-5.6/misc/terminfo.src-656-      bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=^M,
157ncurses-5.6/misc/terminfo.src-657-      csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
158ncurses-5.6/misc/terminfo.src-658-      cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
159ncurses-5.6/misc/terminfo.src-659-      cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
160ncurses-5.6/misc/terminfo.src-660-      dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
161ncurses-5.6/misc/terminfo.src-661-      ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, home=\E[H,
162ncurses-5.6/misc/terminfo.src-662-      hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
163ncurses-5.6/misc/terminfo.src-663-      il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D,
164--
165ncurses-5.6/misc/terminfo.tmp-640-#
166ncurses-5.6/misc/terminfo.tmp-641-# See ansi.sysk and nansi.sys above.
167ncurses-5.6/misc/terminfo.tmp-642-nansi.sysk|nansisysk|PC-DOS Public Domain NANSI.SYS with keypad redefined for vi,
168ncurses-5.6/misc/terminfo.tmp-643-      dch1=\E[1P, dl1=\E[1M, ich1=\E[1@, il1=\E[1L,
169ncurses-5.6/misc/terminfo.tmp-644-      is2=U4 PC-DOS Public Domain NANSI.SYS with keypad redefined for vi 9-29-86\n\E[;75;8p,
170ncurses-5.6/misc/terminfo.tmp-645-      use=ansi.sysk,
171ncurses-5.6/misc/terminfo.tmp-646-
172ncurses-5.6/misc/terminfo.tmp-647-#### ANSI console types
173ncurses-5.6/misc/terminfo.tmp-648-#
174ncurses-5.6/misc/terminfo.tmp-649-
175ncurses-5.6/misc/terminfo.tmp:650:#### BeOS
176ncurses-5.6/misc/terminfo.tmp-651-#
177ncurses-5.6/misc/terminfo.tmp:652:# BeOS entry for Terminal program Seems to be almost ANSI
178ncurses-5.6/misc/terminfo.tmp:653:beterm|BeOS Terminal,
179ncurses-5.6/misc/terminfo.tmp-654-      am, eo, mir, msgr, xenl, xon,
180ncurses-5.6/misc/terminfo.tmp-655-      colors#8, cols#80, it#8, lines#25, ncv#5, pairs#64,
181ncurses-5.6/misc/terminfo.tmp-656-      bel=^G, bold=\E[1m, clear=\E[H\E[J, cr=^M,
182ncurses-5.6/misc/terminfo.tmp-657-      csr=\E[%i%p1%d;%p2%dr, cub=\E[%p1%dD, cub1=^H,
183ncurses-5.6/misc/terminfo.tmp-658-      cud=\E[%p1%dB, cud1=^J, cuf=\E[%p1%dC, cuf1=\E[C,
184ncurses-5.6/misc/terminfo.tmp-659-      cup=\E[%i%p1%d;%p2%dH, cuu=\E[%p1%dA, cuu1=\E[A,
185ncurses-5.6/misc/terminfo.tmp-660-      dch=\E[%p1%dP, dch1=\E[P, dl=\E[%p1%dM, dl1=\E[M,
186ncurses-5.6/misc/terminfo.tmp-661-      ech=\E[%p1%dX, ed=\E[J, el=\E[K, el1=\E[1K, home=\E[H,
187ncurses-5.6/misc/terminfo.tmp-662-      hpa=\E[%i%p1%dG, ht=^I, hts=\EH, ich=\E[%p1%d@, ich1=\E[@,
188ncurses-5.6/misc/terminfo.tmp-663-      il=\E[%p1%dL, il1=\E[L, ind=^J, kbs=^H, kcub1=\E[D,
189--
190ncurses-5.6/ncurses/README.IZ-65-   the change in the value represents only the amount of time spent in
191ncurses-5.6/ncurses/README.IZ-66-   waiting for events, not the amount of time spent bookkeeping;
192ncurses-5.6/ncurses/README.IZ-67-
193ncurses-5.6/ncurses/README.IZ-68-*) the return KEY_EVENT of wgetstrn_event() means that the output
194ncurses-5.6/ncurses/README.IZ-69-   string includes the user input typed so far, but the user did not have
195ncurses-5.6/ncurses/README.IZ-70-   a chance to press ENTER (or whatever).  This call should be
196ncurses-5.6/ncurses/README.IZ-71-   repeated (with "shifted" pointer to a buffer, of course) to
197ncurses-5.6/ncurses/README.IZ-72-   complete the input;
198ncurses-5.6/ncurses/README.IZ-73-
199ncurses-5.6/ncurses/README.IZ-74-*) The presence of this extension can be checked via inspecting
200ncurses-5.6/ncurses/README.IZ:75:   #ifdef NCURSES_EVENT_VERSION.  This symbol is not defined on BeOS,
201ncurses-5.6/ncurses/README.IZ:76:   since there is no support for this on BeOS.
202ncurses-5.6/ncurses/README.IZ-77-
203ncurses-5.6/ncurses/README.IZ-78-Known issues:  calls interrupted by KEY_EVENT reset the ESCDELAY
204ncurses-5.6/ncurses/README.IZ-79-timer.  This is not entirely new, since other synthetic events behave
205ncurses-5.6/ncurses/README.IZ-80-the same (see "if (ch >= KEY_MIN)" branch of kgetch()).  However,
206ncurses-5.6/ncurses/README.IZ-81-KEY_EVENT may be generated in a continuous stream (say, when
207ncurses-5.6/ncurses/README.IZ-82-downloading a file), thus this may be more important than with other
208ncurses-5.6/ncurses/README.IZ-83-synthetic keys.  An additional field in window structure which keeps
209ncurses-5.6/ncurses/README.IZ-84-timestamp of the first raw key in the queue may be needed to
210ncurses-5.6/ncurses/README.IZ-85-circumvent this.
211ncurses-5.6/ncurses/README.IZ-86-
212--
213ncurses-5.6/ncurses/tty/lib_twait.c-35-**       lib_twait.c
214ncurses-5.6/ncurses/tty/lib_twait.c-36-**
215ncurses-5.6/ncurses/tty/lib_twait.c-37-**       The routine _nc_timed_wait().
216ncurses-5.6/ncurses/tty/lib_twait.c-38-**
217ncurses-5.6/ncurses/tty/lib_twait.c-39-**       (This file was originally written by Eric Raymond; however except for
218ncurses-5.6/ncurses/tty/lib_twait.c-40-**       comments, none of the original code remains - T.Dickey).
219ncurses-5.6/ncurses/tty/lib_twait.c-41-*/
220ncurses-5.6/ncurses/tty/lib_twait.c-42-
221ncurses-5.6/ncurses/tty/lib_twait.c-43-#include <curses.priv.h>
222ncurses-5.6/ncurses/tty/lib_twait.c-44-
223ncurses-5.6/ncurses/tty/lib_twait.c:45:#ifdef __BEOS__
224ncurses-5.6/ncurses/tty/lib_twait.c-46-#undef false
225ncurses-5.6/ncurses/tty/lib_twait.c-47-#undef true
226ncurses-5.6/ncurses/tty/lib_twait.c-48-#include <OS.h>
227ncurses-5.6/ncurses/tty/lib_twait.c-49-#endif
228ncurses-5.6/ncurses/tty/lib_twait.c-50-
229ncurses-5.6/ncurses/tty/lib_twait.c-51-#if USE_FUNC_POLL
230ncurses-5.6/ncurses/tty/lib_twait.c-52-# if HAVE_SYS_TIME_H
231ncurses-5.6/ncurses/tty/lib_twait.c-53-#  include <sys/time.h>
232ncurses-5.6/ncurses/tty/lib_twait.c-54-# endif
233ncurses-5.6/ncurses/tty/lib_twait.c-55-#elif HAVE_SELECT
234--
235ncurses-5.6/ncurses/tty/lib_twait.c-151-
236ncurses-5.6/ncurses/tty/lib_twait.c-152-#ifdef NCURSES_WGETCH_EVENTS
237ncurses-5.6/ncurses/tty/lib_twait.c-153-    int timeout_is_event = 0;
238ncurses-5.6/ncurses/tty/lib_twait.c-154-    int n;
239ncurses-5.6/ncurses/tty/lib_twait.c-155-#endif
240ncurses-5.6/ncurses/tty/lib_twait.c-156-
241ncurses-5.6/ncurses/tty/lib_twait.c-157-#if USE_FUNC_POLL
242ncurses-5.6/ncurses/tty/lib_twait.c-158-#define MIN_FDS 2
243ncurses-5.6/ncurses/tty/lib_twait.c-159-    struct pollfd fd_list[MIN_FDS];
244ncurses-5.6/ncurses/tty/lib_twait.c-160-    struct pollfd *fds = fd_list;
245ncurses-5.6/ncurses/tty/lib_twait.c:161:#elif defined(__BEOS__)
246ncurses-5.6/ncurses/tty/lib_twait.c-162-#elif HAVE_SELECT
247ncurses-5.6/ncurses/tty/lib_twait.c-163-    static fd_set set;
248ncurses-5.6/ncurses/tty/lib_twait.c-164-#endif
249ncurses-5.6/ncurses/tty/lib_twait.c-165-
250ncurses-5.6/ncurses/tty/lib_twait.c-166-    long starttime, returntime;
251ncurses-5.6/ncurses/tty/lib_twait.c-167-
252ncurses-5.6/ncurses/tty/lib_twait.c-168-    TR(TRACE_IEVENT, ("start twait: %d milliseconds, mode: %d",
253ncurses-5.6/ncurses/tty/lib_twait.c-169-                      milliseconds, mode));
254ncurses-5.6/ncurses/tty/lib_twait.c-170-
255ncurses-5.6/ncurses/tty/lib_twait.c-171-#ifdef NCURSES_WGETCH_EVENTS
256--
257ncurses-5.6/ncurses/tty/lib_twait.c-252-                evl->result_flags |= _NC_EVENT_TIMEOUT_MSEC;
258ncurses-5.6/ncurses/tty/lib_twait.c-253-            }
259ncurses-5.6/ncurses/tty/lib_twait.c-254-        }
260ncurses-5.6/ncurses/tty/lib_twait.c-255-    }
261ncurses-5.6/ncurses/tty/lib_twait.c-256-
262ncurses-5.6/ncurses/tty/lib_twait.c-257-    if (fds != fd_list)
263ncurses-5.6/ncurses/tty/lib_twait.c-258-        free((char *) fds);
264ncurses-5.6/ncurses/tty/lib_twait.c-259-
265ncurses-5.6/ncurses/tty/lib_twait.c-260-#endif
266ncurses-5.6/ncurses/tty/lib_twait.c-261-
267ncurses-5.6/ncurses/tty/lib_twait.c:262:#elif defined(__BEOS__)
268ncurses-5.6/ncurses/tty/lib_twait.c-263-    /*
269ncurses-5.6/ncurses/tty/lib_twait.c:264:     * BeOS's select() is declared in socket.h, so the configure script does
270ncurses-5.6/ncurses/tty/lib_twait.c-265-     * not see it.  That's just as well, since that function works only for
271ncurses-5.6/ncurses/tty/lib_twait.c-266-     * sockets.  This (using snooze and ioctl) was distilled from Be's patch
272ncurses-5.6/ncurses/tty/lib_twait.c-267-     * for ncurses which uses a separate thread to simulate select().
273ncurses-5.6/ncurses/tty/lib_twait.c-268-     *
274ncurses-5.6/ncurses/tty/lib_twait.c-269-     * FIXME: the return values from the ioctl aren't very clear if we get
275ncurses-5.6/ncurses/tty/lib_twait.c-270-     * interrupted.
276ncurses-5.6/ncurses/tty/lib_twait.c-271-     *
277ncurses-5.6/ncurses/tty/lib_twait.c-272-     * FIXME: this assumes mode&1 if milliseconds < 0 (see lib_getch.c).
278ncurses-5.6/ncurses/tty/lib_twait.c-273-     */
279ncurses-5.6/ncurses/tty/lib_twait.c-274-    result = 0;
280--
281ncurses-5.6/ncurses/tty/lib_twait.c-415-    if (result != 0) {
282ncurses-5.6/ncurses/tty/lib_twait.c-416-        if (result > 0) {
283ncurses-5.6/ncurses/tty/lib_twait.c-417-            result = 0;
284ncurses-5.6/ncurses/tty/lib_twait.c-418-#if USE_FUNC_POLL
285ncurses-5.6/ncurses/tty/lib_twait.c-419-            for (count = 0; count < MIN_FDS; count++) {
286ncurses-5.6/ncurses/tty/lib_twait.c-420-                if ((mode & (1 << count))
287ncurses-5.6/ncurses/tty/lib_twait.c-421-                    && (fds[count].revents & POLLIN)) {
288ncurses-5.6/ncurses/tty/lib_twait.c-422-                    result |= (1 << count);
289ncurses-5.6/ncurses/tty/lib_twait.c-423-                }
290ncurses-5.6/ncurses/tty/lib_twait.c-424-            }
291ncurses-5.6/ncurses/tty/lib_twait.c:425:#elif defined(__BEOS__)
292ncurses-5.6/ncurses/tty/lib_twait.c-426-            result = 1;         /* redundant, but simple */
293ncurses-5.6/ncurses/tty/lib_twait.c-427-#elif HAVE_SELECT
294ncurses-5.6/ncurses/tty/lib_twait.c-428-            if ((mode & 2)
295ncurses-5.6/ncurses/tty/lib_twait.c-429-                && (fd = SP->_mouse_fd) >= 0
296ncurses-5.6/ncurses/tty/lib_twait.c-430-                && FD_ISSET(fd, &set))
297ncurses-5.6/ncurses/tty/lib_twait.c-431-                result |= 2;
298ncurses-5.6/ncurses/tty/lib_twait.c-432-            if ((mode & 1)
299ncurses-5.6/ncurses/tty/lib_twait.c-433-                && FD_ISSET(SP->_ifd, &set))
300ncurses-5.6/ncurses/tty/lib_twait.c-434-                result |= 1;
301ncurses-5.6/ncurses/tty/lib_twait.c-435-#endif
302--
303ncurses-5.6/ncurses/tty/tty_update.c-37- *      lib_doupdate.c
304ncurses-5.6/ncurses/tty/tty_update.c-38- *
305ncurses-5.6/ncurses/tty/tty_update.c-39- *      The routine doupdate() and its dependents.
306ncurses-5.6/ncurses/tty/tty_update.c-40- *      All physical output is concentrated here (except _nc_outch()
307ncurses-5.6/ncurses/tty/tty_update.c-41-  *     in lib_tputs.c).
308ncurses-5.6/ncurses/tty/tty_update.c-42- *
309ncurses-5.6/ncurses/tty/tty_update.c-43- *-----------------------------------------------------------------*/
310ncurses-5.6/ncurses/tty/tty_update.c-44-
311ncurses-5.6/ncurses/tty/tty_update.c-45-#include <curses.priv.h>
312ncurses-5.6/ncurses/tty/tty_update.c-46-
313ncurses-5.6/ncurses/tty/tty_update.c:47:#ifdef __BEOS__
314ncurses-5.6/ncurses/tty/tty_update.c-48-#undef false
315ncurses-5.6/ncurses/tty/tty_update.c-49-#undef true
316ncurses-5.6/ncurses/tty/tty_update.c-50-#include <OS.h>
317ncurses-5.6/ncurses/tty/tty_update.c-51-#endif
318ncurses-5.6/ncurses/tty/tty_update.c-52-
319ncurses-5.6/ncurses/tty/tty_update.c-53-#if defined(TRACE) && HAVE_SYS_TIMES_H && HAVE_TIMES
320ncurses-5.6/ncurses/tty/tty_update.c-54-#define USE_TRACE_TIMES 1
321ncurses-5.6/ncurses/tty/tty_update.c-55-#else
322ncurses-5.6/ncurses/tty/tty_update.c-56-#define USE_TRACE_TIMES 0
323ncurses-5.6/ncurses/tty/tty_update.c-57-#endif
324--
325ncurses-5.6/ncurses/tty/tty_update.c-313-       return FALSE;
326ncurses-5.6/ncurses/tty/tty_update.c-314-
327ncurses-5.6/ncurses/tty/tty_update.c-315-    if (SP->_checkfd >= 0) {
328ncurses-5.6/ncurses/tty/tty_update.c-316-#if USE_FUNC_POLL
329ncurses-5.6/ncurses/tty/tty_update.c-317-       struct pollfd fds[1];
330ncurses-5.6/ncurses/tty/tty_update.c-318-       fds[0].fd = SP->_checkfd;
331ncurses-5.6/ncurses/tty/tty_update.c-319-       fds[0].events = POLLIN;
332ncurses-5.6/ncurses/tty/tty_update.c-320-       if (poll(fds, 1, 0) > 0) {
333ncurses-5.6/ncurses/tty/tty_update.c-321-           have_pending = TRUE;
334ncurses-5.6/ncurses/tty/tty_update.c-322-       }
335ncurses-5.6/ncurses/tty/tty_update.c:323:#elif defined(__BEOS__)
336ncurses-5.6/ncurses/tty/tty_update.c-324-       /*
337ncurses-5.6/ncurses/tty/tty_update.c:325:        * BeOS's select() is declared in socket.h, so the configure script does
338ncurses-5.6/ncurses/tty/tty_update.c-326-        * not see it.  That's just as well, since that function works only for
339ncurses-5.6/ncurses/tty/tty_update.c-327-        * sockets.  This (using snooze and ioctl) was distilled from Be's patch
340ncurses-5.6/ncurses/tty/tty_update.c-328-        * for ncurses which uses a separate thread to simulate select().
341ncurses-5.6/ncurses/tty/tty_update.c-329-        *
342ncurses-5.6/ncurses/tty/tty_update.c-330-        * FIXME: the return values from the ioctl aren't very clear if we get
343ncurses-5.6/ncurses/tty/tty_update.c-331-        * interrupted.
344ncurses-5.6/ncurses/tty/tty_update.c-332-        */
345ncurses-5.6/ncurses/tty/tty_update.c-333-       int n = 0;
346ncurses-5.6/ncurses/tty/tty_update.c-334-       int howmany = ioctl(0, 'ichr', &n);
347ncurses-5.6/ncurses/tty/tty_update.c-335-       if (howmany >= 0 && n > 0) {
348--
349ncurses-5.6/tack/HISTORY-1-
350ncurses-5.6/tack/HISTORY-2-Current history:
351ncurses-5.6/tack/HISTORY-3-
352ncurses-5.6/tack/HISTORY-4-2006/11/25           Fixes for ncurses tparm() prototype.
353ncurses-5.6/tack/HISTORY-5-2006/06/24   1.02    Modify to support ncurses extended string capabilities.
354ncurses-5.6/tack/HISTORY-6-2003/10/18   1.01    Fix some logic in pad.c, improve bce test.
355ncurses-5.6/tack/HISTORY-7-2003/09/20           Modified to allow running from compiled-in terminfo.
356ncurses-5.6/tack/HISTORY-8-2001/10/20           Make menu titles agree with descriptions.
357ncurses-5.6/tack/HISTORY-9-2000/03/04           Fix a few spelling errors
358ncurses-5.6/tack/HISTORY:10:1999/09/04          Minor fix to build/link on BeOS
359ncurses-5.6/tack/HISTORY-11-1999/05/16          Minor fix to build/link on CLIX
360ncurses-5.6/tack/HISTORY-12-1999/05/09          Update to build/link on NeXT
361ncurses-5.6/tack/HISTORY-13-1999/04/17          Update to work with ncurses 5.0 beta1 (TERMTYPE struct)
362ncurses-5.6/tack/HISTORY-14-1999/02/07          Build with ncurses 4.2 981219 (renamed function)
363ncurses-5.6/tack/HISTORY-15-1998/01/09  1.00    First release under GPL
364ncurses-5.6/tack/HISTORY-16-1997/12/24  0.02    First version that requires ncurses
365ncurses-5.6/tack/HISTORY-17-1997/10/29  0.01    Second beta release to the ncurses mailing list.
366ncurses-5.6/tack/HISTORY-18-1997/10/06  0.00    First beta release to the ncurses mailing list.
367ncurses-5.6/tack/HISTORY-19-
368ncurses-5.6/tack/HISTORY-20-Ancient history:    TACK -- the terminfo action checker
369--
370ncurses-5.6/tack/sysdep.c-27-#ifdef HAVE_CONFIG_H
371ncurses-5.6/tack/sysdep.c-28-#include <ncurses_cfg.h>
372ncurses-5.6/tack/sysdep.c-29-#endif
373ncurses-5.6/tack/sysdep.c-30-#include <signal.h>        /* include before curses.h to work around glibc bug */
374ncurses-5.6/tack/sysdep.c-31-
375ncurses-5.6/tack/sysdep.c-32-#include <tack.h>
376ncurses-5.6/tack/sysdep.c-33-
377ncurses-5.6/tack/sysdep.c-34-#include <term.h>
378ncurses-5.6/tack/sysdep.c-35-#include <errno.h>
379ncurses-5.6/tack/sysdep.c-36-
380ncurses-5.6/tack/sysdep.c:37:#if defined(__BEOS__)
381ncurses-5.6/tack/sysdep.c-38-#undef false
382ncurses-5.6/tack/sysdep.c-39-#undef true
383ncurses-5.6/tack/sysdep.c-40-#include <OS.h>
384ncurses-5.6/tack/sysdep.c-41-#endif
385ncurses-5.6/tack/sysdep.c-42-
386ncurses-5.6/tack/sysdep.c-43-#if HAVE_SELECT
387ncurses-5.6/tack/sysdep.c-44-#if HAVE_SYS_TIME_H && HAVE_SYS_TIME_SELECT
388ncurses-5.6/tack/sysdep.c-45-#include <sys/time.h>
389ncurses-5.6/tack/sysdep.c-46-#endif
390ncurses-5.6/tack/sysdep.c-47-#if HAVE_SYS_SELECT_H
391--
392ncurses-5.6/tack/sysdep.c-335-  /* the following loop has to be tuned for each computer */
393ncurses-5.6/tack/sysdep.c-336-  for (j = 0; j < 1000; j++) {
394ncurses-5.6/tack/sysdep.c-337-          ioctl(fileno(stdin), FIONREAD, &i);
395ncurses-5.6/tack/sysdep.c-338-          if (i)
396ncurses-5.6/tack/sysdep.c-339-                  return i;
397ncurses-5.6/tack/sysdep.c-340-  }
398ncurses-5.6/tack/sysdep.c-341-  return i;
399ncurses-5.6/tack/sysdep.c-342-}
400ncurses-5.6/tack/sysdep.c-343-
401ncurses-5.6/tack/sysdep.c-344-#else
402ncurses-5.6/tack/sysdep.c:345:#if defined(__BEOS__)
403ncurses-5.6/tack/sysdep.c-346-int
404ncurses-5.6/tack/sysdep.c-347-char_ready(void)
405ncurses-5.6/tack/sysdep.c-348-{
406ncurses-5.6/tack/sysdep.c-349-  int n = 0;
407ncurses-5.6/tack/sysdep.c-350-  int howmany = ioctl(0, 'ichr', &n);
408ncurses-5.6/tack/sysdep.c-351-  return (howmany >= 0 && n > 0);
409ncurses-5.6/tack/sysdep.c-352-}
410ncurses-5.6/tack/sysdep.c-353-#else
411ncurses-5.6/tack/sysdep.c-354-#define char_ready() 1
412ncurses-5.6/tack/sysdep.c-355-#endif

Download in other formats:

  • Original Format

Trac Powered

Powered by Trac 0.13dev-r10686
By Edgewall Software.

Visit the Trac open source project at
http://trac.edgewall.org/