The NetBSD Project

CVS log for src/lib/libcurses/getch.c

[BACK] Up to [cvs.NetBSD.org] / src / lib / libcurses

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.78 / (download) - annotate - [select for diffs], Tue Oct 19 06:37:29 2021 UTC (2 years, 6 months ago) by blymn
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10-0-RELEASE, netbsd-10-0-RC6, netbsd-10-0-RC5, netbsd-10-0-RC4, netbsd-10-0-RC3, netbsd-10-0-RC2, netbsd-10-0-RC1, netbsd-10, HEAD
Changes since 1.77: +4 -4 lines
Diff to previous 1.77 (colored) to selected 1.23 (colored)


Fix for PR pkg/55931
Don't move the cursor when getch is called if input is not going to
be echoed.  Lynx uses the cursor to mark the current selection in a
pop-up, previously the cursor was being relocated when getch was called
which broke the Lynx item marking.

Revision 1.77 / (download) - annotate - [select for diffs], Mon Sep 6 07:45:48 2021 UTC (2 years, 7 months ago) by rin
Branch: MAIN
Changes since 1.76: +29 -24 lines
Diff to previous 1.76 (colored) to selected 1.23 (colored)

Style fixes most for __CTRACE().

Revision 1.76 / (download) - annotate - [select for diffs], Mon Sep 6 07:03:49 2021 UTC (2 years, 7 months ago) by rin
Branch: MAIN
Changes since 1.75: +2 -36 lines
Diff to previous 1.75 (colored) to selected 1.23 (colored)

Expand __CTRACE() to __nothing #ifndef DEBUG.

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

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

Revision 1.73.2.1 / (download) - annotate - [select for diffs], Tue Jul 7 12:51:18 2020 UTC (3 years, 9 months ago) by martin
Branch: netbsd-9
CVS Tags: netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Changes since 1.73: +7 -7 lines
Diff to previous 1.73 (colored) next main 1.74 (colored) to selected 1.23 (colored)

Pull up following revision(s) (requested by uwe in ticket #987):

	lib/libcurses/get_wch.c: revision 1.24
	lib/libcurses/getch.c: revision 1.75

Pads are not to be automatically refreshed on input.

X/Open Curses says in the documentation for newpad():
  Automatic refreshes of pads (e.g., from scrolling or echoing of
  input) do not occur.

And in the documentation for get*():
  If the current or specified window is not a pad, and it has been
  moved or modified since the last refresh operation, then it will be
  refreshed before another character is read.

From Michael Forney in PR lib/55457

Revision 1.75 / (download) - annotate - [select for diffs], Mon Jul 6 23:33:38 2020 UTC (3 years, 9 months ago) by uwe
Branch: MAIN
CVS Tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.74: +7 -7 lines
Diff to previous 1.74 (colored) to selected 1.23 (colored)

Pads are not to be automatically refreshed on input.

X/Open Curses says in the documentation for newpad():

  Automatic refreshes of pads (e.g., from scrolling or echoing of
  input) do not occur.

And in the documentation for get*():

  If the current or specified window is not a pad, and it has been
  moved or modified since the last refresh operation, then it will be
  refreshed before another character is read.

From Michael Forney in PR lib/55457

Revision 1.74 / (download) - annotate - [select for diffs], Thu May 14 11:50:04 2020 UTC (3 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.73: +4 -6 lines
Diff to previous 1.73 (colored) to selected 1.23 (colored)

KNF nit.

Revision 1.65.12.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:05:22 2019 UTC (4 years, 10 months ago) by christos
Branch: phil-wifi
Changes since 1.65: +75 -31 lines
Diff to previous 1.65 (colored) next main 1.66 (colored) to selected 1.23 (colored)

Sync with HEAD

Revision 1.73 / (download) - annotate - [select for diffs], Sun Jun 9 07:40:14 2019 UTC (4 years, 10 months ago) by blymn
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, is-mlppp-base, is-mlppp
Branch point for: netbsd-9
Changes since 1.72: +13 -12 lines
Diff to previous 1.72 (colored) to selected 1.23 (colored)

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.

Revision 1.72 / (download) - annotate - [select for diffs], Mon May 20 22:17:41 2019 UTC (4 years, 11 months ago) by blymn
Branch: MAIN
Changes since 1.71: +25 -3 lines
Diff to previous 1.71 (colored) to selected 1.23 (colored)

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.

Revision 1.59.10.1 / (download) - annotate - [select for diffs], Fri Mar 15 14:36:22 2019 UTC (5 years, 1 month ago) by martin
Branch: netbsd-7
Changes since 1.59: +18 -16 lines
Diff to previous 1.59 (colored) next main 1.60 (colored) to selected 1.23 (colored)

Pull up following revision(s) (requested by rin in ticket #1686):

	lib/libcurses/get_wch.c: revision 1.21
	lib/libcurses/getch.c: revision 1.71

Rename global variable "state" to "_cursesi_state".

Until now, if application happens to have a global variable of the same
name, it was overridden by curses routines. This is the scenario in
which aspell crashes when linked to our curses, reported in pkg/44005.

We need to wipe out global/static variables like "_cursesi_state" or
"wstate" for thread safety. But it would be a future task...

XXX pullup to netbsd-8 and netbsd-7

Revision 1.65.4.4 / (download) - annotate - [select for diffs], Fri Mar 15 14:30:19 2019 UTC (5 years, 1 month ago) by martin
Branch: netbsd-8
CVS Tags: netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Changes since 1.65.4.3: +18 -16 lines
Diff to previous 1.65.4.3 (colored) to branchpoint 1.65 (colored) next main 1.66 (colored) to selected 1.23 (colored)

Pull up following revision(s) (requested by rin in ticket #1214):

	lib/libcurses/get_wch.c: revision 1.21
	lib/libcurses/getch.c: revision 1.71

Rename global variable "state" to "_cursesi_state".

Until now, if application happens to have a global variable of the same
name, it was overridden by curses routines. This is the scenario in
which aspell crashes when linked to our curses, reported in pkg/44005.

We need to wipe out global/static variables like "_cursesi_state" or
"wstate" for thread safety. But it would be a future task...

XXX pullup to netbsd-8 and netbsd-7

Revision 1.71 / (download) - annotate - [select for diffs], Thu Mar 14 00:36:06 2019 UTC (5 years, 1 month ago) by rin
Branch: MAIN
Changes since 1.70: +18 -16 lines
Diff to previous 1.70 (colored) to selected 1.23 (colored)

Rename global variable "state" to "_cursesi_state".

Until now, if application happens to have a global variable of the same
name, it was overridden by curses routines. This is the scenario in
which aspell crashes when linked to our curses, reported in pkg/44005.

We need to wipe out global/static variables like "_cursesi_state" or
"wstate" for thread safety. But it would be a future task...

XXX pullup to netbsd-8 and netbsd-7

Revision 1.65.4.3 / (download) - annotate - [select for diffs], Wed Oct 3 17:49:06 2018 UTC (5 years, 6 months ago) by martin
Branch: netbsd-8
Changes since 1.65.4.2: +4 -4 lines
Diff to previous 1.65.4.2 (colored) to branchpoint 1.65 (colored) to selected 1.23 (colored)

Pull up following revision(s) (requested by roy in ticket #1043):

	lib/libcurses/resize.c: revision 1.27
	lib/libcurses/get_wch.c: revision 1.19
	lib/libcurses/getch.c: revision 1.70

curses: resizeterm(3) should always send KEY_RESIZE

Fixes #53636

OK kamil@

Revision 1.65.10.1 / (download) - annotate - [select for diffs], Sun Sep 30 01:45:33 2018 UTC (5 years, 6 months ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.65: +36 -17 lines
Diff to previous 1.65 (colored) next main 1.66 (colored) to selected 1.23 (colored)

Ssync with HEAD

Revision 1.70 / (download) - annotate - [select for diffs], Fri Sep 28 15:03:48 2018 UTC (5 years, 6 months ago) by roy
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930
Changes since 1.69: +4 -4 lines
Diff to previous 1.69 (colored) to selected 1.23 (colored)

curses: resizeterm(3) should always send KEY_RESIZE

Fixes #53636

OK kamil@

Revision 1.65.4.2 / (download) - annotate - [select for diffs], Thu Sep 27 15:12:15 2018 UTC (5 years, 6 months ago) by martin
Branch: netbsd-8
Changes since 1.65.4.1: +35 -29 lines
Diff to previous 1.65.4.1 (colored) to branchpoint 1.65 (colored) to selected 1.23 (colored)

Pull up following revision(s) (requested by roy in ticket #1042):
	lib/libcurses/getch.c: revision 1.68
	lib/libcurses/getch.c: revision 1.69
	lib/libcurses/get_wch.c: revision 1.17
	lib/libcurses/get_wch.c: revision 1.18
	lib/libcurses/curses_private.h: revision 1.63
curses: unify resize handling in getch
Instead of testing each fgetc call for resize event, add the wrapper
__fgetc_resize to simplify the logic.
While here, ensure that get_wch uses the correct input stream which
may or may not be stdin.
curses: call resizeterm if getch issues KEY_RESIZE
This fixes PR #53633.

Revision 1.65.4.1 / (download) - annotate - [select for diffs], Thu Sep 27 14:59:28 2018 UTC (5 years, 6 months ago) by martin
Branch: netbsd-8
Changes since 1.65: +18 -5 lines
Diff to previous 1.65 (colored) to selected 1.23 (colored)

Pull up following revision(s) (requested by kamil in ticket #1039):

	lib/libcurses/getch.c: revision 1.66
	lib/libcurses/getch.c: revision 1.67
	lib/libcurses/tstp.c: revision 1.43
	lib/libcurses/get_wch.c: revision 1.15
	lib/libcurses/get_wch.c: revision 1.16

PR lib/53615
getch() and get_wch() should return KEY_RESIZE when interrupted by SIGWIN=
CH.

OK roy

 -

PR lib/53615
Before invoking a previous signal handler, make sure it is not SIG_*.
Fix potential crash with SIGWINCH.

OK roy

 -

Correct detecting of terminal resize in curses(3) with keypad(,TRUE)
A previous change fixed only keypad(,FALSE) scenarios.

 -

Handle catching terminal resize in INKEY_NORM and INKEY_ASSEMBLING (in the
middle of assembling a key code from passed codes) as both accept keys with
fgetc(3) and both can be in theory interrupted with a resize.

PR lib/53615

Revision 1.69 / (download) - annotate - [select for diffs], Thu Sep 27 14:07:55 2018 UTC (5 years, 6 months ago) by roy
Branch: MAIN
Changes since 1.68: +4 -2 lines
Diff to previous 1.68 (colored) to selected 1.23 (colored)

curses: call resizeterm if getch issues KEY_RESIZE

This fixes PR #53633.

Revision 1.68 / (download) - annotate - [select for diffs], Thu Sep 27 14:05:26 2018 UTC (5 years, 6 months ago) by roy
Branch: MAIN
Changes since 1.67: +33 -29 lines
Diff to previous 1.67 (colored) to selected 1.23 (colored)

curses: unify resize handling in getch

Instead of testing each fgetc call for resize event, add the wrapper
__fgetc_resize to simplify the logic.
While here, ensure that get_wch uses the correct input stream which
may or may not be stdin.

Revision 1.67 / (download) - annotate - [select for diffs], Wed Sep 26 14:42:22 2018 UTC (5 years, 6 months ago) by kamil
Branch: MAIN
Changes since 1.66: +12 -4 lines
Diff to previous 1.66 (colored) to selected 1.23 (colored)

Correct detecting of terminal resize in curses(3) with keypad(,TRUE)

A previous change fixed only keypad(,FALSE) scenarios.

Handle catching terminal resize in INKEY_NORM and INKEY_ASSEMBLING (in the
middle of assembling a key code from passed codes) as both accept keys with
fgetc(3) and both can be in theory interrupted with a resize.

PR lib/53615

Revision 1.66 / (download) - annotate - [select for diffs], Tue Sep 18 22:46:18 2018 UTC (5 years, 7 months ago) by rin
Branch: MAIN
Changes since 1.65: +8 -3 lines
Diff to previous 1.65 (colored) to selected 1.23 (colored)

PR lib/53615

getch() and get_wch() should return KEY_RESIZE when interrupted by SIGWINCH.

OK roy

Revision 1.62.2.1 / (download) - annotate - [select for diffs], Fri Apr 21 16:53:10 2017 UTC (6 years, 11 months ago) by bouyer
Branch: bouyer-socketcan
Changes since 1.62: +21 -14 lines
Diff to previous 1.62 (colored) next main 1.63 (colored) to selected 1.23 (colored)

Sync with HEAD

Revision 1.59.14.2 / (download) - annotate - [select for diffs], Mon Mar 20 06:56:59 2017 UTC (7 years, 1 month ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.59.14.1: +21 -14 lines
Diff to previous 1.59.14.1 (colored) to branchpoint 1.59 (colored) next main 1.60 (colored) to selected 1.23 (colored)

Sync with HEAD

Revision 1.65 / (download) - annotate - [select for diffs], Tue Jan 31 09:17:53 2017 UTC (7 years, 2 months ago) by roy
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, phil-wifi-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-compat-base, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315, perseant-stdc-iso10646-base, perseant-stdc-iso10646, netbsd-8-base, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, matt-nb8-mediatek-base, matt-nb8-mediatek, bouyer-socketcan-base1
Branch point for: phil-wifi, pgoyette-compat, netbsd-8
Changes since 1.64: +4 -9 lines
Diff to previous 1.64 (colored) to selected 1.23 (colored)

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.

Revision 1.64 / (download) - annotate - [select for diffs], Mon Jan 30 16:50:44 2017 UTC (7 years, 2 months ago) by roy
Branch: MAIN
Changes since 1.63: +19 -9 lines
Diff to previous 1.63 (colored) to selected 1.23 (colored)

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

Revision 1.63 / (download) - annotate - [select for diffs], Mon Jan 30 14:55:58 2017 UTC (7 years, 2 months ago) by roy
Branch: MAIN
Changes since 1.62: +5 -3 lines
Diff to previous 1.62 (colored) to selected 1.23 (colored)

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.

Revision 1.59.14.1 / (download) - annotate - [select for diffs], Sat Jan 7 08:56:04 2017 UTC (7 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.59: +45 -20 lines
Diff to previous 1.59 (colored) to selected 1.23 (colored)

Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.62 / (download) - annotate - [select for diffs], Fri Jan 6 13:53:18 2017 UTC (7 years, 3 months ago) by roy
Branch: MAIN
CVS Tags: pgoyette-localcount-20170107, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Changes since 1.61: +11 -11 lines
Diff to previous 1.61 (colored) to selected 1.23 (colored)

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

No functional changes.

Revision 1.61 / (download) - annotate - [select for diffs], Thu Jan 5 20:31:37 2017 UTC (7 years, 3 months ago) by roy
Branch: MAIN
Changes since 1.60: +19 -5 lines
Diff to previous 1.60 (colored) to selected 1.23 (colored)

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

Revision 1.60 / (download) - annotate - [select for diffs], Sun Jan 1 03:06:06 2017 UTC (7 years, 3 months ago) by roy
Branch: MAIN
Changes since 1.59: +19 -8 lines
Diff to previous 1.59 (colored) to selected 1.23 (colored)

Implement ncurses extension has_key.

Revision 1.58.4.1 / (download) - annotate - [select for diffs], Wed May 23 10:07:31 2012 UTC (11 years, 10 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.58: +5 -5 lines
Diff to previous 1.58 (colored) next main 1.59 (colored) to selected 1.23 (colored)

sync with head.

Revision 1.59 / (download) - annotate - [select for diffs], Sat Apr 21 12:27:28 2012 UTC (12 years ago) by roy
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, yamt-pagecache-base5, tls-maxphys-base, tls-maxphys, tls-earlyentropy-base, tls-earlyentropy, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, pgoyette-localcount-base, pgoyette-localcount-20161104, pgoyette-localcount-20160806, pgoyette-localcount-20160726, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, localcount-20160914, agc-symver-base, agc-symver
Branch point for: pgoyette-localcount, netbsd-7
Changes since 1.58: +5 -5 lines
Diff to previous 1.58 (colored) to selected 1.23 (colored)

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.

Revision 1.58 / (download) - annotate - [select for diffs], Thu Apr 21 08:10:49 2011 UTC (13 years ago) by blymn
Branch: MAIN
CVS Tags: yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, netbsd-6, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, cherry-xenmp-base, cherry-xenmp
Branch point for: yamt-pagecache
Changes since 1.57: +13 -12 lines
Diff to previous 1.57 (colored) to selected 1.23 (colored)

Fix deleting a key definition, it did not work.  Also improve tracing
of key definition deletion.

Revision 1.57 / (download) - annotate - [select for diffs], Tue Dec 7 22:02:52 2010 UTC (13 years, 4 months ago) by joerg
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Changes since 1.56: +3 -3 lines
Diff to previous 1.56 (colored) to selected 1.23 (colored)

Since limit and l are both unsigned, comparing to 0 doesn't work, so compare
the values directly.

Revision 1.56 / (download) - annotate - [select for diffs], Fri Nov 5 11:38:54 2010 UTC (13 years, 5 months ago) by blymn
Branch: MAIN
Changes since 1.55: +3 -3 lines
Diff to previous 1.55 (colored) to selected 1.23 (colored)

Don't echo key symbols.

Revision 1.55 / (download) - annotate - [select for diffs], Wed Feb 3 15:34:40 2010 UTC (14 years, 2 months ago) by roy
Branch: MAIN
Changes since 1.54: +167 -161 lines
Diff to previous 1.54 (colored) to selected 1.23 (colored)

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@

Revision 1.54 / (download) - annotate - [select for diffs], Wed Nov 4 21:51:11 2009 UTC (14 years, 5 months ago) by dsl
Branch: MAIN
CVS Tags: matt-premerge-20091211
Changes since 1.53: +5 -5 lines
Diff to previous 1.53 (colored) to selected 1.23 (colored)

Read input from the correct FILE.

Revision 1.53 / (download) - annotate - [select for diffs], Sun Nov 1 22:11:27 2009 UTC (14 years, 5 months ago) by dsl
Branch: MAIN
Changes since 1.52: +7 -17 lines
Diff to previous 1.52 (colored) to selected 1.23 (colored)

Move calls to __restore_termios() into the failing path of the functions
that fail - instead of in most of the callers.
All rather pointless if tcsetattr() fails to set the mode we want we
are very unlikely to be able to restore any later on.

Revision 1.51.10.1 / (download) - annotate - [select for diffs], Wed May 13 19:18:28 2009 UTC (14 years, 11 months ago) by jym
Branch: jym-xensuspend
Changes since 1.51: +8 -8 lines
Diff to previous 1.51 (colored) next main 1.52 (colored) to selected 1.23 (colored)

Sync with HEAD.

Third (and last) commit. See http://mail-index.netbsd.org/source-changes/2009/05/13/msg221222.html

Revision 1.51.8.1 / (download) - annotate - [select for diffs], Wed Feb 18 01:13:54 2009 UTC (15 years, 2 months ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, matt-nb5-pq3-base, matt-nb5-pq3, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-premerge-20091211, matt-nb5-mips64-k15, matt-nb5-mips64, matt-nb4-mips64-k7-u2a-k9b
Changes since 1.51: +8 -8 lines
Diff to previous 1.51 (colored) next main 1.52 (colored) to selected 1.23 (colored)

Pull up following revision(s) (requested by jdc in ticket #451):
	lib/libcurses/getch.c: revision 1.52
Fix bug where a single ESC was not recognised when in keypad() mode.
Noticed by abs@.

Revision 1.52 / (download) - annotate - [select for diffs], Mon Feb 9 12:45:59 2009 UTC (15 years, 2 months ago) by jdc
Branch: MAIN
CVS Tags: jym-xensuspend-nbase, jym-xensuspend-base
Changes since 1.51: +8 -8 lines
Diff to previous 1.51 (colored) to selected 1.23 (colored)

Fix bug where a single ESC was not recognised when in keypad() mode.
Noticed by abs@.

Revision 1.51 / (download) - annotate - [select for diffs], Mon Apr 14 20:32:53 2008 UTC (16 years ago) by jdc
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-pf42-base, yamt-pf42, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, netbsd-5-base, netbsd-5-0-RC2, netbsd-5-0-RC1, matt-mips64-base2, hpcarm-cleanup-nbase
Branch point for: netbsd-5, jym-xensuspend
Changes since 1.50: +8 -2 lines
Diff to previous 1.50 (colored) to selected 1.23 (colored)

Add extra debugging information.

Revision 1.48.4.2 / (download) - annotate - [select for diffs], Wed Jan 9 01:36:23 2008 UTC (16 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.48.4.1: +58 -27 lines
Diff to previous 1.48.4.1 (colored) to branchpoint 1.48 (colored) next main 1.49 (colored) to selected 1.23 (colored)

sync with HEAD

Revision 1.50 / (download) - annotate - [select for diffs], Sat Dec 8 18:38:11 2007 UTC (16 years, 4 months ago) by jdc
Branch: MAIN
CVS Tags: matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf
Changes since 1.49: +58 -27 lines
Diff to previous 1.49 (colored) to selected 1.23 (colored)

Keep pushed-back characters locally.  Fixes problems where KEY_* symbols
are pushed back.  Should fix the arrow keys part of PR pkg/37173.

While we are here, make getch() and get_wch() check for resize immediately,
instead of reading a key, checking for resize and then having to push-back
the just read key.

Revision 1.48.4.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:11:24 2007 UTC (16 years, 5 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.48: +15 -2 lines
Diff to previous 1.48 (colored) to selected 1.23 (colored)

sync with HEAD

Revision 1.49 / (download) - annotate - [select for diffs], Tue Aug 28 12:28:18 2007 UTC (16 years, 7 months ago) by blymn
Branch: MAIN
Changes since 1.48: +15 -2 lines
Diff to previous 1.48 (colored) to selected 1.23 (colored)

Fix a crash caused by having a single NULL character as a string capability.
This fix is about the best we can do given the current interfaces. We
could extend the cgetcap(3) interfaces with a function that would return
a character count and handle this in libterm which would provide a more
complete fix and allow a NULL character in a string capability.

Revision 1.48 / (download) - annotate - [select for diffs], Mon May 28 15:01:55 2007 UTC (16 years, 10 months ago) by blymn
Branch: MAIN
CVS Tags: matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: matt-armv6
Changes since 1.47: +36 -96 lines
Diff to previous 1.47 (colored) to selected 1.23 (colored)

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

Revision 1.46.6.3 / (download) - annotate - [select for diffs], Thu Jan 25 08:50:14 2007 UTC (17 years, 2 months ago) by blymn
Branch: wcurses
Changes since 1.46.6.2: +176 -19 lines
Diff to previous 1.46.6.2 (colored) to branchpoint 1.46 (colored) next main 1.47 (colored) to selected 1.23 (colored)

 * rearrange code to ensure that SET_WCOL() is called after attributes
   are copied/set.

 * fix some instances where attributes were being checked without
   masking with WA_ATTRIBUTES

 * Replace another instance of non-spacing character copying with function
   call.

Revision 1.46.6.2 / (download) - annotate - [select for diffs], Sun Jan 21 17:43:35 2007 UTC (17 years, 3 months ago) by jdc
Branch: wcurses
Changes since 1.46.6.1: +25 -20 lines
Diff to previous 1.46.6.1 (colored) to branchpoint 1.46 (colored) to selected 1.23 (colored)

Apply the changes that add debug "areas" on HEAD to the wcurses branch.
Add correspending changes to the debug code that is only present on the branch.

Revision 1.47 / (download) - annotate - [select for diffs], Sun Jan 21 13:25:36 2007 UTC (17 years, 3 months ago) by jdc
Branch: MAIN
Changes since 1.46: +22 -17 lines
Diff to previous 1.46 (colored) to selected 1.23 (colored)

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

Revision 1.46.6.1 / (download) - annotate - [select for diffs], Sun Jan 21 11:38:59 2007 UTC (17 years, 3 months ago) by blymn
Branch: wcurses
Changes since 1.46: +12 -229 lines
Diff to previous 1.46 (colored) to selected 1.23 (colored)

Wide curses merge

Revision 1.46 / (download) - annotate - [select for diffs], Tue Jul 25 21:45:00 2006 UTC (17 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, wcurses-base, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, abandoned-netbsd-4-base, abandoned-netbsd-4
Branch point for: wcurses
Changes since 1.45: +9 -2 lines
Diff to previous 1.45 (colored) to selected 1.23 (colored)

PR/34011: Julian Coleman: Limit timeout to 25.5 seconds.

Revision 1.45 / (download) - annotate - [select for diffs], Sun Mar 19 01:58:48 2006 UTC (18 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.44: +3 -3 lines
Diff to previous 1.44 (colored) to selected 1.23 (colored)

Coverity CID 1246: Don't allow getc == -1 to propagate as an array index.

Revision 1.44 / (download) - annotate - [select for diffs], Mon Mar 22 18:57:10 2004 UTC (20 years, 1 month ago) by jdc
Branch: MAIN
CVS Tags: netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-base, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2-0, netbsd-2
Changes since 1.43: +26 -3 lines
Diff to previous 1.43 (colored) to selected 1.23 (colored)

Add KEY_RESIZE support and a SIGWINCH handler.
Fixes PR bin/20032.
This requires a change to KEY_MAX, which affects libform and libmenu, so we
need to change libcurses major number.

Revision 1.43 / (download) - annotate - [select for diffs], Tue Mar 16 07:44:31 2004 UTC (20 years, 1 month ago) by jdc
Branch: MAIN
Changes since 1.42: +3 -3 lines
Diff to previous 1.42 (colored) to selected 1.23 (colored)

Minor style change.

Revision 1.42 / (download) - annotate - [select for diffs], Thu Aug 7 16:44:21 2003 UTC (20 years, 8 months ago) by agc
Branch: MAIN
Changes since 1.41: +3 -7 lines
Diff to previous 1.41 (colored) to selected 1.23 (colored)

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

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

Revision 1.36.2.1 / (download) - annotate - [select for diffs], Mon Jun 16 13:14:31 2003 UTC (20 years, 10 months ago) by grant
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002
Changes since 1.36: +7 -4 lines
Diff to previous 1.36 (colored) next main 1.37 (colored) to selected 1.23 (colored)

Apply patch (requested by jdc in ticket #1244):

Keep the cr->nl translation state in a separate variable, so that we can
do the translation ourselves (if the tty didn't do it for us).
Add debugging to track functions that change tty state.

Revision 1.41 / (download) - annotate - [select for diffs], Tue Apr 8 18:55:43 2003 UTC (21 years ago) by jdc
Branch: MAIN
Changes since 1.40: +6 -6 lines
Diff to previous 1.40 (colored) to selected 1.23 (colored)

Add ESCDELAY variable to control the inter-key delay in escape sequences.
Fixes PR 20031 by Thomas Klausner.

Revision 1.40 / (download) - annotate - [select for diffs], Sat Apr 5 10:06:59 2003 UTC (21 years ago) by jdc
Branch: MAIN
Changes since 1.39: +7 -4 lines
Diff to previous 1.39 (colored) to selected 1.23 (colored)

Keep the cr->nl translation state in a separate variable, so that we can
do the translation ourselves (if the tty didn't do it for us).
Add debugging to track functions that change tty state.

Fixes PR 20834 by Stephen Borrill.

Revision 1.39 / (download) - annotate - [select for diffs], Mon Feb 17 11:07:20 2003 UTC (21 years, 2 months ago) by dsl
Branch: MAIN
Changes since 1.38: +3 -3 lines
Diff to previous 1.38 (colored) to selected 1.23 (colored)

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)

Revision 1.38 / (download) - annotate - [select for diffs], Mon Dec 23 12:11:38 2002 UTC (21 years, 4 months ago) by jdc
Branch: MAIN
CVS Tags: fvdl_fs64_base
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored) to selected 1.23 (colored)

Increase default delay when assembling key sequences.  This seems to
eliminate the occasional non-recognition of key sequences over remote
connections.
Okayed by blymn.

Revision 1.37 / (download) - annotate - [select for diffs], Tue Oct 22 12:07:20 2002 UTC (21 years, 6 months ago) by blymn
Branch: MAIN
Changes since 1.36: +208 -69 lines
Diff to previous 1.36 (colored) to selected 1.23 (colored)

Added the ncurses extensions define_key and keyok.

Revision 1.36 / (download) - annotate - [select for diffs], Wed Jan 2 10:38:27 2002 UTC (22 years, 3 months ago) by blymn
Branch: MAIN
CVS Tags: netbsd-1-6-base, netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Branch point for: netbsd-1-6
Changes since 1.35: +5 -5 lines
Diff to previous 1.35 (colored) to selected 1.23 (colored)

Remove extraneous tabs from blank lines.

Revision 1.35 / (download) - annotate - [select for diffs], Sun Dec 2 09:14:21 2001 UTC (22 years, 4 months ago) by blymn
Branch: MAIN
Changes since 1.34: +49 -28 lines
Diff to previous 1.34 (colored) to selected 1.23 (colored)

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

Revision 1.34 / (download) - annotate - [select for diffs], Thu Nov 1 16:06:59 2001 UTC (22 years, 5 months ago) by tron
Branch: MAIN
Changes since 1.33: +2 -3 lines
Diff to previous 1.33 (colored) to selected 1.23 (colored)

Remove bogus call to free(3) which caused several warning messages in
application using our "curses" library after the latest change to
memory management in the "c" library.

Revision 1.33 / (download) - annotate - [select for diffs], Wed Jan 10 14:02:32 2001 UTC (23 years, 3 months ago) by blymn
Branch: MAIN
Changes since 1.32: +6 -6 lines
Diff to previous 1.32 (colored) to selected 1.23 (colored)

Fixed casting bug in array indexing, a signed char was being sign
extended when cast to unsigned, made the cast "unsigned char"

Revision 1.29.4.3 / (download) - annotate - [select for diffs], Fri Sep 29 12:33:52 2000 UTC (23 years, 6 months ago) by itojun
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-RELEASE, netbsd-1-5-PATCH003, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA
Changes since 1.29.4.2: +4 -3 lines
Diff to previous 1.29.4.2 (colored) to branchpoint 1.29 (colored) next main 1.30 (colored) to selected 1.23 (colored)

pullup 1.31 -> 1.32 (approved by releng-1-5)

>do not call wrefresh() uncondintionally from wgetch().  call it only
>when the window was touched (is_wintouched()).
>the previous behavior damaged existing applications, especially when it issues
>lots of subwindow manipulation and mvcur().
>
>it was introduced in 1.23 -> 1.24 or sometime before.

Revision 1.32 / (download) - annotate - [select for diffs], Sat Sep 23 09:34:07 2000 UTC (23 years, 7 months ago) by itojun
Branch: MAIN
Changes since 1.31: +4 -3 lines
Diff to previous 1.31 (colored) to selected 1.23 (colored)

do not call wrefresh() uncondintionally from wgetch().  call it only
when the window was touched (is_wintouched()).
the previous behavior damaged existing applications, especially when it issues
lots of subwindow manipulation and mvcur().

it was introduced in 1.23 -> 1.24 or sometime before.

Revision 1.29.4.2 / (download) - annotate - [select for diffs], Thu Aug 3 11:40:01 2000 UTC (23 years, 8 months ago) by itojun
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-ALPHA2
Changes since 1.29.4.1: +6 -3 lines
Diff to previous 1.29.4.1 (colored) to branchpoint 1.29 (colored) to selected 1.23 (colored)

pullup 1.30 -> 1.31 (approved by releng-1-5)

 > free region got from t_getstr().  we will experience memory leak if
 > we call initscr() multiple times (rare, but it's better to be pedant).

Revision 1.29.4.1 / (download) - annotate - [select for diffs], Thu Aug 3 11:38:26 2000 UTC (23 years, 8 months ago) by itojun
Branch: netbsd-1-5
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored) to selected 1.23 (colored)

pullup 1.29 -> 1.30 (approved by releng-1-5)

 > fix 8bit cleanness of getch() and wgetch().  never use char variable against
 > stdio functions which return "int" (including getchar()).
 > the bug was introduced in 1.9 -> 1.10.  fixes PR10723.

Revision 1.31 / (download) - annotate - [select for diffs], Mon Jul 31 18:55:35 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.30: +6 -3 lines
Diff to previous 1.30 (colored) to selected 1.23 (colored)

free region got from t_getstr().  we will experience memory leak if
we call initscr() multiple times (rare, but it's better to be pedant).

Revision 1.30 / (download) - annotate - [select for diffs], Mon Jul 31 16:22:46 2000 UTC (23 years, 8 months ago) by itojun
Branch: MAIN
Changes since 1.29: +5 -5 lines
Diff to previous 1.29 (colored) to selected 1.23 (colored)

fix 8bit cleanness of getch() and wgetch().  never use char variable against
stdio functions which return "int" (including getchar()).
the bug was introduced in 1.9 -> 1.10.  fixes PR10723.

Revision 1.29 / (download) - annotate - [select for diffs], Thu May 25 06:46:26 2000 UTC (23 years, 11 months ago) by jdc
Branch: MAIN
CVS Tags: netbsd-1-5-base, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.28: +0 -8 lines
Diff to previous 1.28 (colored) to selected 1.23 (colored)

Send 'ks' sequence from first call to keypad(win, TRUE) only and not from
wgetch().  Don't send 'ke' sequence from keypad(win, FALSE) or wgetch().
This makes us compatible with Solaris.
Suggested by ITOH Yasufumi.

Revision 1.28 / (download) - annotate - [select for diffs], Wed May 17 16:23:49 2000 UTC (23 years, 11 months ago) by jdc
Branch: MAIN
Changes since 1.27: +10 -2 lines
Diff to previous 1.27 (colored) to selected 1.23 (colored)

Send, if necessary, 'ks' or 'ke' sequences from keypad() and wgetch().
Fixes PR 10116.

Revision 1.27 / (download) - annotate - [select for diffs], Mon May 1 12:30:30 2000 UTC (23 years, 11 months ago) by blymn
Branch: MAIN
Changes since 1.26: +44 -45 lines
Diff to previous 1.26 (colored) to selected 1.23 (colored)

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

Revision 1.26 / (download) - annotate - [select for diffs], Thu Apr 27 17:50:01 2000 UTC (23 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.25: +3 -4 lines
Diff to previous 1.25 (colored) to selected 1.23 (colored)

No, really, make sure ECHO is cleared in cbreak() mode too.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Apr 27 00:23:26 2000 UTC (23 years, 11 months ago) by jdc
Branch: MAIN
Changes since 1.24: +119 -3 lines
Diff to previous 1.24 (colored) to selected 1.23 (colored)

Add extra KEY_* definitions (from SUSv2).
Fix `gcc -Wuninitialized`.

Revision 1.24 / (download) - annotate - [select for diffs], Sun Apr 23 14:14:49 2000 UTC (24 years ago) by blymn
Branch: MAIN
Changes since 1.23: +4 -3 lines
Diff to previous 1.23 (colored)

* Fixed bug in copywin which was copying more than it should.
* Changed call to wrefresh in wgetch to be before input read.
* Changed default old cursor mode to be high vis in curs_set
* Added documentation for various new functions to fns.doc.

Revision 1.23 / (download) - annotate - [selected], Sat Apr 22 21:14:19 2000 UTC (24 years ago) by thorpej
Branch: MAIN
Changes since 1.22: +5 -4 lines
Diff to previous 1.22 (colored)

Fully initialize the structure allocated in new_keymap().

Revision 1.22 / (download) - annotate - [select for diffs], Sat Apr 22 14:32:45 2000 UTC (24 years ago) by blymn
Branch: MAIN
Changes since 1.21: +36 -21 lines
Diff to previous 1.21 (colored) to selected 1.23 (colored)

* Added ungetch
* Converted inkey and getch to use getchar instead of read so ungetch
  will work.

Revision 1.21 / (download) - annotate - [select for diffs], Tue Apr 18 21:44:48 2000 UTC (24 years ago) by jdc
Branch: MAIN
Changes since 1.20: +6 -6 lines
Diff to previous 1.20 (colored) to selected 1.23 (colored)

Make sure we don't read a negative character value (again).

Revision 1.20 / (download) - annotate - [select for diffs], Mon Apr 17 12:25:46 2000 UTC (24 years ago) by blymn
Branch: MAIN
Changes since 1.19: +164 -94 lines
Diff to previous 1.19 (colored) to selected 1.23 (colored)

Multiple fixes:
* Added Bill's fixes for errors when compiling with WARNS=1
* Incorporated fixes to make usage of unctrl consistent in debug and
  made improvements to ctrace - it now timestamps it's output better.
* Reduced the number of mallocs done by __init_getch by allocating key
  structs in bunches instead of singly.
* Removed the shadowing of global declarations in newwin and subwin
  functions

Revision 1.19 / (download) - annotate - [select for diffs], Sat Apr 15 22:59:05 2000 UTC (24 years ago) by jdc
Branch: MAIN
Changes since 1.18: +10 -5 lines
Diff to previous 1.18 (colored) to selected 1.23 (colored)

Add a missing __restore_termios() in an error return.
Don't display the character on curscr if the terminal has echo on :
  - doing so will break the tracking of curscr->cury|x if we've just refreshed
  a non-fullscreen window
  - with echo on, the terminal displays the character for us anyway

Revision 1.18 / (download) - annotate - [select for diffs], Sat Apr 15 13:17:03 2000 UTC (24 years ago) by blymn
Branch: MAIN
Changes since 1.17: +46 -9 lines
Diff to previous 1.17 (colored) to selected 1.23 (colored)

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.

Revision 1.17 / (download) - annotate - [select for diffs], Wed Apr 12 21:34:24 2000 UTC (24 years ago) by jdc
Branch: MAIN
Changes since 1.16: +6 -6 lines
Diff to previous 1.16 (colored) to selected 1.23 (colored)

Make sure we don't read a negative character value.

Revision 1.16 / (download) - annotate - [select for diffs], Tue Apr 11 13:57:09 2000 UTC (24 years ago) by blymn
Branch: MAIN
Changes since 1.15: +22 -20 lines
Diff to previous 1.15 (colored) to selected 1.23 (colored)

Made data structures opaque

Revision 1.15.2.2 / (download) - annotate - [select for diffs], Mon Mar 27 13:45:18 2000 UTC (24 years ago) by jdc
Branch: curses-v3
Changes since 1.15.2.1: +6 -6 lines
Diff to previous 1.15.2.1 (colored) to branchpoint 1.15 (colored) next main 1.16 (colored) to selected 1.23 (colored)

Handle characters with top bit set.

Revision 1.15.2.1 / (download) - annotate - [select for diffs], Sun Jan 9 20:43:19 2000 UTC (24 years, 3 months ago) by jdc
Branch: curses-v3
Changes since 1.15: +20 -19 lines
Diff to previous 1.15 (colored) to selected 1.23 (colored)

Changes to make libcurses SUS v2 compatible.

Revision 1.14.4.1 / (download) - annotate - [select for diffs], Mon Dec 27 18:29:57 1999 UTC (24 years, 3 months ago) by wrstuden
Branch: wrstuden-devbsize
Changes since 1.14: +10 -3 lines
Diff to previous 1.14 (colored) next main 1.15 (colored) to selected 1.23 (colored)

Pull up to last week's -current.

Revision 1.15 / (download) - annotate - [select for diffs], Tue Dec 7 03:53:11 1999 UTC (24 years, 4 months ago) by simonb
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, curses-v3-base
Branch point for: curses-v3
Changes since 1.14: +10 -3 lines
Diff to previous 1.14 (colored) to selected 1.23 (colored)

Only unctrl() the first 256 input values.

This and the previous curses patches were from Brett Lymn.

Revision 1.14 / (download) - annotate - [select for diffs], Mon Jun 28 13:32:43 1999 UTC (24 years, 9 months ago) by simonb
Branch: MAIN
CVS Tags: comdex-fall-1999-base, comdex-fall-1999
Branch point for: wrstuden-devbsize
Changes since 1.13: +6 -6 lines
Diff to previous 1.13 (colored) to selected 1.23 (colored)

Get rid of the evil trailing spaces and tabs.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Jun 15 04:50:28 1999 UTC (24 years, 10 months ago) by simonb
Branch: MAIN
Changes since 1.12: +13 -13 lines
Diff to previous 1.12 (colored) to selected 1.23 (colored)

Make a few private variables and functions static.

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jun 6 21:05:03 1999 UTC (24 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.11: +142 -140 lines
Diff to previous 1.11 (colored) to selected 1.23 (colored)

Re-arrange some code to approach our regular style.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jun 6 20:43:00 1999 UTC (24 years, 10 months ago) by pk
Branch: MAIN
Changes since 1.10: +4 -3 lines
Diff to previous 1.10 (colored) to selected 1.23 (colored)

Hang on to the termcap buffer that we have tgetent() fill.
 (someone ows me two hours worth of beer for this... :-)

Revision 1.10 / (download) - annotate - [select for diffs], Tue Apr 13 14:08:18 1999 UTC (25 years ago) by mrg
Branch: MAIN
Changes since 1.9: +455 -8 lines
Diff to previous 1.9 (colored) to selected 1.23 (colored)

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!

Revision 1.9 / (download) - annotate - [select for diffs], Tue Feb 3 19:12:24 1998 UTC (26 years, 2 months ago) by perry
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4
Changes since 1.8: +4 -4 lines
Diff to previous 1.8 (colored) to selected 1.23 (colored)

remove obsolete register declarations

Revision 1.8 / (download) - annotate - [select for diffs], Tue Jul 22 07:36:42 1997 UTC (26 years, 9 months ago) by mikel
Branch: MAIN
CVS Tags: netbsd-1-3-base, netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA, netbsd-1-3
Changes since 1.7: +7 -0 lines
Diff to previous 1.7 (colored) to selected 1.23 (colored)

RCSid police, fix warnings

Revision 1.7.2.2 / (download) - annotate - [select for diffs], Wed Aug 17 21:52:18 1994 UTC (29 years, 8 months ago) by cgd
Branch: netbsd-1-0
Changes since 1.7.2.1: +75 -0 lines
Diff to previous 1.7.2.1 (colored) to branchpoint 1.7 (colored) next main 1.8 (colored) to selected 1.23 (colored)

clean up import

Revision 1.7.2.1, Wed Aug 17 21:52:17 1994 UTC (29 years, 8 months ago) by cgd
Branch: netbsd-1-0
Changes since 1.7: +0 -75 lines
FILE REMOVED

file getch.c was added on branch netbsd-1-0 on 1994-08-17 21:52:18 +0000

Revision 1.7 / (download) - annotate - [select for diffs], Wed Aug 17 21:52:17 1994 UTC (29 years, 8 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-2-base, netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA, netbsd-1-2, netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001, netbsd-1-1, netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Branch point for: netbsd-1-0
Changes since 1.6: +3 -4 lines
Diff to previous 1.6 (colored) to selected 1.23 (colored)

clean up import

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Wed Aug 17 21:12:55 1994 UTC (29 years, 8 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: lite-2, CSRG-94-08-17
Changes since 1.1.1.1: +30 -27 lines
Diff to previous 1.1.1.1 (colored) to selected 1.23 (colored)

new libcurses, from new nvi

Revision 1.6 / (download) - annotate - [select for diffs], Tue Nov 9 04:07:34 1993 UTC (30 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base
Changes since 1.5: +2 -1 lines
Diff to previous 1.5 (colored) to selected 1.23 (colored)

repeat after me: "I hate rcs ids"

Revision 1.5 / (download) - annotate - [select for diffs], Tue Nov 9 03:34:28 1993 UTC (30 years, 5 months ago) by cgd
Branch: MAIN
CVS Tags: CSRG-last, CSRG-94-01-23, CSRG-93-11-06
Changes since 1.4: +8 -9 lines
Diff to previous 1.4 (colored) to selected 1.23 (colored)

update to new version from berkeley.  doesn't compile yet, nor
does it have rcsid's.  this is for diffs.

Revision 1.4 / (download) - annotate - [select for diffs], Sat Aug 7 05:48:52 1993 UTC (30 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.3: +28 -27 lines
Diff to previous 1.3 (colored) to selected 1.23 (colored)

New version from uunet.

Revision 1.3 / (download) - annotate - [select for diffs], Sun Aug 1 18:35:41 1993 UTC (30 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored) to selected 1.23 (colored)

Add RCS identifiers.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Jul 9 05:34:27 1993 UTC (30 years, 9 months ago) by alm
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2, netbsd-0-9-ALPHA, netbsd-0-9
Changes since 1.1: +5 -3 lines
Diff to previous 1.1 (colored) to selected 1.23 (colored)

added Andrew Chernov's patch set:
Standard curses library use eight bit for standout mode, so
8-bit characters displays like highlighted 7-bit characters.

This patch produce library which is fully compatible with all curses
programs and add 8-bit chars to all input/display functions.
---
I don't think, that any programs wish to use internal curses
attribute _STANDOUT directly, in expressions like:
        addch( ch | _STANDOUT );
        Normal interface use standout() and standend() functions instead.
        Many programs use 'char' type (with sign extention) for input characters
        and sign extention becomes _STANDOUT mode in this case.
        So, I refuse this future and allow 8-bit characters for programs,
        which is designed for 7-bit only ('char' type using instead of
        'unsigned char').
---
This small patch fix unpleasant standard curses bug:
curses can't expand TAB at all (but tries).
A man who wrote this curses misplace SYNC_IN and SYNCH_OUT,
this patch exchange macro calls.

This patch useful for standard 7-bit curses too, for this
you must delete '_' symbol before waddbytes and apply patch.
---
Oh, NO! This curses are really buggy!

This small patch fix following problem:
[ assumed scrollok(stdscr, TRUE) ]
when addch(ch) at lower right corner of screen, curses are realy
gone mad instead if simple scrolling... Curses code assumed that
this will be done correctly, but implement it with two bugs.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (31 years, 1 month ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: patchkit-0-2-2, netbsd-alpha-1, netbsd-0-8, WFJ-386bsd-01
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored) to selected 1.23 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (31 years, 1 month ago) by cgd
Branch: MAIN
Diff to selected 1.23 (colored)

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>