63 Commits

Author SHA1 Message Date
William McBrine
d75af9836e Table markdown for "Portability" sections 2025-02-18 22:37:31 -05: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
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
06f3d4e702 Added SP->termattrs and PDC_set_bold(). termattrs() is actually useful
now. The main goal here is to allow A_BOLD to select *either* high
intensity color (the old behavior) *or* a genuine bold font (the new
option for SDL-TTF and X11), but not both at once; and also to
facilitate similar choice with A_BLINK in the future. (High-intensity
color can still be combined with bold fonts by directly selecting one of
the 8-15 colors.) A_ITALIC is also half-covered, but since A_INVIS is
kind of useless, I've omitted PDC_set_italic(). To Do: Test everywhere;
more docs.
2018-01-01 09:36:58 -05:00
William McBrine
cb7d82fc4b Man page sections reformatted slightly, markdown-style. 2016-01-07 10:44:04 -05:00
William McBrine
4ec7f0f326 Avoid "discards const" warnings in termname() -- return a static buffer,
as documented.
2015-11-12 13:28:38 -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
0cbcc4d3c9 Added the global string "ttytype", per other curses implementations, for
compatibility with old BSD curses. Also eliminated the "MONO, COLOR" and
size info from longname(), partly because it's now initialized only at
startup (ignoring resizing), and partly because it was useless anyway.
2007-04-13 04:28:52 +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
7ce164f026 No underscore. 2006-11-05 05:38:47 +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
f3b0d01e62 Portability charts for attr_t functions. To Do: Complete documentation. 2006-10-23 06:09:36 +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
ca27a996b0 Brought back PDC_sysname(), in a new form. This eliminates the last
platform ifdefs from curspriv.h -- the only ones remaining are in
curses.h.
2006-09-25 06:34:41 +00:00
William McBrine
168e66f674 These functions are never defined as macros. 2006-08-20 21:48:36 +00:00
William McBrine
34f6b6d2ae Useless comments. 2006-07-15 15:38:24 +00:00
William McBrine
ab0f0daa75 Comments. 2006-07-15 15:15:37 +00:00
William McBrine
f8c27befff Dropped PDC_sysname(), and with it, the reporting of the adapter type in
DOS and OS/2. Now the system name is defined in curspriv.h.
2006-07-15 15:13:40 +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
524b6ef51c Moved the core of longname() to the platform directories. To Do: Do we
really need the card info? Everything's VGA now; it's not accurate in an
OS/2 window; it's never been available under what are now the main
platforms; and it's the kind of thing that curses is supposed to shield
you from anyway. Does anyone _use_ this info?
2006-07-07 04:27:44 +00:00
William McBrine
487d553f38 INT_MAX is good enough as the only return from baudrate(). (Previously
it was used everywhere except in BIOS mode in DOS. This allows me to
remove the ifdef.)
2006-07-06 23:57:27 +00:00
William McBrine
21d84f0163 The wide-character functions shouldn't really be dependent on the
UNICODE define (though they're unlikely to do anything useful without
it). However, they're still dependent on CHTYPE_LONG, since without it,
A_CHARTEXT is only 8 bits. To Do: Hmm...
2006-07-02 22:03:02 +00:00
William McBrine
b7e5a15e81 Added term_attrs(), and stubs for vid_attr() and vid_puts(). 2006-06-19 03:21:47 +00:00
William McBrine
986c7a296c Added useless erasewchar() and killwchar(), per the standard; updated
build number.
2006-06-18 21:13:38 +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
61b5c857a4 Made "direct_video" DOS-only. 2006-03-27 04:35:41 +00:00
William McBrine
eace49d475 Updated comments. 2006-03-20 23:49:44 +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
96aa1f5910 Formatting. 2006-02-10 17:55:28 +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
dbee52e1ac New logic for termname() and longname(): termname() always returns
"pdcurses"; longname() returns "PDCurses for [platform] [adapter]
[COLOR/MONO]-YxX" (adapter is only defined for DOS and OS/2). This is
the first time these functions return _anything_ in Win32.
2006-02-07 20:16:52 +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