Commit Graph

658 Commits

Author SHA1 Message Date
mrg
26f35dd6b6 remove the build support for GCC 4.1, and any hacks i found for it.
there could still be more -- i only looked for lines matching
both "HAVE_GCC" and "4" as words (grep -w.)
2014-06-13 01:17:45 +00:00
abs
0b3334d19a Add workaround for lib/48827 for vax to avoid segv in sysinst for now 2014-05-21 14:01:30 +00:00
blymn
0d7a04cd28 Fix reversed logic in the notimeout call.
Fix obsolete email addresses in copyright.
2014-02-28 07:58:42 +00:00
blymn
74ff043f96 Correct the implementation of mvderwin, it now works as specified by
SUSv2.
2014-02-20 09:42:42 +00:00
blymn
d345484675 Make the touch family of calls actually force an update of the
terminal bypassing optimisations.  Previously if curses thought curscr
was in sync with virtscr (curses concept of what is on the screen) then
nothing would be output.  This change forces an update out to the terminal
regardless.
2013-12-06 11:23:47 +00:00
christos
5fe8b8f1c1 remove unused variable 2013-11-10 03:14:16 +00:00
blymn
69b405aa23 Rename the old __waddbytes function to _cursesi_waddbytes and add a
parameter that controls whether or not certain characters in the
string are interpreted or not (things like tab being expanded).

Make __waddbytes a wrapper for _cursesi_waddbytes that passes all
parameters and sets the flag for character interpretation for backward
compatibility.

Fix an incipient bug in _cursesi_waddbytes where garbage would have
been written to the terminal if the terminal TABSIZE was set > 8 and
character interpretation is on.

Convert all internal __waddbytes calls to use _cursesi_waddbytes, fix
the function prototypes and add a new flag that will be used later.

Fix the addchstr family functions so that they call _cursesi_waddbytes
with character interpretation off as per SUSV2.
2013-11-09 11:16:59 +00:00
christos
cbdcb619b0 fix unused warnings 2013-10-18 19:53:59 +00:00
roy
2e2213ef89 Add TABSIZE, which is derived from terminfo init_tabs.
Use this when processing \t.
If TABSIZE is set in the environment, this takes precedence.
2013-10-16 19:59:29 +00:00
roy
0f3cb8baf7 Define WA_NORMAL 2013-10-16 12:43:35 +00:00
roy
f8157294d8 Note that delwin(3) is a null-op if win is NULL. 2013-10-15 22:15:17 +00:00
christos
8fd1aec131 Instead of turning off the 8th bit on resume, turn it on, as it is on by
default. Problem reported by atatat@ when suspending vi and resuming loses
the ability to use the alt key.
2013-10-15 13:00:52 +00:00
blymn
873b5b8698 Use the internal version of touchline to update the line. 2013-10-01 11:41:14 +00:00
dsainty
8ed5bc1d62 Fix a NULL dereference if the exit_alt_charset_mode capability is not defined.
The previous version of this file changed a terminal initialisation test on
the exit_attribute_mode capability, checking for the exit_alt_charset_mode
capability as a substring, rather than performing a search for the hard-coded
^O character.

That works better on terminals where ^O is not the correct value for
exit_alt_charset_mode.  But it works worse on terminals that don't have a
definition specified for exit_alt_charset_mode.

For example:

% TERMCAP='xterm:me=\E[m:' TERM=xterm vi
segmentation fault (core dumped)  TERMCAP='xterm:me=\E[m:' TERM=xterm vi

The crash can be avoided (without fixing the bug) by defining
exit_alt_charset_mode:

% TERMCAP='xterm|:me=\E[m:ae=:' TERM=xterm vi
ex/vi: Error: xterm: No such process

We now test exit_alt_charset_mode for NULL before continuing with the fatal
test, restoring the original no-crash behaviour.

XXX does_ctrl_o() is now just a naive reimplementation of strstr(), so should
probably just use strstr() instead.
2013-09-25 03:28:20 +00:00
jdc
b29886d4e9 Extend does_ctrl_o() to compare exit attribute and ext ACS sequences. 2013-05-05 14:24:05 +00:00
jdc
cab30aac1c Also merge in background attributes. 2013-05-05 14:23:16 +00:00
jdc
80b874e08a Add extra debugging when copying window contents. 2013-05-05 14:22:07 +00:00
blymn
9c95b63f3b Don't wrap added string 2012-09-28 06:07:05 +00:00
blymn
4278f32774 Add more debug to mvchgat. 2012-09-28 06:05:19 +00:00
blymn
5c41471666 Correct behaviour of mvderwin(). It should remap a given area of the parent
window not move a derived window as it was before.
2012-09-28 06:03:45 +00:00
blymn
1aa7cc3dc3 Truncate string to RHS of the window - SUSv2 says we should. 2012-09-28 06:00:39 +00:00
blymn
74bbb55e87 * Size argument for memset when clearing cbuf was wrong, cbuf is an array
of char not int so memset was stomping memory past the end of the array.
  Use sizeof properly to correctly determine the amount of memory to clear.
2012-06-29 10:40:29 +00:00
agc
1a27c54f9a re-work the previous to make it format correctly 2012-05-02 04:23:09 +00:00
agc
142f8d12eb document the correct argument to wstandout(3) and wstandend(3) 2012-05-01 17:32:58 +00:00
roy
27c1dc0dc5 Fix build 2012-04-21 14:39:35 +00:00
roy
258cf0abec Add capfile(5) to describe the termcap format.
Adjust various man pages and other documentation to point to capfile(5)
instead of termcap(5).
Remove getcap(3) as curses hasn't been building it for a long time.
Punt wrterm.c as tset no longer uses it.
2012-04-21 12:27:24 +00:00
blymn
35253f4b16 Fix build break if curses is built without wide char support 2012-04-21 11:33:16 +00:00
blymn
0f995dfd31 Remove trailing whitespace 2012-04-21 11:31:59 +00:00
christos
8aaa635ed5 PR/46049: Tim van der Molen:
clrtobot() and clrtoeol() do not set background attributes
2012-02-19 19:38:13 +00:00
christos
b76235fd7a handle the case where we have no space properly (Nat Sloss) 2012-01-27 15:37:09 +00:00
christos
acd0d5274c PR/45791: Nat Sloss: getnstr erase character weirdness
Fix processing of backspace erase char and char left.
2012-01-06 22:20:54 +00:00
roy
64afaacce6 Move longname(3) from curses to terminfo, pre-cursor to fix PR/43386. 2011-10-04 11:01:13 +00:00
roy
4060cbcd0c Use tiparm instead of vtparm. 2011-10-03 12:32:15 +00:00
wiz
72e0f90c3f Remove trailing whitespace. Bump date for previous. 2011-09-15 12:01:18 +00:00
blymn
d3c541783a - Make mvderwin work as per the SUSv2 specification and other curses
implementations.
2011-09-15 11:58:05 +00:00
christos
ef87b14708 Fix for systems that don't have TCSASOFT as intended originally. Simplify. 2011-08-29 11:07:38 +00:00
wiz
495abc41ce Add serial comma, remove trailing whitespace, bump date for previous. 2011-08-07 11:37:06 +00:00
blymn
f23e1d9ef1 Merge the attributes into the returned characters. 2011-08-07 10:57:10 +00:00
blymn
9202e9d5c9 Document the return values for innstr and friends. 2011-08-07 10:55:59 +00:00
blymn
27325b933f Fix a bug that prevented instr and friends returning OK. 2011-08-07 10:54:53 +00:00
blymn
12654ca858 flush the output after writing the meta sequence. 2011-08-07 10:52:18 +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
blymn
83d6403d6e Set the background attributes when erasing. 2011-07-10 12:11:49 +00:00
joerg
b341a73a57 Fix memset usage. 2011-07-01 01:19:33 +00:00
jdc
f18c34f949 Correctly test for __ISDIRTY.
Problem noticed by (and test case provided by) blymn@.
2011-06-16 22:45:46 +00:00
blymn
e0662f42c2 Fix deleting a key definition, it did not work. Also improve tracing
of key definition deletion.
2011-04-21 08:10:49 +00:00
jruoho
6e3ec5b1a3 Fix PR # 41894. 2011-04-06 08:38:43 +00:00
blymn
eff7afe2e8 Add man page link for define_key 2011-04-04 10:32:04 +00:00
blymn
3da4a766de fflush the outfd after setting the cursor visibility so it takes effect
immediately.
2011-03-30 09:47:02 +00:00
blymn
01cc4b6151 Fix typo. 2011-02-10 08:54:12 +00:00