roy
64afaacce6
Move longname(3) from curses to terminfo, pre-cursor to fix PR/43386.
2011-10-04 11:01:13 +00:00
joerg
3eb244d801
Retire varargs.h support. Move machine/stdarg.h logic into MI
...
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
wiz
3d3c5d42cb
Observe the following spelling:
...
- wide character (noun)
- wide-character (adjective)
Inspired by jmc@OpenBSD.
2010-12-16 17:42:25 +00:00
drochner
452834f264
misc fixes and improvements:
...
-call setlocale(LC_CTYPE, "") before nl_langinfo(CODESET) if the
locale settings is (still) at "C" - otherwise the CODESET doesn't work
-fix the type of the WACS_* symbols -- this needs to be cchar_t*
-add safeguards where the return value of wcwidth() is used for
loop counters or indexing -- it can be -1
-use more common code in the widechar support case -- in particular
let the wchar functions do the work even if chtype ones were called
-implement wcursyncup/wsyncup/wsyncdown
-somewhat experimental: allow ACS_* variables to refer to WACS_*
table entries -- this way, programs using the old chtype using API
can use UTF8 line drawing on terminals which support UTF8 but not
ACS switching
-fix some logics bugs in UTF8 recognition and ALTCHARSET handling
2010-02-23 19:48:26 +00:00
roy
98eb889579
Userland now builds and uses terminfo instead of termcap.
...
OK: core@, jdc@
2010-02-03 15:34:37 +00:00
roy
43d5eb454b
Prepare curses for the possibility of changing from termcap to terminfo.
...
term.h #defines lines, pad_char and no_color_video macros which conflict
with existing curses code. We change lines to alines and nlines depending
on use, pad_char to padchar and no_color_video becomes no_color_attributes
but with a strong alias from no_color_video.
2009-07-22 16:57:14 +00:00
joerg
eadfd2731f
Add vw_printw and vw_scanw as mandated by SUSv2's xcurses. Follow
...
ncurses and just make the historic vwprintw and vwscanw functions
aliases, ignoring that they should take a varargs.h va_list argument.
2009-07-07 10:16:52 +00:00
joerg
32e50f68cc
Use __printflike/__scanflike.
2009-07-07 09:58:08 +00:00
joerg
1e5025e496
Add support for the chgat(3) family. It is a useful extension from
...
ncurses, supporting it dramatically reduces the need for ncurses in
pkgsrc.
2009-07-06 15:19:49 +00:00
cube
7ad46619fb
Make keypad return an int instead of nothing, as the SUS and even
...
curses_input(3) [!] say it should.
OK'd jdc@. ABI lawyers say this doesn't need major bump.
2009-04-01 20:59:15 +00:00
jdc
b93705abe5
Add new file IO functions.
2008-04-14 20:40:53 +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
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
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
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
christos
cbb99f287d
Deal with modern c++ casts.
2005-08-09 02:33:38 +00:00
jdc
a6a9a97d12
Changes to support *echochar().
...
Should fix PR lib/24927.
2004-03-28 08:58:37 +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
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
72d6b43902
s/colour/color/. From Douwe Keila.
2004-03-16 07:46:24 +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
christos
b7dd6b46f8
Avoid array type is char warning.
2003-12-23 23:12:44 +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
jdc
d4f82864b6
Add redrawwin() and wredrawln().
...
Fixes PR lib/20038.
2003-10-05 10:13:02 +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
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
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
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
b5eb0508f1
Add attr_set() group of functions.
...
Fixes PR lib/20034 by Thomas Klausner.
2003-03-30 07:38:41 +00:00
jdc
e46d737f27
Add can_change_color() and no_color_video().
2003-01-27 21:08:09 +00:00
blymn
a3c6a58ea6
Added halfdelay() function.
2003-01-09 12:48:04 +00:00
jdc
92a6b6d62d
Add entries for newpad(), subpad(), prefresh() and pnoutrefresh().
2002-12-23 12:13:44 +00:00
blymn
5aec620ac6
Added the ncurses extensions define_key and keyok.
2002-10-22 12:07:20 +00:00
jdc
8e5dbb8eb6
Remove duplicate definitions of getyx, getbegyx and getmaxyx.
2002-10-14 16:25:52 +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
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
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
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
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
40ac848024
Fix various misspellings of compatible/compatibility.
2001-06-11 01:50:48 +00:00
jdc
e0083771d7
Add missing prototypes.
...
Fixes PR lib/12714.
2001-04-21 16:19:37 +00:00
jdc
3f9388e3e3
Implement scrolling regions :
...
has_ic()
has_il()
setscrreg()
wsetscrreg()
2001-04-20 12:56:08 +00:00
christos
9e90cfbd5c
de-lint:
...
- bad arithmetic shift
- const castaways.
2001-01-05 22:57:56 +00:00