72 Commits

Author SHA1 Message Date
William McBrine
d75af9836e Table markdown for "Portability" sections 2025-02-18 22:37:31 -05:00
William McBrine
759008e149 Markdown block indentation 2025-02-18 17:40:19 -05:00
William McBrine
87abd9c6f8 SP checks for slk. More to do here. 2019-07-02 06:41:47 -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
f6f7f1b795 Warning suppression -- also easier to read. 2018-02-12 14:06:14 -05:00
William McBrine
eb87282857 Remove all trailing spaces. 2018-01-13 22:36:58 -05:00
William McBrine
54f4339ac3 Misaligned soft-label keys in 4-4-4 mode. Reported by Werner Wenzel. 2017-12-22 17:23:37 -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
c8c0e539e6 Ensure zero-termination from PDC_wcstombs(). 2008-07-13 09:07:24 +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
553f517f68 Document slk_wlabel(). To Do: The slk functions are poorly described. 2007-06-22 10:01:10 +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
85698d15e4 Digital Mars doesn't like empty for loops. 2007-05-15 18:36:58 +00:00
William McBrine
edbac8194c Since UTF-8 locale support is broken in Windows, here's a way to use it
anyway: define PDC_FORCE_UTF8 when compiling. (Of course it also works
for X11.) To Do: Set it up for the makefiles.
2007-04-23 23:55:16 +00:00
William McBrine
46037061b0 Bounds-checking for the trailing-spaces strip (oops). I'm going back and
forth on the whole thing... it's clear to me that the real intent of the
standard is just that the labels not be returned in their padded or
justified form; spaces passed in by the user need not be covered, and
perhaps should not be.
2007-04-21 01:52:53 +00:00
William McBrine
229d5e4292 Per X/Open, strip leading and trailing spaces from slk labels. (X/Open
specifies this in terms of the return value from slk_label(), but it's
implemented here via slk_[w]set().) Reported by Alexey Miheev (about
ncurses, which didn't strip trailing spaces -- but PDCurses didn't strip
either).
2007-04-19 18:03:16 +00:00
William McBrine
bf3ea3ea14 enums make more sense here. 2007-04-18 02:26:19 +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
3d54b06eaa Made slk_set() and slk_label() support multibyte strings; added logical
extension, slk_wlabel().
2007-01-18 05:33:23 +00:00
William McBrine
65754acd63 Spacing -- made man page header consistent. 2006-12-25 14:27:13 +00:00
William McBrine
dbc0c9e242 Return ERR on calloc() failure; reset labels to ensure ERR return of
other slk functions.
2006-11-02 16:07:18 +00:00
William McBrine
b21d3fcbcd Changed the function pointer PDC_initial_slk etc. to a straight call to
PDC_slk_initialize(). To Do: It seems likely that the function pointer
was an attempt to avoid linking the slk module unless needed, but any
such intent was defeated because PDC_initial_slk was always defined
within the slk module. However, the goal still might be worth
pursuing... it's a tradeoff between the size of the linked code, and
legibility.
2006-11-01 16:12:35 +00:00
William McBrine
df74835e68 Now need stdlib.h, don't need string.h; some misplaced variables. 2006-10-31 15:33:30 +00:00
William McBrine
c12a1f9c6e Range checking. 2006-10-31 14:59:00 +00:00
William McBrine
f8c6a556a6 Dynamic allocation for struct slk -- especially since it's almost four
times as big now.
2006-10-31 14:37:58 +00:00
William McBrine
7aaadb8bb0 Renamed slk_save to slk; moved slk_start_col into slk. 2006-10-31 13:48:46 +00:00
William McBrine
b9f972ccd0 "label_fmt" was confusingly used for two completely different purposes,
as both a function parameter and a global; also, the parameter names
didn't match the ones in the man section.
2006-10-30 10:36:23 +00:00
William McBrine
89ad0d963f Unused variable. 2006-10-30 09:23:53 +00:00
William McBrine
5291fed5c1 A more sensible slk.c -- setting labels and drawing them are cleanly
separated, and slk_wset() works correctly now. Also, slk_clear() removes
the buttons completely, as in ncurses.
2006-10-30 09:08:15 +00:00
William McBrine
b226078f90 More efficient... however, I now realize that any of the functions that
calls _redraw() will mangle any label set by slk_wset(). So, this needs
more work.
2006-10-29 16:17:48 +00:00
William McBrine
6a179b1588 Slightly more efficient. 2006-10-29 16:02:22 +00:00
William McBrine
6632f8520d Implemented slk_wset(). This has the added advantage of eliminating some
OpenBSD warnings by dropping use of strcpy(). :-) To Do: Streamline.
2006-10-29 13:46:06 +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
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
b59c9ba9a6 Static functions should probably not use the PDC_-style names, nor be
listed in the man page. More of these to do.
2006-08-21 16:42:41 +00:00
William McBrine
168e66f674 These functions are never defined as macros. 2006-08-20 21:48:36 +00:00
William McBrine
71966b3c36 Yet more static. 2006-07-31 22:49:07 +00:00
William McBrine
3fd75be9ef Minor tweaks. 2006-07-30 18:57:23 +00:00
William McBrine
c0ba08f053 Simplified PDC_slk_calc(). 2006-07-30 06:12:45 +00:00
William McBrine
c4a6115e78 Moved PDC_slk_calc() prototype to slk.c. 2006-07-16 01:26:23 +00:00
William McBrine
d344b88e7c Added slk_attr_*. 2006-06-19 03:36:38 +00:00