History log of /netbsd/lib/libcurses/setterm.c (Results 1 – 25 of 71)
Revision Date Author Comments
# 671612ef 06-Sep-2021 rin <rin@NetBSD.org>

Style fixes most for __CTRACE().


# dd26fe31 06-Sep-2021 rin <rin@NetBSD.org>

Expand __CTRACE() to __nothing #ifndef DEBUG.

Remove most of #ifdef DEBUG around __CTRACE() calls.

No binary changes, except for line numbers for assert().


# dc67794c 10-Jun-2021 mcf <mcf@NetBSD.org>

Add missing newline to debug trace message

ok blymn@


# 939dbf78 26-Oct-2018 uwe <uwe@NetBSD.org>

Ignore terminfo padding specifications when checking whether
exit_attribute_mode contains exit_alt_charset_mode.

Fixes PR lib/53653.


# a28da416 02-Oct-2018 roy <roy@NetBSD.org>

curses: fix ripoffline

When creating stdscr, ensure it's placed and sized in accordance with
lines ripped off.
LINES is no longer adjusted for lines ripped off.
POSIX makes no mention that it should

curses: fix ripoffline

When creating stdscr, ensure it's placed and sized in accordance with
lines ripped off.
LINES is no longer adjusted for lines ripped off.
POSIX makes no mention that it should be adjusted.
Bottom lines are now placed correctly.
Lines ripped off are now displayed after calling initscr.

ok kamil@

Fixes PR #53635

show more ...


# a1bd1df7 23-Mar-2017 roy <roy@NetBSD.org>

POSIX says that use_env(3) must precede setupterm(3).
The former lives in curses.h, but the latter lives in term.h.

This is solved by moving the function to libterminfo.
Because the environment can

POSIX says that use_env(3) must precede setupterm(3).
The former lives in curses.h, but the latter lives in term.h.

This is solved by moving the function to libterminfo.
Because the environment can affect the terminal capabilities for
lines and columns, it follows that the tty size should affect it to.
So move that code to libterminfo and adjust in libcurses.

show more ...


# eee2598f 20-Mar-2017 christos <christos@NetBSD.org>

Make this compile again (gcc does not like strcmp(maybe-NULL, maybe-NULL);
simplify the life of the {compiler,human eyes}.


# d3b3f557 31-Jan-2017 roy <roy@NetBSD.org>

Move ESCDELAY to curses.c so all globals are close to each other.
Remove _reentrant and use ESCDELAY and TABSIZE as we're not really
reentrant.


# 2c479b99 30-Jan-2017 roy <roy@NetBSD.org>

Check _cursesi_term is set in a few places and sprinkle some static.


# e2111c78 30-Jan-2017 roy <roy@NetBSD.org>

If either set_escdelay(3) or set_tabsize(3) are called, set _reentrant
to ensure we use the saved value for the sceen.

This effectively makes ESCDELAY and TABSIZE read-only when either
of these func

If either set_escdelay(3) or set_tabsize(3) are called, set _reentrant
to ensure we use the saved value for the sceen.

This effectively makes ESCDELAY and TABSIZE read-only when either
of these functions are called.

show more ...


# 0be09eeb 11-Jan-2017 roy <roy@NetBSD.org>

Move the ripoffline logic out of screen.c and into ripoffline.c.
Store ripped off lines in the SCREEN structure so we can repaint then
when the terminal is resized.
Fix mvwin(3) so it can move window

Move the ripoffline logic out of screen.c and into ripoffline.c.
Store ripped off lines in the SCREEN structure so we can repaint then
when the terminal is resized.
Fix mvwin(3) so it can move windows in the ripped off area.

show more ...


# 43af8cb0 10-Jan-2017 roy <roy@NetBSD.org>

Implement POSIX curses function ripoffline(3).


# 80b412b0 06-Jan-2017 roy <roy@NetBSD.org>

KNF.
Normalise coding style.
White space police.
Sprinkle some extra braces to make the flow more clear.

No functional changes.


# 91095022 05-Jan-2017 roy <roy@NetBSD.org>

Whitespace


# 0d1e3dc8 05-Jan-2017 roy <roy@NetBSD.org>

Add the set_escdelay(3) and set_tabsize(3) ncurses extensions.


# 180446a4 31-Dec-2016 roy <roy@NetBSD.org>

Implement POSIX curses use_env function.


# b45a9f75 30-Dec-2016 roy <roy@NetBSD.org>

Add the POSIX filter() function to libcurses.


# 138c1302 09-Jan-2016 jdc <jdc@NetBSD.org>

Remove extra new line in debugging output.


# f2989ffa 24-Nov-2015 christos <christos@NetBSD.org>

PR/50092: don't leak screen on multiple setterms.


# 32f914f8 16-Oct-2013 roy <roy@NetBSD.org>

Add TABSIZE, which is derived from terminfo init_tabs.
Use this when processing \t.
If TABSIZE is set in the environment, this takes precedence.


# 02c2104a 25-Sep-2013 dsainty <dsainty@NetBSD.org>

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, checkin

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.

show more ...


# eb0a8cb1 05-May-2013 jdc <jdc@NetBSD.org>

Extend does_ctrl_o() to compare exit attribute and ext ACS sequences.


# ad261ed4 21-Apr-2012 roy <roy@NetBSD.org>

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

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.

show more ...


# d8291fca 04-Oct-2011 roy <roy@NetBSD.org>

Move longname(3) from curses to terminfo, pre-cursor to fix PR/43386.


# 582936ff 11-Feb-2010 roy <roy@NetBSD.org>

Don't assume the terminal has a description.


123