Commit Graph

562 Commits

Author SHA1 Message Date
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
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