History log of /netbsd-src/lib/libcurses/scroll.c (Results 1 – 25 of 29)
Revision Date Author Comments
# 6348e3f3 23-Dec-2024 blymn <blymn@NetBSD.org>

Sprinkle about some cycle wasting checks for the win pointer being
null. Unfortunately, ncurses does this and there is some sloppy code
out there that relies on the check resulting in segfaults in
N

Sprinkle about some cycle wasting checks for the win pointer being
null. Unfortunately, ncurses does this and there is some sloppy code
out there that relies on the check resulting in segfaults in
NetBSD curses which then, of course, gets blamed for the error.

show more ...


# 8e0f2fc5 05-Dec-2024 blymn <blymn@NetBSD.org>

Fixes PR lib/58823

Implement the ncurses extension wgetscrreg which returns the
scrolling region of the given window. Also implement getscrreg to
get the scrolling region of stdscr which appears to

Fixes PR lib/58823

Implement the ncurses extension wgetscrreg which returns the
scrolling region of the given window. Also implement getscrreg to
get the scrolling region of stdscr which appears to be missing from
ncurses but does follow the convention of having a non w prefixed
function that applies to stdscr.

Due to the addtion of a new function a minor library version bump has
been done.

show more ...


# 0bd3a620 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().


# 2a780e62 09-Jun-2019 blymn <blymn@NetBSD.org>

Rework previous fix for getch cursor position when cursor is moved
without refresh. If the window is not dirty but the window cursor
position does not match curscr then move the cursor. This fixes

Rework previous fix for getch cursor position when cursor is moved
without refresh. If the window is not dirty but the window cursor
position does not match curscr then move the cursor. This fixes
the issues seen in PR lib/54263.

show more ...


# e2cfd49c 20-May-2019 blymn <blymn@NetBSD.org>

Back out incorrect fix for PR 53617 and fix it in a different way.
Keep track of the cursor location, if getch is called without a refresh
and without pending updates (dirty windows) then move the cu

Back out incorrect fix for PR 53617 and fix it in a different way.
Keep track of the cursor location, if getch is called without a refresh
and without pending updates (dirty windows) then move the cursor to the
correct location directly. Doing this prevents unnecessary refreshes.

show more ...


# 871cddc6 10-Feb-2017 blymn <blymn@NetBSD.org>

Remove checks for cursor being in scrolling region, ncurses doesn't
do checking, rather just scrolls the scrolling region so we shall
follow suit. SUSv2 says what is happens when scrl is called with

Remove checks for cursor being in scrolling region, ncurses doesn't
do checking, rather just scrolls the scrolling region so we shall
follow suit. SUSv2 says what is happens when scrl is called with the
cursor outside the scrolling is undefined so we should match ncurses.
This fixes PR#51819 without forcing tin to use terminfo directly.

show more ...


# 50a63ac8 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.


# 98eb8895 03-Feb-2010 roy <roy@NetBSD.org>

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


# 304c3bd2 28-Jul-2009 christos <christos@NetBSD.org>

fix debugging build. Hi Roy!


# 43d5eb45 22-Jul-2009 roy <roy@NetBSD.org>

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

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.

show more ...


# 1f221324 21-Jan-2007 jdc <jdc@NetBSD.org>

Add debug "areas" that allow selective debugging by setting the
"CURSES_TRACE_MASK" environment variable. Postive vales include
debug areas, negative values exclude them.


# eb7c1594 07-Aug-2003 agc <agc@NetBSD.org>

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22280, verified by myself.


# d75ec818 17-Feb-2003 dsl <dsl@NetBSD.org>

Fix resize of windows with subwins.
Let window size be given as a -ver number => lines from bottom.
Fix trace calls of pointers
(approved by Brett Lumn)


# 048f92e8 17-May-2001 jdc <jdc@NetBSD.org>

Set scrolling region top correctly.
Fixes scrolling bug in sub-windows.


# 3f9388e3 20-Apr-2001 jdc <jdc@NetBSD.org>

Implement scrolling regions :
has_ic()
has_il()
setscrreg()
wsetscrreg()


# 606508da 19-Dec-2000 jdc <jdc@NetBSD.org>

Rename variables refering to termcap capabilities from NN to __tc_nn. Case
adjusted to match termcap capability. A few other variable names renamed too
(ones related to or derived from termcap vari

Rename variables refering to termcap capabilities from NN to __tc_nn. Case
adjusted to match termcap capability. A few other variable names renamed too
(ones related to or derived from termcap variables).

show more ...


# 67175858 01-Aug-2000 itojun <itojun@NetBSD.org>

use __cputchar(), not putchar().
otherwise, __CTRACE() will not be useful for debugging curses internals.


# aaf74682 15-Apr-2000 blymn <blymn@NetBSD.org>

Added functions to replace what were previously macros in curses.h
(this is a requirement of SUSv2) - the old macro behaviour can be
restored by defining _CURSES_USE_MACROS.
Changed function prototyp

Added functions to replace what were previously macros in curses.h
(this is a requirement of SUSv2) - the old macro behaviour can be
restored by defining _CURSES_USE_MACROS.
Changed function prototypes to use ANSI style.
All externally visible functions now have ANSI style declarations.

show more ...


# 23464ee5 11-Apr-2000 blymn <blymn@NetBSD.org>

Made data structures opaque


# 586d4ce1 13-Apr-1999 mrg <mrg@NetBSD.org>

Upgrades the standard NetBSD curses library to provide some
of the SYSV curses facilities. The added features are the collapsing
of arrow and function keysequences (as defined by termcap for the
ter

Upgrades the standard NetBSD curses library to provide some
of the SYSV curses facilities. The added features are the collapsing
of arrow and function keysequences (as defined by termcap for the
terminal) into symbolic code returns thus relieving the application of
recognising multi-character key sequences. Other features are the
capability to perform a timed wait for a key (good for when you are
not sure if there is a keypress ready or not) and the capability for
turning off the inter-key timeout when assembling multi-character
function keys.

this work was done by Julian Coleman <J.D.Coleman@newcastle.ac.uk>
and blymn@baea.com.au (Brett Lymn). i'm just integrating it. thanks
HEAPS guys!

show more ...


# 0b7831a3 03-Feb-1998 perry <perry@NetBSD.org>

remove obsolete register declarations


# 716747aa 22-Jul-1997 mikel <mikel@NetBSD.org>

RCSid police, fix warnings


# d29088da 17-Aug-1994 cgd <cgd@NetBSD.org>

clean up import


# f2149bfd 24-Jan-1994 cgd <cgd@NetBSD.org>

changes from branch


# 2f65b613 09-Nov-1993 cgd <cgd@NetBSD.org>

repeat after me: "I hate rcs ids"


12