151 Commits

Author SHA1 Message Date
William McBrine
d75af9836e Table markdown for "Portability" sections 2025-02-18 22:37:31 -05:00
William McBrine
9f2c806e65 Dynamically allocate atrtab. 2019-09-19 04:07:07 -04:00
William McBrine
d727feea46 Dynamically allocate the keyboard buffer; consolidate magic numbers. 2019-09-17 16:46:39 -04:00
William McBrine
e6d46d21e7 Dynamically allocate the ungetch buffer, and resize it to accomodate the
full size of a PDC_getclipboard() paste.
2019-09-17 14:33:59 -04:00
William McBrine
f294596357 Redundant code; on resize, move the cursor just enough to keep it
onscreen, instead of resetting it.
2019-09-15 08:22:01 -04:00
William McBrine
2048b6b93e Removed meaningless argc/argv passing for non-X11 ports; made initscr()
the core routine and Xinitscr() the wrapper, as it should be.
2019-09-15 02:01:15 -04:00
William McBrine
dcc68db1fd To match the change in PDC_scr_open(), free SP in delscreen() rather
than PDC_scr_free().
2019-09-11 10:02:57 -04:00
William McBrine
492b402134 More common code now. 2019-09-10 19:14:58 -04:00
William McBrine
7c72915336 Universal select/copy, first pass. Needs a little tweaking still. 2019-08-22 08:11:00 -04:00
William McBrine
c18d86d4a2 save_key_modifiers isn't useful -- they can always be saved. A pseudo-
prototype is retained for backwards compatibility.
2019-08-05 02:26:52 -04:00
William McBrine
f5886b69c7 ... and finally (for now), this. To Do: more testing. 2019-08-04 12:19:35 -04:00
William McBrine
f5c844fcdb this too 2019-08-04 11:35:26 -04:00
William McBrine
9ce10d9a16 and even this 2019-08-04 00:18:12 -04:00
William McBrine
74dba12aef and this 2019-08-03 23:22:59 -04:00
William McBrine
690f11dc8d also this 2019-08-03 22:42:35 -04:00
William McBrine
e9ae8dd303 This makes more sense here. 2019-08-03 21:59:45 -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
ac3bd5ee12 Add a PDC_VERSION flag for RGB. 2019-01-22 19:31:53 -05:00
William McBrine
9b493204fb PDC_VERSION and PDC_get_version(), to provide run-time version info.
Suggestion of Simon Sobisch, inspired by Bill Gray and SDL_VERSION.
2019-01-20 17:54:46 -05:00
William McBrine
e2900296b6 These functions have done nothing for 20 years; I think it's safe to say
they never will.
2019-01-20 13:48:52 -05:00
William McBrine
402441b9bf Use __DATE__ for curses_version() instead of hardwiring the year. I'm
not sure this is ideal, either.
2019-01-06 05:45:11 -05:00
William McBrine
af16a73b89 More detailed version numbering, partly after Simon Sobisch; replace
hardwired version numbers elsewhere with these.
2019-01-06 02:16:34 -05:00
William McBrine
1ddcff4428 Updated for 3.7. 2018-12-31 17:13:36 -05:00
Stefan Reinauer
3091c8d99b libpayload: Fix missing prototype warning for Xinitscr()
Xinitscr is only used internally in PDCurses, unless XCURSES
is defined. This patch fixes a warning that is produced because
of that.

Change-Id: I211f75717276cf028e0b435f328d1687d3536eb7
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/2907
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
2018-12-11 19:08:24 +01:00
William McBrine
b28d5ce962 Updated for 3.6. 2018-02-12 22:53:38 -05:00
William McBrine
f6f7f1b795 Warning suppression -- also easier to read. 2018-02-12 14:06:14 -05:00
William McBrine
1e7b28eca1 Obsolete comment. 2018-02-10 12:36:38 -05:00
William McBrine
97d32e7dce Updated version number. 2018-01-12 12:33:57 -05:00
William McBrine
54949fe3bf Per Microsoft recommendations, "Win32" is passe. (Not changing filenames
yet to avoid problems.)
2017-12-21 16:14:02 -05:00
William McBrine
9fc059fedc Spacing; some more appropriate integer types; spelling. After Bill Gray. 2017-12-11 10:49:03 -05:00
William McBrine
4a9831a969 More doc corrections. 2017-12-06 22:11:40 -05:00
William McBrine
ae32ac4888 Updated resize_term() documentation. (SDL, overdue, and Win32 user, new.) 2017-12-06 21:48:21 -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
13fc553871 More documentation updates. 2007-12-05 19:30:34 +00:00
William McBrine
f190820cfb Updated version number. No, 3.4 is not necessarily imminent. But I'm
giving up on using the build number for smaller increments than the
version number.
2007-11-07 23:33:07 +00:00
William McBrine
d4548b432d Revised documentation; changed isendwin() so it won't crash after
delscreen(). Lack of delscreen() documentation reported by Colin
MacIntyre.
2007-10-13 19:53:49 +00:00
William McBrine
cbe7a94b18 True double-buffering, ncurses-style. Could use more testing... Where
the wnoutrefresh() changes affected mainly touchwin(), this will affect
mainly stacked windows using touchwin(). It could be slower in other
cases, particularly when using a real hardware text screen. So, I'm
still going back and forth on this.
2007-07-09 06:24:42 +00:00
William McBrine
5def5d5771 Moved the cores of pair_content() and init_pair(), and everything
related to pdc_atrtab, to platform directories. This was arguably the
last area of code in the pdcurses directory that embodied platform-
specific knowledge. It does result in some duplicated code, but allows a
much cleaner setup for the platforms that don't directly use PC-style
attributes (currently X11 and SDL).
2007-07-03 00:11:47 +00:00
William McBrine
cb5d227748 Updated version number. 2007-06-17 18:48:54 +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
30b7082447 Hmm, let's make this work the way it's documented: set SP->audible per
platform.
2007-06-12 05:41:22 +00:00
William McBrine
9ce9ab28f6 A few more consts. 2007-05-16 07:16:31 +00:00