Commit Graph

587 Commits

Author SHA1 Message Date
dsl
ef7eea8bfd Read input from the correct FILE. 2009-11-04 21:51:11 +00:00
dsl
bc1d032082 Round timeout values up.
More importantly convert 1..99 to 1, not 0.
2009-11-04 21:24:57 +00:00
dsl
905b39a994 Move calls to __restore_termios() into the failing path of the functions
that fail - instead of in most of the callers.
All rather pointless if tcsetattr() fails to set the mode we want we
are very unlikely to be able to restore any later on.
2009-11-01 22:11:27 +00:00
jdc
7ffe6d60fa Return the same information whether or not we have wide characters.
Problem pointed out by Rhialto on current-users.
2009-10-06 20:03:27 +00:00
christos
304c3bd293 fix debugging build. Hi Roy! 2009-07-28 18:38:43 +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
wiz
27f99b53d5 Add RCS Id. Fill in name in license. New sentence, new line.
Add comma in enumeration.
2009-07-12 23:14:06 +00:00
wiz
1a280fda0f Bump date for *chgat*. 2009-07-12 23:12:40 +00:00
joerg
a8766915af Ensure that y,x are valid coordinates before using them. 2009-07-09 22:08:45 +00:00
joerg
2a64051b50 Be strict on xcurses support:
- Do not perform wrapping at all by setting the line flags.
- Do not alter the cursor position, even for mv(w)chgat.
2009-07-07 13:10:02 +00:00
joerg
ba2ae25781 chgat() and friends are in X/Open. Noticed by Thomas Dickey. 2009-07-07 11:53:43 +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
wiz
85d294df1c Sort SEE ALSO. New sentence, new line. 2009-05-18 09:30:31 +00:00
christos
3b75967235 make fileio.h work with objdir. 2009-04-06 00:48:19 +00:00
christos
b10afc8344 regen 2009-04-06 00:48:04 +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
wiz
047cc3e3f6 Sort sections. 2009-02-23 08:27:13 +00:00
christos
4534498c64 Get the ESCDELAY from the environment. 2009-02-22 20:05:48 +00:00
christos
58e089a802 Document curses environment variables. 2009-02-22 20:04:21 +00:00
jdc
145a912cc9 Fix bug where a single ESC was not recognised when in keypad() mode.
Noticed by abs@.
2009-02-09 12:45:59 +00:00
christos
099cac49ad fix debugging build. 2009-01-17 15:25:36 +00:00
christos
46edb91e9f bump shared libraries. 2009-01-11 03:07:47 +00:00
apb
8a9d9ec446 s/AWK/TOOL_AWK/. Problem reported by Greg Oster. 2008-10-27 20:56:28 +00:00
tnozaki
97d29a42cd add workaround for PR/39175(Curses regression causes disoptimal and
confusing output), act as rev1.25 does when wcwidth == 1.
2008-07-23 13:32:41 +00:00
tnozaki
c71a9f1dad use mbrtowc() instead of mbtowc(). 2008-07-04 16:52:10 +00:00
tnozaki
b29240a183 use nl_langinfo(CODESET) instead of setlocale(LC_ALL, ""). 2008-07-04 16:24:45 +00:00
tnozaki
c1cfc49998 fix cursor position problem with the character wcwidth > 1.
discussed in tech-userlevel, ok'ed by jdc@ thanks!
2008-07-04 15:51:35 +00:00
yamt
2233bf3229 remove unnecessary casts. 2008-06-13 03:18:04 +00:00
yamt
60683edb0f avoid c99 on DEBUG. 2008-06-13 03:15:50 +00:00
christos
ea988594e2 Coverity CID 5024: Fix double free on error path. 2008-05-24 16:37:49 +00:00
tsutsui
d4fd069bec Use WARNS=2, which just works. 2008-05-13 15:27:30 +00:00
martin
ca37ecd7b6 Move to 2 clause TNF license (was: strange 3 clause version) 2008-05-02 11:13:02 +00:00
martin
11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
jdc
017de4a670 Revert the scrolling region change from revision 1.18, as this breaks (at
least) mutt:

  Only change the scrolling region if the window now has fewer rows.
2008-04-29 17:46:39 +00:00
martin
3028e483e4 Convert to new 2 clause license 2008-04-29 06:53:00 +00:00
martin
ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
tsutsui
f244f3d606 Use WARNS=1 rather than adding warning options to COPTS.
Tested on several MACHINE_ARCHs.
2008-04-27 03:14:59 +00:00
tsutsui
c007028e0b Enable gcc optimization on m68000 (sun2) again with minimum hacks.
gcc -O0 generates a bit fat binaries.
2008-04-27 03:06:46 +00:00
jdc
e78f48a7d8 Add getwin and putwin mlinks. 2008-04-15 18:27:01 +00:00
jdc
a5d694a48c Remove unused BUGS section header. 2008-04-14 21:29:30 +00:00
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