50 Commits

Author SHA1 Message Date
William McBrine
d75af9836e Table markdown for "Portability" sections 2025-02-18 22:37:31 -05: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
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
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
65c53f035a Move man page comment blocks to just after the RCSID. 2007-06-14 14:11:31 +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
c56c87b597 Pass through attribute when insch()ing control characters -- same change
as for addch() earlier.
2006-12-29 08:50:51 +00:00
William McBrine
65754acd63 Spacing -- made man page header consistent. 2006-12-25 14:27:13 +00:00
William McBrine
4234603525 mvinsrawch(), mvwinsrawch() -- same. 2006-12-18 21:47:40 +00:00
William McBrine
71d91852a8 One more stab at acs_map[]. I think I've got it this time. Also, made
addrawch() etc. into real functions (necessary for this implementation
of acs_map[], but I was planning on it anyway), and finally got rid of
PDC_putctty(). The downside of this implementation (apart from the
wasted space and slightly reduced speed) is that A_ALTCHARSET is sort of
doing double duty -- indicating passthrough for characters below space,
plus delete, while actually mapping to an alternate character set for
a-z and a few others. However, this is basically what ncurses does
(did?), too. (And of course, the upside is that you no longer have to
define PDC_WIDE to get proper ACS chars when linking against a library
built with PDC_WIDE.)
2006-12-16 17:14:54 +00:00
William McBrine
88ee8571f9 A proper winsch() -- it wasn't handling the "special" characters
correctly before. This also lets me finally chuck PDC_chadd() (or
rather, change PDC_chadd() to waddch() and chuck the wrapper). To Do:
Make _attr_passthru() external and use it here?
2006-11-07 16:32:14 +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
ac9676b1dd PDC_chadd() now sets xlat internally; and A_ALTCHARSET is now preserved. 2006-11-03 14:08:10 +00:00
William McBrine
b4332204bf Made PDC_chadd() private; consigned PDC_chins() to oblivion. 2006-11-03 13:41:14 +00:00
William McBrine
3b815eadbb Prototypes and portability charts for wide-character functions. To Do:
Full documentation.
2006-10-23 05:46:32 +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
fb1b2d1a93 Moved PDC_chins() to insch.c. 2006-08-21 17:49:27 +00:00
William McBrine
2755326c1b Mistaken duplication of echochar() and wechochar() descriptions here. 2006-08-20 21:51:32 +00:00
William McBrine
168e66f674 These functions are never defined as macros. 2006-08-20 21:48:36 +00:00
William McBrine
6f631386ba Changed insch() family to use winsch() as core instead of PDC_chins();
after a similar change to addch.c.
2006-07-29 23:17:03 +00:00
William McBrine
34f6b6d2ae Useless comments. 2006-07-15 15:38:24 +00:00
William McBrine
ac5a012ca1 USE_WIDE -> PDC_WIDE... let's minimize our "namespace pollution". 2006-07-12 16:19:57 +00:00
William McBrine
c16da2ea97 The last wide character functions (the ones for input) present a
problem: They use wint_t rather than wchar_t. wchar_t is defined in C89,
but wint_t is only in Addendum 1, from '95. I could typedef wint_t
myself, but that seems like a bad idea for many reasons. So: Create a
new ifdef, USE_WIDE, and define it only for Win32 and X. That also saves
the overhead in DOS and OS/2, but it means that the base build reqs for
Win32 and X are even more recent. I doubt this is the final solution.
2006-07-12 05:19:32 +00:00
William McBrine
18bf5f50a4 cchar_t typedef and functions, and WACS_* defines. This is a simplistic
implementation, with exactly one wchar_t per cchar_t; the only
characters it handles properly are those that are one column wide.
However, the X/Open spec is vague enough that this may actually be a
conforming implementation. To Do: Document; test; and (long term) make
it work the way it's really supposed to.
2006-07-09 22:48:16 +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
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
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
39d3ea464e Formatting. 2006-01-28 12:52:36 +00:00
William McBrine
ecdbfeb380 Reversing myself -- I had changed all move()'s to wmove(stdscr) (and
some already were that way), but it's no more direct, and move() is one
less parameter.
2006-01-14 06:42:03 +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
William McBrine
ec5a8f3efb Mostly formatting. Removed some cruft and dead code. Fixed a few minor
bugs. Hopefully didn't introduce any. :-)
2006-01-06 10:32:16 +00:00
William McBrine
1514521e2c Replaced "if (trace_on) PDC_debug()" calls and surrounding ifdefs with
PDC_LOG() macro, just for neatness' sake. (First post-2.7 change.)
2006-01-03 07:34:43 +00:00
Mark Hessling
6b507fc980 Initial revision 2001-01-10 08:31:57 +00:00