54 Commits

Author SHA1 Message Date
William McBrine
d75af9836e Table markdown for "Portability" sections 2025-02-18 22:37:31 -05:00
William McBrine
436e3da700 Doc fixes 2023-05-27 05:22:44 -04:00
Markus Uhlin
d086665eb5 Added wgetscrreg() 2022-11-16 23:24:48 +01:00
Markus Uhlin
dc0449b1ae Added is_idcok() and is_idlok() 2020-12-15 00:05:02 +01:00
Markus Uhlin
50774dd21f Updated "Return Value" 2020-12-12 22:22:50 +01:00
Markus Uhlin
ea1cc3e1aa Added function is_scrollok() 2020-12-12 22:15:34 +01:00
Markus Uhlin
5cee291f92 Added function is_immedok() 2020-12-12 22:03:05 +01:00
Markus Uhlin
0561ac239b Added function is_cleared() 2020-12-12 21:48:12 +01:00
William McBrine
f4c2058bdd Most curses functions assumed a valid SP (i.e. that initscr() had
already been called). Now, instead, they return ERR or other appropriate
values. Part 1. Suggestion of Simon Sobisch.
2019-06-30 20:07:40 -04:00
William McBrine
3c67ce4471 Adding the NetBSD functions reminded me how outdated the "Portability"
tables were. Hopefully this is more useful, if still questionable.
2019-05-12 18:35:47 -04:00
William McBrine
a0b7d587c1 Inconsistent line wrap length and spacing in "man page" descriptions. 2019-05-11 20:34:11 -04:00
William McBrine
610d0eda37 Some functions from ncurses / NetBSD curses: is_keypad(), is_leaveok(),
is_pad(), set_tabsize(). Code by Karthik Kumar Viswanathan.
2019-05-11 07:20:17 -04:00
William McBrine
4a15672341 Rebranding -- it's still public domain, but I'll no longer refer to it
as "Public Domain Curses". (Outside of the official docs, no one ever
did, anyway.)
2019-01-30 15:32:02 -05:00
William McBrine
cb7d82fc4b Man page sections reformatted slightly, markdown-style. 2016-01-07 10:44:04 -05:00
William McBrine
51fec8ee32 Id tags aren't useful with git. 2015-06-20 09:06:43 -04:00
William McBrine
b73c2efb21 Some more documentation cleanup. 2008-07-14 12:22:13 +00:00
William McBrine
649d5171fa Abandoning tabs, and changing indent to 4 spaces -- part 1. 2008-07-13 16:08:18 +00:00
William McBrine
bdc31fad97 Removed maintain.er and boilerplate; integrated contents into README;
replaced boilerplate with "Public Domain Curses", which covers both the
name and the (lack of) copyright status. :-)
2008-07-13 06:36:32 +00:00
William McBrine
13fc553871 More documentation updates. 2007-12-05 19:30:34 +00:00
William McBrine
a0ad37d420 Oops... can't have RCSID before including the file where the macro is
defined!
2007-06-14 13:50:28 +00:00
William McBrine
8f80d32951 Changed RCSIDs to not end with a semicolon -- avoids warnings with
-pedantic. Also, as long as I'm changing them, I decided to move them
all to just below the boilerplate, to have them in a more consistent
location.
2007-06-14 13:36:36 +00:00
William McBrine
3d8eea8473 Documentation: Removed the distinction between "X/Open Description" and
"PDCurses Description"; various cleanup. The new policy is simply to
describe PDCurses' behavior; if anyone wants the canonical descriptions
(which these weren't, anyway), they can refer to X/Open directly.
2007-03-16 06:33:45 +00:00
William McBrine
65754acd63 Spacing -- made man page header consistent. 2006-12-25 14:27:13 +00:00
William McBrine
35594674dd Merged some redundant error checks. 2006-11-05 04:23:36 +00:00
William McBrine
9790346bd3 Replaced "win == (WINDOW *)NULL" with "!win", etc. These were not used
consistently and, IMHO, are no more clear. To Do: Platform dirs.
2006-11-05 03:57:26 +00:00
William McBrine
a3d640534b Updated portability charts (removed "'88", flagged functions as Y in
X/Open column if they're in the current (1996) standard); removed
comments about macro implementation where no longer applicable.
2006-10-23 05:03:31 +00:00
William McBrine
1914c543c0 Dropped the "No distribution..." clause. It was widely violated anyway.
I only kept it in 2.8, rewriting it to mention trademark, to make it
clear that PDCurses was always public domain, despite the seemingly
contradictory wording in the boilerplate, and that trademark (not
copyright) was the only basis for restricting distribution in this case.
But I don't want to be like the Mozilla Foundation.
2006-10-15 02:42:26 +00:00
William McBrine
b228b60eea Instead of defining CURSES_LIBRARY to include curspriv.h, include
curses.h (and define CURSES_LIBRARY) from curspriv.h. Also created
pdcwin.h, and moved some things there.
2006-10-08 20:54:30 +00:00
William McBrine
7f5298a7fa Removed most macros -- all those covered by NOMACROS, plus get..y and
get..x. Also added getcury() and getcurx() functions. There were
numerous problems with the macros (poor maintainability, interference
with namespaces, bloated executables, etc.), and only one supposed
advantage: performance. Testing (even on a simulated 4 MHz machine) does
not show this advantage. The function call overhead is trivial compared
to other bottlenecks. The only other reason to keep them would be
tradition... and the faint possibility that someone, somewhere is
ifdef'ing off them (the same problem that undid my attempted enums). But
in this case, I really doubt it. Note that Larsson's Pccurses didn't use
the macros; comments by Frotz suggest he added them to conform to the
standard, but they aren't required by issue 4 version 2 (while the
functions are).
2006-09-24 21:22:33 +00:00
William McBrine
168e66f674 These functions are never defined as macros. 2006-08-20 21:48:36 +00:00
William McBrine
9f2e384fae ...or now it will, anyway. 2006-07-23 18:57:14 +00:00
William McBrine
9c0ce700b2 Use the standard curs_set() instead of PDC_cursor_*(), which was never
implemented for X. There's some controversy whether leaveok() is really
supposed to turn off the cursor... but if it's OK to leave it anywhere,
then why not leave it off the screen? Also, with this change, turning
off leaveok() will always do curs_set(1), regardless of the previous
state of the cursor.
2006-07-23 18:56:28 +00:00
William McBrine
34f6b6d2ae Useless comments. 2006-07-15 15:38:24 +00:00
William McBrine
8453b89ce2 New RCSID macro for RCS id strings; also added RCS id comments to the
remaining .h files. Note that the RCS ids are now static per module and
all have the same name.
2006-03-29 20:06:41 +00:00
William McBrine
723791050e _use_idc and _use_idl have never been used in PDCurses, although the
values could be set by idlok() and idcok(). Nor do they make sense in
the PDCurses context. The only reason to consider retaining them is
compatibility -- HPUX, Solaris and Tru64 curses all have them. But
NCurses and BSD don't; and per the standard, the WINDOW struct should be
opaque, so it shouldn't matter. idlok() and idcok(), by contrast, must
be retained, although they do nothing.
2006-03-25 00:30:36 +00:00
William McBrine
e5921a8c88 Formatting -- mainly shortening the man-start and man-end lines to match
the boilerplate box.
2006-02-23 01:46:54 +00:00
William McBrine
aff031cf7b New format for the boilerplate; other formatting. Yes, I'm probably
spending too much time on this.
2006-02-22 06:09:47 +00:00
William McBrine
6e07b01950 Simplified and (hopefully) clarified the boilerplate. 2006-02-16 22:59:50 +00:00
William McBrine
b0ecceeae5 Removed PDC_CDECL. It was used only in Watcom/Win32, and that, only in
2.7 (it was commented out previously). I tried all combinations of the
supported Win32 compilers, and could not get any one to build binaries
against another's libraries, except LCC against MSVC libs (even the
reverse didn't work) -- and that didn't even involve cdecl. It's
possible this could be made to work, but clearly it will involve a lot
more than just PDC_CDECL. Meanwhile, it's... well, really ugly. So I'm
dumping it, and just advise you to build PDCurses with the same compiler
you use to build your app -- as far as I can tell, that's the only way
that's ever worked anyway.
2006-02-08 17:40:33 +00:00
William McBrine
57b7cd5403 Inclusion of config.h no longer needed here. 2006-02-06 01:13:18 +00:00
William McBrine
5b51ddc484 Made nonl() and nl() conform to the standard behavior; moved them from
outopts to inopts.
2006-02-04 02:34:00 +00:00
William McBrine
5a9c907701 Spacing on "Portability" sections. To Do: Update these for X/Open '96. 2006-01-30 12:17:18 +00:00
William McBrine
f370f911cc "const" on rcsid tag strings, and break them after the equal sign to
keep them within 80 chars. Added rcsid to the X modules.
2006-01-30 02:10:55 +00:00
William McBrine
62b6ff87e3 Removed lines of asterisks from function headers; made spacing more
consistent; minor code cleanups.
2006-01-28 19:31:00 +00:00
William McBrine
1ebfbe37ef Removed non-ANSI prototypes and HAVE_PROTO. 2006-01-28 16:53:26 +00:00
William McBrine
b00304ab9f More boilerplate reformatting. 2006-01-28 15:01:41 +00:00
William McBrine
7b00053f56 Formatting, redundant code. 2006-01-27 16:18:00 +00:00
William McBrine
9e896cfa98 Bogus return values, since these are now void. 2006-01-26 19:44:39 +00:00
William McBrine
88218055ce Per the standard, idcok() and immedok() return void. Why the difference
between these and, say, idlok()? Beats me.
2006-01-26 18:07:08 +00:00
William McBrine
a611ccb3e5 Eliminated some redundant code; minor formatting changes. Also, some
routines accessed window structures in their variable declarations,
_before_ checking for a NULL window pointer.
2006-01-13 01:17:59 +00:00