jdc
9614bd680e
Cross reference curses_fileio(3).
...
Bump date.
2008-04-14 21:26:16 +00:00
jdc
51d1151ffe
Document termattrs(), term_attrs(), putwin() and getwin()
2008-04-14 20:41:34 +00:00
jdc
e4b4dc6765
Add new file IO functions.
...
Define DISABLE_WCHAR, so that we can build without HAVE_WCHAR.
2008-04-14 20:41:17 +00:00
jdc
b93705abe5
Add new file IO functions.
2008-04-14 20:40:53 +00:00
jdc
e501372810
File IO functions header file.
2008-04-14 20:40:37 +00:00
jdc
6dbdc40c87
Increment minor for getwin()/putwin() addition.
...
Document fileio.h regeneration.
2008-04-14 20:39:58 +00:00
jdc
4c71b79a6f
File IO functions getwin() and putwin().
...
Should fix PR lib/24928.
2008-04-14 20:38:45 +00:00
jdc
d5966065f3
Header (fileio.h) generation script for file IO functions.
2008-04-14 20:35:23 +00:00
jdc
4dd5a997bc
Add FILEIO ctrace definition.
...
Remove unneeded function.
2008-04-14 20:34:36 +00:00
jdc
619b7f0eeb
Make this compile when HAVE_WCHAR is not defined.
2008-04-14 20:33:59 +00:00
jdc
5b4df340df
Remove unused code.
...
Only change the scrolling region if the window now has fewer rows.
2008-04-14 20:33:41 +00:00
jdc
dfc45432ab
Make __subwin() static.
2008-04-14 20:33:15 +00:00
jdc
e44c226e62
Add extra debugging information.
2008-04-14 20:32:53 +00:00
jdc
afd69f437c
Make this compile when HAVE_WCHAR is not defined.
2008-04-14 19:46:42 +00:00
jdc
35ce34ed43
Don't define HAVE_WCHAR if DISABLE_WCHAR is defined.
...
Pointed out by martin@.
2008-03-24 16:57:28 +00:00
jdc
915ba4ba52
Increment libcurses minor version (termattrs() and term_attrs() added).
2008-03-21 13:43:36 +00:00
jdc
805ac24bda
Add termattrs() and term_attrs().
...
Order the descriptions so that functions handling normal and functions
handling wide attributes are grouped together.
2008-03-21 13:43:17 +00:00
jdc
1ac1993d5c
Add termattrs() and term_attrs().
2008-03-21 13:42:50 +00:00
jdc
56a23c4b24
Add termattrs() and term_attrs().
...
Conditionally define HAVE_WCHAR, so that userland programs can see wide
definitions and functions.
2008-03-21 13:42:39 +00:00
jdc
80b229386d
Add termattrs() and term_attrs() (requested by wiz@).
...
Only allow standout and underline if the terminal can do them.
2008-03-21 13:41:49 +00:00
mrg
b757a71702
only use -Wuninitialized with -O>0.
2008-02-09 02:36:12 +00:00
jdc
7cc6075b0e
Keep pushed-back characters locally. Fixes problems where KEY_* symbols
...
are pushed back. Should fix the arrow keys part of PR pkg/37173.
While we are here, make getch() and get_wch() check for resize immediately,
instead of reading a key, checking for resize and then having to push-back
the just read key.
2007-12-08 18:38:11 +00:00
jdc
ca32a8e578
We don't need to call __init_getch here, as it is called from
...
screen.c:newterm().
2007-11-18 10:01:04 +00:00
jdc
194f45e187
Fix the handling for added carriage return characters.
...
Should fix the "staircase effect" part of PR 36560.
2007-11-08 06:42:22 +00:00
jdc
55f0d59917
Make sure we copy the relevant cell (and not the first cell) for
...
each line that we copy.
We also need to touch the destination window here.
Fixes display bug in atc(6). Bug reported by and fix tested by
David Holland.
2007-11-08 06:39:31 +00:00
jdc
52cd399dde
Make sure we don't shrink windows or sub-windows so that they end up
...
with zero length or height.
2007-11-08 06:34:34 +00:00
jdc
c4eef94666
Only resize curscr, __virtscr and stdscr when the screen is resized.
...
Note the behaviour of sub-windows when the parent window is resized.
Fixes PR pkg/37129.
2007-10-25 20:42:07 +00:00
jdc
542a57c041
Return "-1" for unknown keys and only return NULL for errors.
...
Make the key name string a static buffer. The specification allows this,
so the previous behaviour would leak a small amount of memory, as the
application wouldn't free the returned string.
Fixes one part of PR pkg/37062.
2007-10-25 20:32:40 +00:00
martin
167a3a9d68
Make it build without HAVE_WCHAR
2007-10-06 20:14:41 +00:00
martin
b3fd7f365b
Make the non-WCHAR variant compilable.
2007-10-06 18:31:33 +00:00
jdc
fe324c36e9
Set the column width when changing the background using wbkgd(), otherwise
...
we will see zero width characters in refresh.c:makech().
2007-09-19 22:13:14 +00:00
jdc
260ad27047
We don't need separate #ifdef's for __ALTCHARSET and WA_ALTCHARSET, as they
...
are defined to be the same in curses.h.
2007-09-19 22:00:43 +00:00
jdc
c172664803
Add debugging for the WCHAR cases.
2007-09-19 21:59:37 +00:00
blymn
2b4f2c9caf
Fix a crash caused by having a single NULL character as a string capability.
...
This fix is about the best we can do given the current interfaces. We
could extend the cgetcap(3) interfaces with a function that would return
a character count and handle this in libterm which would provide a more
complete fix and allow a NULL character in a string capability.
2007-08-28 12:28:18 +00:00
jdc
34bea28655
Fix resizing bug where the values of LINES and/or COLS changed while we
...
were resizing windows, leading to inconsistencies between the sizes of
stdscr and curscr.
Should fix the curses part of PR lib/36702.
2007-08-27 19:54:29 +00:00
jdc
a39089a88a
Add KEY_RESIZE.
...
Fix use after free().
2007-08-04 08:36:49 +00:00
wiz
ab6c3b4502
Use HTML escapes. Use Ss for subsection. Correct date.
2007-07-15 21:37:55 +00:00
jdc
7e0bb0168c
Emphasise `ncurses'.
2007-07-13 11:16:11 +00:00
jdc
05ea77093a
Note that the additional characters are for ncurses compatibility.
...
Pointed out by Thomas Dickey.
2007-07-13 11:15:33 +00:00
jdc
f0b4a51625
Document line drawing and graphics characters.
2007-07-11 18:45:40 +00:00
jdc
65f3606f46
Add additional line drawing and characters.
...
Pointed out by pooka@.
2007-07-11 18:44:46 +00:00
xtraeme
42154df31a
Do not typedef bool as char, just include stdbool.h. Fixes a build
...
failure with regress/include/okheaders.
Suggestion by mlelstv@ and ok by blymn@.
2007-07-01 10:53:59 +00:00
veego
e4f44a55a6
Fix compile errors on i386 by changing %ld to %zu.
2007-05-29 19:07:19 +00:00
blymn
eaa84a63c0
Change debug handling, now we write debug out iff CURSES_TRACE_FILE
...
has been set in the environment, this prevents people using MKDEBUGLIB
getting more than they bargained for.
Tidied up the debug settings in the Makefile to reflect the above change,
we no longer need to have FULL_DEBUG since nothing is written by default.
2007-05-29 13:20:21 +00:00
blymn
070937be37
Fix some compiler warnings.
...
Remove shadowed variable declarations when DEBUG is defined.
2007-05-29 11:10:55 +00:00
blymn
e124de36d8
Merge in wide curses code done as a Summer of Code project by
...
Ruibiao Qiu.
2007-05-28 15:01:53 +00:00
jdc
3ad888c757
Pull down the following from the wcurses branch:
...
ctrace.c: revision 1.16.2.2
initscr.c: revision 1.27.18.2
Orginal commit message:
Do the debug initialisation only in ctrace.c. Otherwise, it might not
get done, for example, if we start curses with setterm() and not initscr().
2007-01-22 21:14:53 +00:00
jdc
1f221324cf
Add debug "areas" that allow selective debugging by setting the
...
"CURSES_TRACE_MASK" environment variable. Postive vales include
debug areas, negative values exclude them.
2007-01-21 13:25:36 +00:00
blymn
fa0b432b40
Wide curses merge
2007-01-21 11:38:58 +00:00
blymn
17c16404e9
This file originates from the ncurses distribution, thanks to the ncurses people for letting us use it
2007-01-21 11:38:58 +00:00
blymn
5dfe4c8b18
Wide curses merge
2007-01-21 11:38:58 +00:00
hubertf
55ac93d329
Remove more duplicate #includes, and a few spurious whitespaces at EOL
...
From Slava Semushin <slava.semushin@gmail.com>
2007-01-17 23:24:22 +00:00
jdc
beb55bfff9
Handle cases where the application installs a SIGWINCH handler after the
...
curses one is installed by:
1. not reinstalling the curses one after restarting
2. not sending KEY_RESIZE
Also, update the size of curscr, stdscr and __virtscr to match the new
screen size, so that their sizes are always updated.
Fixes the cases where applications call endwin() and then refresh() in
their SIGWINCH handler (i.e. the resizing problems in PR pkg/27777).
2006-08-25 17:04:32 +00:00
jdc
52ef6583f9
Add some more debugging information.
2006-08-23 19:23:55 +00:00
jdc
ed312f0773
When deleting windows and screens, also set to NULL the standard names
...
that refer to the window or screen just deleted.
Add some more debugging information.
2006-08-23 19:23:14 +00:00
jdc
c4b88fb280
Make sure we update the correct window when changing colour pairs.
2006-08-23 19:20:37 +00:00
wiz
1c4f3b5dd5
Bump date for previous.
2006-07-29 23:47:39 +00:00
christos
ad66eb8252
PR/34011: Julian Coleman: Limit timeout to 25.5 seconds.
2006-07-25 21:45:00 +00:00
christos
c93c6166a0
Coverity CID 1246: Don't allow getc == -1 to propagate as an array index.
2006-03-19 01:58:48 +00:00
christos
e9e2c8e419
Coverity 1552: Don't leak memory.
2006-03-19 01:53:11 +00:00
jdc
b7f0401ba9
Handle both background character and background attribute.
2006-02-05 17:39:52 +00:00
jdc
f4948e6f66
Curses_insert has been split into curses_insertch and curses_insertln for
...
a while now. Adjust names to suit.
2006-02-05 17:07:13 +00:00
jdc
b3fed27d5d
Use the background attributes for the background when inserting characters.
2006-02-05 17:04:46 +00:00
jdc
7800e2b8b9
Use the window background colour, not the default colour.
...
Should fix PR install/32617
2006-01-26 07:26:37 +00:00
jdc
f2efcd1a0b
Note that subwindows inherit the background character and attributes
...
of the parent window.
2006-01-15 16:57:45 +00:00
wiz
b482fe5453
Fix Xref, bump date for previous.
2006-01-15 11:45:54 +00:00
jdc
978ab4ad4e
Background characters and attributes don't need to be kept per character
...
cell, as they are merged when characters are added. Remove the per cell
storage and clarify the manual page. Pointed out by ruibiao@.
2006-01-15 11:43:54 +00:00
jdc
264b791562
Don't crash if asked to touch more lines than there are in a window.
2006-01-01 11:48:31 +00:00
dsl
c58f95b0f5
Don't read entry after end of array.
...
Discovered by Neil Ludban running curses under 'ElecticFence'
2005-10-23 18:38:52 +00:00
christos
cbb99f287d
Deal with modern c++ casts.
2005-08-09 02:33:38 +00:00
jdc
af1900d4d8
Make sure that werase() always marks the window as dirty. This fixes a
...
problem (reported by David Bariod on netbsd-help), where erasing an already
blank window would not clear the screen contents of overlapping windows.
2005-07-27 20:17:42 +00:00
christos
fe6a3ed298
Make these work with today's curses and termcap reality.
2005-05-23 04:04:49 +00:00
wiz
e2bc5f883e
Bump date for touchline() correction, and drop trailing whitespace.
2005-03-04 11:41:36 +00:00
blymn
fc90def939
Fixed incorrect documentation of the touchln() function. (thanks Wiz)
2005-03-04 11:15:47 +00:00
dsl
67b39d4957
Change first arg of __hash_more to const void * to remove need for double casts
2005-02-18 22:16:27 +00:00
yamt
98a0fd8d54
fix mvgetch prototype.
2004-12-13 23:51:11 +00:00
dsl
75c6c76be7
Fix (I hope) the bounding checks against the source window.
2004-08-02 18:47:52 +00:00
dsl
9214d0d9c1
overwrite() wasn't copying enough lines or columns.
...
copywin() couldn't seem to decide whether it should work in window or
screen coordinates - and managed to do neither.
Change copywin() to use window relative coords (as ncurses and solaris do),
and change overwrite() and overlay() to use the modified interface.
It is now possible to use overwrite() to save part of curscr while a
temporary window is drawn.
Fixes PR/26506
2004-08-01 21:48:24 +00:00
blymn
6b3a44ef27
Remove _cursesi_genbuf, it was not being set and caused a SIGSEGV
...
in getcap(). Fixed getcap() to use screen->cursesi_genbuf.
Thanks to Peter Bex for spotting this. This closes pr lib/26404.
2004-07-24 13:10:47 +00:00
wiz
a24a61f205
getcurx, getcury, getparx, and getpary also seem to be extensions.
2004-07-23 13:42:16 +00:00
wiz
f849435424
Note that getbegx, getbegy, getmaxx, and getmaxy are extensions
...
to X/Open Curses. From Peter Bex in PR 26352.
2004-07-23 13:38:48 +00:00
christos
744eb72770
PR/25397: David A. Holland: bug in second loop of resizeterm
...
(win used uninitialized), hidden by wrong gcc appeasal.
2004-04-29 22:28:51 +00:00
uwe
85cb92089f
Add trailing space that got lost from the string definition.
...
Pointed out in PR lib/25340 by Juho Juopperi.
2004-04-27 02:15:04 +00:00
simonb
9bc855a931
s/the the/the/ (only in sources that aren't regularly imported from
...
elsewhere).
2004-04-23 02:58:27 +00:00
jdc
eb71bd67da
Add missing mvin* and mvwin* manual pages.
2004-04-21 06:24:32 +00:00
christos
9717f6662e
check fflush() return code (from Julian Coleman)
2004-04-07 17:27:10 +00:00
wiz
c74c0a1a12
Add a newline, remove a comma, and reword STANDARDS section
...
slightly.
2004-03-28 12:23:21 +00:00
jdc
3a817d94fd
Increment libcurses minor to 1 (addition of *echochar()).
2004-03-28 08:59:15 +00:00
jdc
a6a9a97d12
Changes to support *echochar().
...
Should fix PR lib/24927.
2004-03-28 08:58:37 +00:00
jdc
5eb61d5ca7
Implement *echochar().
...
Should fix PR lib/24927.
2004-03-28 08:58:13 +00:00
wiz
359ed99579
Add comma in enumerations, grammar fix, and replace &
...
with \*[Am] for html output.
2004-03-26 22:18:15 +00:00
jdc
8dded85639
Change TSTP handler back to using signal().
...
This fixes a problem where vi would not suspend.
Also, make sure that the signal handlers aren't set or removed multiple times.
Finally, add debug output when the signal handlers are set and removed.
2004-03-25 07:35:40 +00:00
jdc
dd5d3aabfc
Add (missing) mvgetch() and mvwgetch() manual pages.
2004-03-23 21:56:53 +00:00
jdc
34e5b04618
Clarify the getch() family return values.
...
Add (missing) mvgetch() and mvwgetch().
2004-03-23 21:53:34 +00:00
jdc
3d248dff59
Change the values of ERR and OK.
...
This makes our getch() and related functions conform to SUSv2.
Also fixes PR lib/15920.
XXX: This causes an API incompatability, but comes less than 27 hours after
the libcurses major number was incremented, so should have minimal impact.
2004-03-23 21:35:29 +00:00
jdc
92cd5d7a66
We should check against NULL here.
...
From Brett Lymn.
2004-03-23 21:17:20 +00:00
wiz
cb35afd77e
No comma in an enumeration of only two elements.
2004-03-22 19:51:18 +00:00
jdc
d1f213e76e
"New sentence, new line".
2004-03-22 19:11:28 +00:00
jdc
abf59ded7e
Increment major number (to 6) because of the change to KEY_MAX,
2004-03-22 18:57:58 +00:00
jdc
140349e83f
Because we are changing the libcurses major number, remove can_change_colors()
...
and change the attribute definitions so that we can support more colour pairs.
2004-03-22 18:57:38 +00:00
jdc
efc30049d8
Add KEY_RESIZE support and a SIGWINCH handler.
...
Fixes PR bin/20032.
This requires a change to KEY_MAX, which affects libform and libmenu, so we
need to change libcurses major number.
2004-03-22 18:57:10 +00:00
wiz
789ce34c16
Remove duplicate article.
2004-03-16 19:51:08 +00:00
snj
9bfae9c898
Spelling fixes.
2004-03-16 19:27:35 +00:00
snj
dcf4b5a2bf
Spelling fix.
2004-03-16 19:26:56 +00:00
snj
668bade8ea
Spelling fixes.
2004-03-16 19:25:39 +00:00
snj
83b07697ca
Spelling fix.
2004-03-16 19:20:20 +00:00
snj
066778123d
Drop trailing whitespace.
2004-03-16 19:08:15 +00:00
wiz
f812f7e9a5
Fix off-by-one, okayed by jdc.
2004-03-16 10:58:25 +00:00
wiz
0cc0ff5935
Drop trailing space.
2004-03-16 09:46:36 +00:00
jdc
a02733d775
s/can_change_colors/can_change_color/
2004-03-16 07:55:05 +00:00
jdc
424b4f06a5
Clarify colour values that can be passed to init_pair().
2004-03-16 07:54:32 +00:00
jdc
ed325dfb85
Accept any negative number of init_pair(). Noticed by Peter Bex.
...
Swap red/blue and yellow/cyan if necessary in assume_default_colors().
2004-03-16 07:52:43 +00:00
jdc
a61e837cb5
gcc -Wuninitialized
2004-03-16 07:49:01 +00:00
jdc
404624e2be
We no longer need <signal.h>.
2004-03-16 07:48:18 +00:00
jdc
72d6b43902
s/colour/color/. From Douwe Keila.
2004-03-16 07:46:24 +00:00
jdc
6db03ed922
Minor style change.
2004-03-16 07:44:31 +00:00
christos
146f07a922
Fix the non working unctrl mess:
...
1. delete the incorrect duplicate macro from unctrl.h
2. move unctrl macros from curses.h to unctrl.h and make curses.h include
unctrl.h in curses.h instead of duplicating their definition.
3. constify unctrl arrays; make length unsigned.
2004-02-14 18:23:45 +00:00
wiz
071711957c
Use standard comment format. Fix typo. From Douwe Kiela.
2004-01-20 08:31:46 +00:00
wiz
81a9cc23f5
Add function descriptions. From Douwe Kiela.
2004-01-20 08:30:55 +00:00
wiz
4d74fb0ff9
Improve function descriptions. From Douwe Kiela.
2004-01-20 08:30:41 +00:00
wiz
60c0778ca6
Grammer fix. From Douwe Kiela.
2004-01-20 08:29:29 +00:00
wiz
c365bab896
Mini KNF. From Douwe Kiela.
2004-01-20 08:29:09 +00:00
wiz
27297af537
Fix recurring typo in comments. From Douwe Kiela.
2004-01-20 08:28:26 +00:00
wiz
3a7de20e0d
Add mv{,w}inch{,n}str. From Douwe Kiela.
2004-01-20 08:27:47 +00:00
wiz
a99c798fbb
Add mv{,w}inch{,n}str and mvwscanw.
2004-01-20 08:26:44 +00:00
christos
b7dd6b46f8
Avoid array type is char warning.
2003-12-23 23:12:44 +00:00
jdc
737fe44f7a
Increment libcurses minor to 11 for nodelay() void -> int change.
2003-12-04 21:26:09 +00:00
jdc
2dd40f4b6c
Make nodelay() return an int.
...
Now conforms to the Single Unix Specification.
Fixes PR lib/23531 by usa at garbagecollect dot jp.
2003-12-04 21:24:36 +00:00
wiz
6f9372dc27
Typo; from Jared Yanovich via jmc@openbsd.
2003-11-02 11:16:03 +00:00
fvdl
3144ca7d6b
Don't compare a char to NULL.
2003-10-21 00:30:05 +00:00
fvdl
f8ba2b4d70
Don't compare an int against NULL.
2003-10-21 00:25:21 +00:00
fvdl
79cc88df48
Don't use NULL to compare against an int.
2003-10-21 00:16:55 +00:00
wiz
449cf546df
Link curses_cursor(3) to getmaxyx(3); from Steve Rumble in PR 23183.
2003-10-18 09:08:46 +00:00
wiz
6f0dbbbf08
mvgetstr and mvwgetstr do not have a limit argument; from Steve Rumble in PR 23183.
2003-10-18 09:06:49 +00:00
jdc
324f201e56
Increment libcurses minor to 10 for addition of redrawwin() and wredrawln().
2003-10-05 10:14:36 +00:00
jdc
d4f82864b6
Add redrawwin() and wredrawln().
...
Fixes PR lib/20038.
2003-10-05 10:13:02 +00:00
jdc
7c12a98041
Fix __CTRACE arguments.
2003-10-05 08:26:02 +00:00
dsl
b176defcde
Revert most of rev 1.27 of addbytes.c and associated changes.
...
Posix requires that adding '\n' does clrtoeol() and 'x = 0'.
(Making "\r\n" erase the text that has just been displayed.)
Remove __NONL test from addbytes, __NONL is a property of the output device.
2003-08-10 07:37:11 +00:00
agc
eb7c1594f1
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22280, verified by myself.
2003-08-07 16:42:00 +00:00
dsl
a2a4308b26
Remove unused extern for __winlistp.
2003-08-01 13:29:06 +00:00
dsl
c841017dd9
Do something more sensible for waddbytes(..., "\r\n", ...);
...
I'm not sure about the clrtoeol() at all though - maybe it should
be done as part of scroll()?
Leave 'x' alone when __NONL set.
2003-07-31 10:36:00 +00:00
dsl
87e998f336
Remove __winlistp, add *screen to WINDOW and initialise in newwin().
...
Make delwin() remove window from list of windows on its screen.
Free win->lspace and win->lines for subwins (they only share text space).
Free things in the correct (and same) order if malloc() fails in __makenew().
Adjust delscreen() for delwin() removing itself from winlist.
Fixes potential massive corruptions if delwin() called on a main window.
NB: not responsible for the sysinst core dumps :-(
2003-07-30 11:19:00 +00:00
dsl
a04fc5a9fe
Use _cursesi_screen->winlistp (depracating __winlist)
2003-07-30 11:11:55 +00:00
dsl
7996b95938
Use _cursesi_screen->winlistp (depracating __winlistp)
...
Optimise and adjust layout so that fewer line breaks are required.
2003-07-30 11:10:42 +00:00
dsl
8f4bd35d69
Adjust layut to put ?: clause on a single line
2003-07-30 11:07:21 +00:00
dsl
5e26f5482a
Copy correct size of 1 line when doing insert/delete line on a subwin.
2003-07-29 16:42:55 +00:00
dsl
880234af7e
Stop def_prog_mode() saving incorrect termio settings.
...
Make set_prog_mode() set the correct settings.
I'm not certain how much restoration set_prog_mode() should do, but it
definitely doesn't want to do all of __restartwin().
Maybe __restartwin() should be calling set_prog_mode()?
2003-07-10 12:50:18 +00:00
lukem
001c68bd94
Rename a large chunk of the make(1) variables which refer to a
...
program/tool from "FOO" to "TOOL_FOO". The new variables are:
TOOL_ASN1_COMPILE TOOL_CAP_MKDB TOOL_CAT TOOL_CKSUM TOOL_COMPILE_ET
TOOL_CONFIG TOOL_CRUNCHGEN TOOL_CTAGS TOOL_DB TOOL_EQN TOOL_FGEN
TOOL_GENCAT TOOL_GROFF TOOL_HEXDUMP TOOL_INDXBIB TOOL_INSTALLBOOT
TOOL_INSTALL_INFO TOOL_M4 TOOL_MAKEFS TOOL_MAKEINFO TOOL_MAKEWHATIS
TOOL_MDSETIMAGE TOOL_MENUC TOOL_MKCSMAPPER TOOL_MKESDB
TOOL_MKLOCALE TOOL_MKMAGIC TOOL_MKTEMP TOOL_MSGC TOOL_MTREE
TOOL_PAX TOOL_PIC TOOL_PREPMKBOOTIMAGE TOOL_PWD_MKDB TOOL_REFER
TOOL_ROFF_ASCII TOOL_ROFF_DVI TOOL_ROFF_HTML TOOL_ROFF_PS
TOOL_ROFF_RAW TOOL_RPCGEN TOOL_SOELIM TOOL_SUNLABEL TOOL_TBL
TOOL_UUDECODE TOOL_VGRIND TOOL_ZIC
For each, provide default in <bsd.sys.mk> of the form:
TOOL_FOO?= foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
TOOL_FOO= ${TOOLDIR}/bin/${_TOOL_PREFIX}foo
Document all of these in bsd.README.
This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
jdc
256ce6a6f2
Rework the way window/wub-window refresh is done.
...
For each line that is marked dirty on each sub-window, we now mark the
relevant line on the parent as dirty and unmark it on the sub-window.
This avoids copying the same data multiple times and also leaves the
cursor in the correct position for the window refreshed.
2003-07-05 19:07:49 +00:00
jdc
24b8aeb15a
New sub-windows should not be marked as pads.
...
(Also noticed by David Laight.)
2003-07-05 19:03:32 +00:00
wiz
a86b52e89a
Sort list of functions.
2003-07-04 12:40:15 +00:00
wiz
8d15a4fe46
Fix Dd string and remove trailing whitespace.
2003-07-04 12:38:58 +00:00
jdc
5572bca927
Make the refresh complete in the presence of multiple sub-windows.
...
Match function names in the debug output.
2003-06-28 21:11:43 +00:00
wiz
1f45225df4
Fix typo in macro name, and remove a trailing comma.
2003-06-27 13:05:08 +00:00
dsl
14b491c2c5
Stop refresh(subwin) doing refresh on the other subwin's created before it.
...
(If nothing else the cursor would get left in the wrong place).
Fix some if (!flags & MASK) checks.
2003-06-26 17:17:10 +00:00
dsl
b70727e760
Error attempts at nested subwindows, the data structures don't support them.
...
I can't quite decide whether the X/Open Curses Issue 4, version 2 needs them.
2003-06-26 17:13:55 +00:00
dsl
c7ba282830
Stop blank line being added when newline is processed with __ISPASTEOL set.
2003-06-26 10:22:33 +00:00
wiz
85cf615bd0
Work around a warning from groff-1.19.
2003-06-26 10:00:24 +00:00
jdc
11f267a000
Add noqiflush() and qiflush()
...
Fixes PR lib/20037.
2003-06-20 06:58:53 +00:00
jdc
c521d02fce
Add keyname().
...
Fixes PR lib/20033.
Allow SMALL to be defined, to reduce the size of the library.
2003-06-20 06:56:29 +00:00
jdc
44d2f865a0
Mark all lines on new pads as dirty. This ensures that we draw blank
...
(untouched) lines when the pad is refreshed.
2003-06-09 06:58:11 +00:00
dsl
386a8e5059
Don't restartwin() if it isn't stopped.
...
Ensures we don't save the modified tty flags (as well as doing all the
initialisation twice) if the application (eg systat) calls curses functions
in its own restart code.
2003-05-28 20:19:42 +00:00
wiz
a2c49e51e1
Fix typo reported by Douwe Kiela in PR 21677.
2003-05-25 17:19:42 +00:00
wiz
c66093c273
Make i an int to please lint and remove a cast.
2003-05-22 16:09:09 +00:00
wiz
e6e9b32c33
Grammar fix; no functions returnint pointers here, so remove section
...
about those functions from RETURN VALUES section.
2003-05-22 09:25:52 +00:00
jdc
8b94a64a5a
Remove erroneouly added file.
2003-05-21 21:24:36 +00:00
jdc
cbce99002b
Cross reference curses_addchstr.3.
2003-05-21 21:22:15 +00:00
jdc
8b782b08d1
Increment libcurses minor for addition of addchstr() functions.
2003-05-21 21:21:14 +00:00
jdc
57b809b169
Add addchstr() family of functions.
...
Based on mail from Douwe Kiela.
Fixes PR lib/21285 by Thomas Klausner.
2003-05-21 21:19:52 +00:00
jdc
416748f2db
Add mvw* functions.
2003-05-21 20:33:21 +00:00
wiz
68221b9ec6
Bump date for last.
2003-05-21 06:57:08 +00:00
jdc
ad216762c8
Add missing *printw manual page links.
...
Patch provided in PR lib/21446 by Douwe Kiela.
2003-05-21 06:46:51 +00:00
jdc
8aec7a6456
Sort addbytes().
2003-05-21 06:16:16 +00:00
jdc
a365e46b92
Mention _CURSES_USE_MACROS.
2003-05-21 06:15:09 +00:00
jdc
2e4b986118
Add missing manual page links.
2003-05-20 06:54:44 +00:00
dsl
1473d232c3
Don't do __stopwin() if it is already stopped.
...
Allows error messages from programs like sysinst() to be seen.
(There is an explicit stopwin() before the error message is output,
and a second in the atexit() called cleanup() routine)
2003-05-18 10:02:07 +00:00
wiz
472351e13d
Use
...
.In header.h
instead of
.Fd #include \*[Lt]header.h\*[Gt]
Much easier to read and write, and supported by groff for ages.
Okayed by ross.
2003-04-16 13:34:34 +00:00
wiz
e0f416155a
New sentence, new line.
2003-04-16 12:36:44 +00:00
wiz
848d4d3dde
getch(3), not curses_getch(3). New sentence, new line.
2003-04-16 12:29:42 +00:00
jdc
0361a50a77
Add spacing around variable definitions.
...
From a discussion with Thomas Klausner.
2003-04-11 09:37:15 +00:00
wiz
43a80c6fd2
Improve mdoc a bit.
2003-04-08 21:19:15 +00:00
wiz
94f29563af
Better mdoc; add a missing 'is'.
2003-04-08 21:15:21 +00:00
jdc
a1a7bef1e4
Document LINES and COLS environment variables.
2003-04-08 18:57:09 +00:00
jdc
7a37df1b93
Add ESCDELAY variable to control the inter-key delay in escape sequences.
...
Fixes PR 20031 by Thomas Klausner.
2003-04-08 18:55:43 +00:00
jdc
6e028f681b
Add mvwin manual pages.
...
From PR 21041.
2003-04-08 06:02:17 +00:00
jdc
38b99f1400
Make sure that windows are not off the left or top edges of the screen.
...
Noticed while looking at PR 21041.
2003-04-08 05:56:01 +00:00
jdc
119cd94332
Document mvwin().
...
Fixes PR 21041 by Tyler Retzlaff.
2003-04-08 05:53:49 +00:00
jdc
dcd13397db
Swap red/blue and yellow/cyan when working with Sb/Sf colour. Problem noticed
...
when working on PR 21000.
2003-04-06 07:22:13 +00:00
jdc
e6800497da
Keep the cr->nl translation state in a separate variable, so that we can
...
do the translation ourselves (if the tty didn't do it for us).
Add debugging to track functions that change tty state.
Fixes PR 20834 by Stephen Borrill.
2003-04-05 10:06:59 +00:00
jdc
6babc534d9
Increment libcurses minor (addition of attr_set() group of functions).
2003-03-30 07:40:02 +00:00
jdc
b5eb0508f1
Add attr_set() group of functions.
...
Fixes PR lib/20034 by Thomas Klausner.
2003-03-30 07:38:41 +00:00
jdc
045c8e350f
Now refresh() refreshes subwindows too.
...
Fixes PR lib/20544 by rtr.
2003-03-29 21:43:22 +00:00
wiz
64e132da8b
Fix typo.
2003-03-17 08:39:54 +00:00
wiz
83de4abed2
Use "its" instead of "it's" where appropriate.
...
From Soren Jacobsen in PR 20730.
2003-03-15 23:48:27 +00:00
dsl
661e3f71df
Describe use of -ve window sizes
2003-03-03 14:21:12 +00:00
dsl
d75ec8181e
Fix resize of windows with subwins.
...
Let window size be given as a -ver number => lines from bottom.
Fix trace calls of pointers
(approved by Brett Lumn)
2003-02-17 11:07:19 +00:00
grant
104b35fe93
'NetBSD.org' and some mdoc fixes.
2003-02-14 16:29:11 +00:00
dsl
f7a8d65f01
resize subwindows when a window is resized, otherwise the subwin has
...
pointers into the ether.
(approved by christos)
2003-02-10 23:24:27 +00:00
jdc
ea7837ba99
Redo the conflict calculation (again).
...
Assume that "me" clears all attributes apart from acs.
Problem noticed when working on window(1).
2003-02-02 17:54:38 +00:00
jdc
60f7009432
I was slightly too agressive removing clearok() in revision 1.8.
...
Add back a clearok(stdscr) for terminals where the startup sequence
doesn't clear the screen.
2003-02-02 17:52:29 +00:00
jdc
6e91e33032
Increment the minor version (from 5 to 6) for the addition of
...
can_change_color() and no_color_video().
Add a note of things to change when the major version is incremented.
2003-01-27 21:14:33 +00:00
jdc
ec51d5cc4b
Change the way we calculate conflicts when turning off attributes.
...
We now check the termcap entries for "\E[m" or "\E[0m" or a longer
"\E[ ... m" sequence containing a "0".
2003-01-27 21:12:29 +00:00
jdc
8ca56fe956
Check for conflict between colour and other attributes. The previous
...
checks when adding attributes could be inadequate if background colours
were later added to a window.
2003-01-27 21:11:12 +00:00
jdc
2d83114a86
ARemove (no longer used) __nca.
2003-01-27 21:09:20 +00:00
jdc
e46d737f27
Add can_change_color() and no_color_video().
2003-01-27 21:08:09 +00:00
jdc
a3ce96fb84
Rename can_change_colors() to can_change_color().
...
Add can_change_colors() (that just calls can_change_color()).
Add no_color_video().
Replace __nca with _cursesi_screen->nca.
2003-01-27 21:06:16 +00:00
jdc
f62975e655
Remove check for attribute/colour conflict.
...
This is now handled in refresh.c as it's not possible to handle the
conflict with background colour here.
2003-01-27 21:04:10 +00:00
jdc
1482f4ac4b
Rename can_change_colors() to can_change_color().
...
Add no_color_video().
2003-01-27 21:03:04 +00:00
wiz
fc8bb2b92f
End sentence with a dot.
2003-01-19 23:32:33 +00:00
atatat
dd0a8acd21
The next release will be 2.0, not 1.7.
2003-01-19 21:25:36 +00:00
kristerw
78307cec5d
Correct return type for initscr().
...
From Joel Wilsson in PR 19809.
2003-01-15 23:13:51 +00:00
jdc
3f8ad5302e
Back out part of rev 1.50. We can't call werase() here.
...
Fixes PR lib/19739 by Matthias Scheler.
Problem also noted by Martin Husemann.
2003-01-12 12:53:51 +00:00
atatat
e2013873ab
Let's call it 'duration' instead of 'timeout' so that the compiler is happy.
2003-01-09 21:47:39 +00:00
wiz
5cd5ff6dc7
Bump date for halfdelay, and slightly improve wording.
2003-01-09 12:53:55 +00:00
blymn
a3c6a58ea6
Added halfdelay() function.
2003-01-09 12:48:04 +00:00
jdc
a2a5a0d169
Add curses pad manual pages.
...
Forgot to commit this. Pointed out by wiz.
2002-12-24 07:36:32 +00:00
wiz
d31e57413f
Remove trailing whitespace and a superfluous Pp, and end a sentence with a dot.
2002-12-23 12:48:12 +00:00
jdc
3599e38c2b
Document pad-related functions - newpad(), subpad(), prefresh() and
...
pnoutrefresh().
2002-12-23 12:27:43 +00:00
jdc
d06ae12fb5
Bump minor to 4 (pads support).
2002-12-23 12:26:55 +00:00
jdc
02559eb653
Always update the change pointers. Otherwise, we could end up not
...
displaying 'blank' characters when overlapping windows are displayed.
(Exposed by changes in revision 1.49 of refresh.c.)
2002-12-23 12:26:07 +00:00
jdc
4b9cace222
Handle function argument changes to __newwin().
...
Don't call clearok() for new windows in newterm() - it caused a screen erase
on the first refresh() of the window.
2002-12-23 12:25:10 +00:00
wiz
514c6fd187
Sort SEE ALSO.
2002-12-23 12:19:48 +00:00
jdc
4a4560b0f4
Only reset flags if the "window" is not a pad.
2002-12-23 12:18:53 +00:00
jdc
f8b5b67351
Add pnoutrefresh() and prefresh().
...
Modify _cursesi_wnoutrefresh() to handle pads.
2002-12-23 12:17:55 +00:00
jdc
c1d36848fe
Add newpad() and subpad().
...
Modify __makenew(), __newwin() and __subwin() to handle pads.
2002-12-23 12:17:03 +00:00
jdc
75f0ed7c22
Reference curses_pad(3).
2002-12-23 12:16:10 +00:00
jdc
c18be873d1
Changes for pad support - changed function signatures and _ISPAD flag.
2002-12-23 12:15:04 +00:00
jdc
92a6b6d62d
Add entries for newpad(), subpad(), prefresh() and pnoutrefresh().
2002-12-23 12:13:44 +00:00
jdc
6d51b9fd23
Add descriptions for newpad(), subpad(), prefresh() and pnoutrefresh().
2002-12-23 12:12:45 +00:00
jdc
2467ead4d8
Increase default delay when assembling key sequences. This seems to
...
eliminate the occasional non-recognition of key sequences over remote
connections.
Okayed by blymn.
2002-12-23 12:11:38 +00:00
jdc
b055b9db77
Correct cross references.
2002-12-05 19:13:12 +00:00
jdc
0bdde4e185
Add some (useful) debugging to wtouchln().
2002-12-05 17:23:51 +00:00
jdc
ab39ef114a
When copying a line from a window, only copy the changed part instead of
...
the whole line.
This fixes a bug when displaying displaying overlapping windows.
2002-12-05 17:22:13 +00:00
jdc
c5f3aee499
Mark lines on new windows unchanged.
...
Add window to __set_subwin() debug.
2002-12-05 17:14:34 +00:00
jdc
d899fbce8b
Set LINES and COLS here so that __swflags() sets flags on the initial windows.
...
Remove no longer useful debug output.
2002-12-05 17:04:25 +00:00
jdc
4da2d0814d
Set default colour on windows created after a call to start_color().
...
(Also noticed by Pooka).
2002-11-25 09:11:26 +00:00
jdc
1cac4d45c4
Don't allow default colour setting to be overwritten in init_pair().
...
(Also noticed by Pooka).
2002-11-25 09:11:18 +00:00
blymn
b7e9ee4287
Added documentation for define_key and keyok
...
Fixed borkage with getpary.
2002-10-23 12:17:45 +00:00
wiz
64950814bb
Sort SEE ALSO.
2002-10-22 12:25:17 +00:00
wiz
7887044679
Whitespace cleanup.
2002-10-22 12:24:03 +00:00
blymn
5aec620ac6
Added the ncurses extensions define_key and keyok.
2002-10-22 12:07:20 +00:00
blymn
d5dc62cbd8
Fix lint nits mainly with the len parameter type in hash_more.
2002-10-22 11:37:34 +00:00
wiz
2944b39fd1
No catted pages in CVS.
2002-10-21 14:40:36 +00:00
wiz
cd2a9eb1c8
getch, not curses_getch.
2002-10-21 14:35:29 +00:00
wiz
cb3d21680a
curses_delch, not curses_deletech.
2002-10-21 14:34:20 +00:00
wiz
04944d75d4
curses_scanw, not curses_scan.
2002-10-21 14:33:49 +00:00
wiz
a2e19aabe5
Use \-1 instead of -1.
2002-10-21 14:31:36 +00:00
wiz
70161f4c57
No functions returning pointers in this man page.
2002-10-21 14:24:53 +00:00
wiz
c3d0728d04
Punctuation fixes.
2002-10-21 14:17:54 +00:00
wiz
4eb1546262
Sort SECTIONS. Punctuation fix.
2002-10-21 14:15:31 +00:00