Commit Graph

286 Commits

Author SHA1 Message Date
jdc 5436cf8ed4 Add a hack for xterm-like terminals where "\E[m" will turn off
other attributes.
2002-09-11 15:23:24 +00:00
lukem ebb6fc9eb8 Use ${NETBSDSRCDIR}/some/path instead of ${.CURDIR}/../../some/path (etc).
(Reduces make output by ~ 20%)
2002-08-19 09:41:27 +00:00
pooka b09706dced add ${MACROS} to roff call to make output paper readable 2002-08-13 20:07:31 +00:00
jdc de90ffb896 Sort attr* functions/macros. 2002-08-04 17:08:16 +00:00
jdc 4eb3ef3dac Set the curses default colours to white on black when using colour.
See the Single UNIX Specification, Version 2 :

  http://www.opengroup.org/onlinepubs/007908799/xcurses/can_change_color.html

Also, add the functions :

	use_default_colors();
	assume_default_colors(fore, back);

(from ncurses) that allow the terminal default colours or user-specified
default colours to be used.
2002-08-04 16:43:04 +00:00
jdc c06c3c0403 Make sure we always update curx, cury and __ISPASTEOL.
From Onno van der Linden in PR lib/16532.
2002-08-04 14:13:49 +00:00
jdc 7aea6936d1 Reset cursor visibility after restarting the screen, as the cursor visibility
setting can be changed when the screen is restarted.
2002-08-04 14:11:59 +00:00
blymn 119539a3a6 Add idcok to documentation. 2002-07-19 13:36:48 +00:00
blymn 8d2591041a * Added new function idcok - this closes PR 10802
* Added sentinels to the line structures when in debug mode to try
  to pick up data overwrite problems, if they occur.
2002-07-19 13:22:41 +00:00
itojun 240c598f70 minor KNF (prototype decls should carry no variable name, otherwise macro
expansion will get you weird problem) and #define pedant (have paren).
2002-06-26 18:37:28 +00:00
itojun 2f69e2e14d handle non-tty cases more gracefully. 2002-06-26 18:23:28 +00:00
christos ce1b68c92d PR/17352: David Laight: Curses core-dumps on windows > 1024 wide. 2002-06-26 18:13:59 +00:00
wiz 143cf52f81 __STDC__ is always defined on NetBSD. 2002-05-26 16:53:30 +00:00
mycroft 09beb06848 Make sure _acs_char[] is copied to screen->acs_char[] even when there is no
ac attribute.  This fixes box-drawing on displays with no ac.
2002-04-11 18:06:41 +00:00
wiz f4c5d5828e Two formatting fixes. 2002-03-25 13:53:43 +00:00
blymn 376e059acd Only reference termcap capabilities in the screen struct in __init_acs
Also changed tputs to t_puts to output acs init string to correct device.
2002-01-04 13:53:26 +00:00
blymn ef5927835e Remove extraneous tabs from blank lines. 2002-01-02 10:38:27 +00:00
blymn 64df79afe7 fix __startwin() so it outputs the init strings to the correct device. 2001-12-31 14:23:11 +00:00
blymn 4118c45610 * Fixed uninitialiased variable problem in newterm
* Implemented better fix for screen not clearing for refresh()
  when newterm used to start curses.
2001-12-31 14:16:01 +00:00
blymn d7893fc457 Make newterm set the default screen if the old default screen was
ended, stops new vi crashing.  Thanks to Aymeric Vincent for the fix.
2001-12-30 13:20:35 +00:00
blymn 98f703ff1e Fix newterm so it syncs curscr to stdscr when term is created. Thanks
to Onno van der Linden for finding this bug.
2001-12-27 10:48:15 +00:00
blymn 51344953b1 * Remove termcap globals from public interface
* Clean up commented out code
2001-12-11 11:18:17 +00:00
christos 7990d9579f lib/14813: Jason R. Thorpe: worm(6) no longer builds w/ new libcurses
Make baudrate a function, gc old variables, implement ospeed in terms of
baudrate, bump major number to 5, since we don't have __baset anymore.
2001-12-02 22:43:44 +00:00
blymn c84d91aad5 * Major change to add support for the newterm/set_term functions.
* Added fix to getch.c suggested by Gabriel Rosenkoetter (thanks :-)
2001-12-02 09:14:20 +00:00
lukem 36ddbc2f48 fix WARNS=2 (-Wshadow) warning 2001-11-04 14:04:27 +00:00
tron d47435e90d Remove bogus call to free(3) which caused several warning messages in
application using our "curses" library after the latest change to
memory management in the "c" library.
2001-11-01 16:06:59 +00:00
blymn 295d3a0e44 Added function - bumped minor version of lib. 2001-10-15 13:11:49 +00:00
wiz 0604b11aee Whitespace, section name, and punctuation fixes. 2001-10-14 19:58:16 +00:00
blymn 23231c1a0e Added 2 new functions and a macro:
- getparx
        - getpary
        - getparyx (macro)
Also minor tweak to the man page to correct grammar on a couple of items.
2001-10-14 12:36:09 +00:00
blymn 6a6d2c60ec Add mvderwin function. 2001-10-08 10:45:13 +00:00
wiz 4c99916337 va_{start,end} audit:
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).

Improved by comments from enami and christos -- thanks!

Heimdal/krb4/KAME changes already fed back, rest to follow.

Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
blymn 9fc0329619 Add code to allow resizing of windows and the underlying terminal. 2001-09-20 11:11:54 +00:00
wiz 456dff6cb8 Spell 'occurred' with two 'r's. 2001-09-16 16:34:23 +00:00
wiz c03a48d64f withough -> without 2001-06-13 10:45:57 +00:00
wiz 40ac848024 Fix various misspellings of compatible/compatibility. 2001-06-11 01:50:48 +00:00
jdc 048f92e86e Set scrolling region top correctly.
Fixes scrolling bug in sub-windows.
2001-05-17 19:04:01 +00:00
jdc e9d9414894 Document getnstr(). 2001-04-21 16:28:27 +00:00
jdc e0083771d7 Add missing prototypes.
Fixes PR lib/12714.
2001-04-21 16:19:37 +00:00
jdc 475308e857 Forget to mention: This fixes PR lib/12565. 2001-04-20 13:14:42 +00:00
jdc 36d80fe4b0 Add entries for scrolling regions and getnstr() functions. 2001-04-20 13:06:35 +00:00
jdc e1b04b0bbd Bump libcurses minor (now 4.2). 2001-04-20 13:04:58 +00:00
jdc e279497a4c Implement the getnstr() functions.
Add __warn_references() for getstr().
Move getstr() family closer to SUSv2 :
  add checks for <carriage return>, the kill character, KEY_LEFT and
  KEY_BACKSPACE
  ignore other KEY_* characters
2001-04-20 13:03:24 +00:00
jdc f82a1102e0 Make comments match reality (delete-char instead of insert-char). 2001-04-20 12:57:47 +00:00
jdc 3f9388e3e3 Implement scrolling regions :
has_ic()
  has_il()
  setscrreg()
  wsetscrreg()
2001-04-20 12:56:08 +00:00
jdc d096f2ef67 Display default (HLINE/VLINE) characters when character 0 is passed in.
This is not in the SUSv2 specification but is what System V curses does
(and it's consistent with box() and border()).
2001-02-05 21:56:36 +00:00
jdc 8ce2f7e54b Don't delete attributes when character 0 (default) is passed in.
Minor KNF.
2001-02-05 21:54:21 +00:00
blymn 4aa92dbcd1 There was a missing check for curscr != NULL, fixed. 2001-01-14 08:12:47 +00:00
blymn 680d3cd9aa Fixed casting bug in array indexing, a signed char was being sign
extended when cast to unsigned, made the cast "unsigned char"
2001-01-10 14:02:31 +00:00
augustss 2e7677dc49 Make this compile again.
(I thought the idea was to test things before commiting;
if it doesn't even compile it can't possibly have been tested.)
2001-01-07 14:44:03 +00:00
jdc 13dfd1f5bb Free(3) delstr after use.
Pointed out by Mike Grupenhoff in email.
2001-01-07 13:56:42 +00:00