Commit Graph

271 Commits

Author SHA1 Message Date
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
christos 9e90cfbd5c de-lint:
- bad arithmetic shift
	- const castaways.
2001-01-05 22:57:56 +00:00
christos 9791d7cf26 remove redundant declarations. 2001-01-05 22:51:21 +00:00
simonb e6fa1cbf79 Add the instr and inchstr families of functions. 2001-01-01 10:36:12 +00:00
jdc f7d4b58f02 Libcurses-4.0
Removal of termcap capabilities requires major bump.  Pointed out by Itojun.
Capabilities are still available if `_CURSES_TERMCAP_COMPAT' is defined.
2000-12-31 12:33:02 +00:00
martin 2c14d88958 va_list -> _BSD_VA_LIST_ to be consistent with prototype
(doesn't compile on sparc64 otherwise)
2000-12-30 17:20:55 +00:00
jdc 7a083b2f6e Libcurses minor bump. 2000-12-22 17:08:32 +00:00
jdc c9e9551689 Revert the change to the `pc' capability from the previous change. Pointed
out in email by Thomas Dickey.
2000-12-22 17:07:12 +00:00
jdc 606508da77 Rename variables refering to termcap capabilities from NN to __tc_nn. Case
adjusted to match termcap capability.  A few other variable names renamed too
(ones related to or derived from termcap variables).
2000-12-19 21:34:24 +00:00
wrstuden 1cbd0d8d38 Last revision had some problems. One .De was missing, and a number of
.De's were really .Ds's. Problems were causing output not to be rendered-
number of output pages more than doubled after these fixes, and made much more
sense.
2000-09-27 22:56:00 +00:00
itojun c8df79fc84 do not call wrefresh() uncondintionally from wgetch(). call it only
when the window was touched (is_wintouched()).
the previous behavior damaged existing applications, especially when it issues
lots of subwindow manipulation and mvcur().

it was introduced in 1.23 -> 1.24 or sometime before.
2000-09-23 09:34:07 +00:00
itojun 4915bd101e change behavior of waddnstr(w, s, 0) to be more conformant to XCURSES.
(see comment for detail)
2000-08-13 03:26:41 +00:00
itojun 3804b1dddf build a trace version of libcurses, with "make -DDEBUG_CURSES"
(commented out as it is very uncommon)
2000-08-13 03:20:07 +00:00
itojun 2ee926643f on repaint, we must look at attributes present on curscr.
check __ISPASTEOL on curscr->lines, not on win->lines.  PR 10732.
2000-08-02 10:50:49 +00:00
itojun 67175858ec use __cputchar(), not putchar().
otherwise, __CTRACE() will not be useful for debugging curses internals.
2000-08-01 04:17:09 +00:00
itojun 2e661a4ef6 free region got from t_getstr(). we will experience memory leak if
we call initscr() multiple times (rare, but it's better to be pedant).
2000-07-31 18:55:35 +00:00