History log of /netbsd-src/lib/libcurses/getstr.c (Results 1 – 25 of 30)
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 ...


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


# 54391ee9 15-Aug-2021 rillig <rillig@NetBSD.org>

libcurses: fix usage of __warn_references

Since that macro can expand to an empty token list, it adds its own
semicolon as needed. Removing the extra semicolon fixes the lint
warnings about empty d

libcurses: fix usage of __warn_references

Since that macro can expand to an empty token list, it adds its own
semicolon as needed. Removing the extra semicolon fixes the lint
warnings about empty declarations. These empty declarations are a GCC
extension.

show more ...


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


# 4650f877 24-Feb-2019 roy <roy@NetBSD.org>

Fix warn macro usage.

Thanks to rofl0r.


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


# 873b5b86 01-Oct-2013 blymn <blymn@NetBSD.org>

Use the internal version of touchline to update the line.


# b76235fd 27-Jan-2012 christos <christos@NetBSD.org>

handle the case where we have no space properly (Nat Sloss)


# acd0d527 06-Jan-2012 christos <christos@NetBSD.org>

PR/45791: Nat Sloss: getnstr erase character weirdness
Fix processing of backspace erase char and char left.


# e124de36 28-May-2007 blymn <blymn@NetBSD.org>

Merge in wide curses code done as a Summer of Code project by
Ruibiao Qiu.


# 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)


# ef592783 02-Jan-2002 blymn <blymn@NetBSD.org>

Remove extraneous tabs from blank lines.


# c84d91aa 02-Dec-2001 blymn <blymn@NetBSD.org>

* Major change to add support for the newterm/set_term functions.
* Added fix to getch.c suggested by Gabriel Rosenkoetter (thanks :-)


# 475308e8 20-Apr-2001 jdc <jdc@NetBSD.org>

Forget to mention: This fixes PR lib/12565.


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

Implement the getnstr() functions.
Add __warn_references() for getstr().
Move getstr() family closer to SUSv2 :
add checks for <carriage return>, the kill character, KEY_LEFT and
KEY_BACKSPACE

Implement the getnstr() functions.
Add __warn_references() for getstr().
Move getstr() family closer to SUSv2 :
add checks for <carriage return>, the kill character, KEY_LEFT and
KEY_BACKSPACE
ignore other KEY_* characters

show more ...


# 2128c86b 01-May-2000 blymn <blymn@NetBSD.org>

* Made erasechar and killchar into functions
* Modified __init_getch to use termcap handle that has been allocated
(_cursesi_genbuf) instead of refetching it.
* Make wgetstr support erase - this is

* Made erasechar and killchar into functions
* Modified __init_getch to use termcap handle that has been allocated
(_cursesi_genbuf) instead of refetching it.
* Make wgetstr support erase - this is not a full blown SUSv2 version
but it is a start.

show more ...


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


# 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


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

repeat after me: "I hate rcs ids"


12