Commit Graph

674 Commits

Author SHA1 Message Date
jdc b120305be0 Clear the "forced" flag after updating a line, otherwise we'll always do
complete line redraws.
2016-01-10 08:11:06 +00:00
jdc dfb25fd120 Remove extra new line in debugging output. 2016-01-09 19:05:13 +00:00
jdc 210cd3d8d9 Display force flag in debug print. 2016-01-07 07:37:08 +00:00
jdc 3c6f106b95 Add missing new line in debug print. 2016-01-07 07:36:35 +00:00
christos 600fe0a3fe fix memory leaks (from Rin Okuyama) 2015-11-26 01:05:08 +00:00
christos 7099a15c75 PR/50092: don't leak screen on multiple setterms. 2015-11-24 01:59:32 +00:00
kamil 43589aae40 Note to update major of libpanel(3) for new major of curses(3) 2015-11-22 04:56:00 +00:00
uwe 3ae7b58008 Fix x/y edito. 2015-10-17 00:35:25 +00:00
joerg fb99f8156a mvgetnstr should have a length argument as the name implies. 2015-06-08 12:38:57 +00:00
wiz 18ac899793 Fix quoting in macro.
Needed by dialog-1.2-20150513.
2015-05-28 06:28:37 +00:00
christos dbad683e58 Use TOOL_VFONTEDPR 2014-07-15 13:27:58 +00:00
christos bba6cf07e1 stopgap for non-netbsd build. 2014-07-15 11:19:08 +00:00
blymn 0241cad29d Remove bogus length check - SUSV2 says add(n)str wraps and performs
special character processing so we should not be trying to limit the
length to the screen edge.  This partially fixes PR 48827, the test case
works now.
2014-07-13 01:58:08 +00:00
dholland efe0bd4dbe Remove stray .if make(insatll).
I would really like to know why this didn't fail the clean build I ran
last night.
2014-07-05 22:31:32 +00:00
dholland b7b7574d3b Reorg docs, part 1:
Move all the reference manuals to subdirs of /usr/share/doc/reference.
We have subdirs ref1-ref9, corresponding to man page sections 1-9.

Everything that's the reference manual for a program (sections 1, 6,
8), C interface (sections 2, 3), driver or file system (section 4),
format or configuration (section 5), or kernel internal interface
(section 9) belongs in here.

Section 7 is a little less clear: some things that might go in section
7 if they were a man page aren't really reference manuals. So I'm only
putting things in reference section 7 that are (to me) clearly
reference material, rather than e.g. tutorials, guides, FAQs, etc.
This obviously leaves some room for debate, especially without first
editing the docs with this distinction in mind, but if people hate
what I've done things can always be moved again.

Note also that while roff macro man pages traditionally go in section
7, I have put all the roff documentation (macros, tools, etc.) in one
place in reference/ref1/roff. This will make it easier to find and
also easier to edit it into some kind of coherent form.
2014-07-05 19:22:41 +00:00
dholland c3ab26950f Rework /usr/share/doc.
Update the <bsd.doc.mk> infrastructure, and update the docs to match
the new infrastructure.

- Build and install text, ps, pdf, and/or html, not roff sources.

- Don't wire the chapter numbers into the build system, or use them in
the installed pathnames. This didn't matter much when the docs were a
museum, but now that we're theoretically going to start maintaining
them again, we're going to add and remove documents periodically and
having the chapter numbers baked in creates a lot of thrashing for no
purpose.

- Specify the document name explicitly, rather than implicitly in a
path. Use this name (instead of other random strings) as the name
of the installed files.

- Specify the document section, which is the subdirectory of
/usr/share/doc to install into.

- Allow multiple subdocuments. (That is, multiple documents in one
output directory.)

- Enumerate the .png files groff emits along with html so they can be
installed.

- Remove assorted hand-rolled rules for running roff and roff widgetry
and add enough variable settings to make these unnecessary. This
includes support for
   - explicit use of soelim
   - refer
   - tbl
   - pic
   - eqn

- Forcibly apply at least minimal amounts of sanity to certain
autogenerated roff files.

- Don't exclude USD.doc, SMM.doc, and PSD.doc directories from the
build, as they now actually do stuff.

Note: currently we can't generate pdf. This turns out to be a
nontrivial problem with no immediate solution forthcoming. So for now,
as a workaround, install compressed .ps as the printable form.
2014-07-05 19:22:02 +00:00
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