The NetBSD Project

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

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

Request diff between arbitrary revisions


Keyword substitution: kv
Default branch: MAIN


Revision 1.28: download - view: text, markup, annotated - select for diffs
Mon Dec 23 02:58:03 2024 UTC (3 weeks ago) by blymn
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +5 -2 lines

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.

Revision 1.26.2.1: download - view: text, markup, annotated - select for diffs
Fri Sep 13 14:03:56 2024 UTC (4 months ago) by martin
Branches: netbsd-10
CVS tags: netbsd-10-1-RELEASE
Diff to: previous 1.26: preferred, colored; next MAIN 1.27: preferred, colored
Changes since revision 1.26: +4 -4 lines
Pull up following revision(s) (requested by rin in ticket #855):

	lib/libcurses/get_wch.c: revision 1.27

Check for returning ERR to avoid negative array index later (CID-1617248)

Revision 1.27: download - view: text, markup, annotated - select for diffs
Sat Aug 24 22:27:03 2024 UTC (4 months, 2 weeks ago) by christos
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +4 -4 lines
Check for returning ERR to avoid negative array index later (CID-1617248)

Revision 1.26: download - view: text, markup, annotated - select for diffs
Mon Sep 6 07:45:48 2021 UTC (3 years, 4 months ago) by rin
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630, perseant-exfatfs-base, perseant-exfatfs, 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
Branch point for: netbsd-10
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +19 -18 lines
Style fixes most for __CTRACE().

Revision 1.25: download - view: text, markup, annotated - select for diffs
Mon Sep 6 07:03:49 2021 UTC (3 years, 4 months ago) by rin
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +2 -60 lines
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.23.2.1: download - view: text, markup, annotated - select for diffs
Tue Jul 7 12:51:18 2020 UTC (4 years, 6 months ago) by martin
Branches: netbsd-9
CVS tags: netbsd-9-4-RELEASE, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +3 -3 lines
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.24: download - view: text, markup, annotated - select for diffs
Mon Jul 6 23:33:38 2020 UTC (4 years, 6 months ago) by uwe
Branches: MAIN
CVS tags: cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +3 -3 lines
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.14.12.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:05:22 2019 UTC (5 years, 7 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14: +56 -52 lines
Sync with HEAD

Revision 1.23: download - view: text, markup, annotated - select for diffs
Sun Jun 9 07:40:14 2019 UTC (5 years, 7 months ago) by blymn
Branches: 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
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -4 lines
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.22: download - view: text, markup, annotated - select for diffs
Mon May 20 22:17:41 2019 UTC (5 years, 7 months ago) by blymn
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +4 -4 lines
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.10.10.1: download - view: text, markup, annotated - select for diffs
Fri Mar 15 14:36:22 2019 UTC (5 years, 10 months ago) by martin
Branches: netbsd-7
Diff to: previous 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10: +12 -12 lines
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.14.4.4: download - view: text, markup, annotated - select for diffs
Fri Mar 15 14:30:19 2019 UTC (5 years, 10 months ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1
Diff to: previous 1.14.4.3: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.4.3: +12 -12 lines
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.21: download - view: text, markup, annotated - select for diffs
Thu Mar 14 00:36:06 2019 UTC (5 years, 10 months ago) by rin
Branches: MAIN
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +12 -12 lines
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.14.10.2: download - view: text, markup, annotated - select for diffs
Mon Nov 26 01:52:12 2018 UTC (6 years, 1 month ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.14.10.1: preferred, colored; branchpoint 1.14: preferred, colored; next MAIN 1.15: preferred, colored
Changes since revision 1.14.10.1: +2 -28 lines
Sync with HEAD, resolve a couple of conflicts

Revision 1.20: download - view: text, markup, annotated - select for diffs
Thu Nov 22 22:16:45 2018 UTC (6 years, 1 month ago) by uwe
Branches: MAIN
CVS tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +2 -28 lines
Drop HAVE_WCHAR ifdefs from code that is not even compiled with !HAVE_WCHAR.

We still try to mainain the ability to build our curses with
!HAVE_WCHAR, but it doesn't make sense to provide stubs for new wide
API functions that just error out when !HAVE_WCHAR.  Any code that
only uses old API (and can work with !HAVE_WCHAR curses) doesn't use
those new functions.  The code that uses new API obviosly cannot work
when all the new API is stubbed out.

So the plan is to drop the stubs.  This commit does that for files
that are not even compiled with !HAVE_WCHAR (not only those stubs are
useless, they were not even there to begin with).

Same object code is generated for the normal HAVE_WCHAR case.  Nothing
is even recompiled for !HAVE_WCHAR.

Ok by blymn@ jdc@ roy@

Revision 1.14.4.3: download - view: text, markup, annotated - select for diffs
Wed Oct 3 17:49:06 2018 UTC (6 years, 3 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.14.4.2: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.4.2: +4 -4 lines
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.14.10.1: download - view: text, markup, annotated - select for diffs
Sun Sep 30 01:45:33 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +47 -17 lines
Ssync with HEAD

Revision 1.19: download - view: text, markup, annotated - select for diffs
Fri Sep 28 15:03:48 2018 UTC (6 years, 3 months ago) by roy
Branches: MAIN
CVS tags: pgoyette-compat-1020, pgoyette-compat-0930
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -4 lines
curses: resizeterm(3) should always send KEY_RESIZE

Fixes #53636

OK kamil@

Revision 1.14.4.2: download - view: text, markup, annotated - select for diffs
Thu Sep 27 15:12:15 2018 UTC (6 years, 3 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.14.4.1: preferred, colored; branchpoint 1.14: preferred, colored
Changes since revision 1.14.4.1: +42 -26 lines
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.14.4.1: download - view: text, markup, annotated - select for diffs
Thu Sep 27 14:59:28 2018 UTC (6 years, 3 months ago) by martin
Branches: netbsd-8
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +19 -5 lines
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.18: download - view: text, markup, annotated - select for diffs
Thu Sep 27 14:07:55 2018 UTC (6 years, 3 months ago) by roy
Branches: MAIN
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +4 -2 lines
curses: call resizeterm if getch issues KEY_RESIZE

This fixes PR #53633.

Revision 1.17: download - view: text, markup, annotated - select for diffs
Thu Sep 27 14:05:26 2018 UTC (6 years, 3 months ago) by roy
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +40 -26 lines
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.16: download - view: text, markup, annotated - select for diffs
Wed Sep 26 14:42:22 2018 UTC (6 years, 3 months ago) by kamil
Branches: MAIN
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +12 -4 lines
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.15: download - view: text, markup, annotated - select for diffs
Tue Sep 18 22:46:18 2018 UTC (6 years, 3 months ago) by rin
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +9 -3 lines
PR lib/53615

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

OK roy

Revision 1.12.2.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:53:10 2017 UTC (7 years, 8 months ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12: +6 -7 lines
Sync with HEAD

Revision 1.10.14.2: download - view: text, markup, annotated - select for diffs
Mon Mar 20 06:56:59 2017 UTC (7 years, 9 months ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.10.14.1: preferred, colored; branchpoint 1.10: preferred, colored; next MAIN 1.11: preferred, colored
Changes since revision 1.10.14.1: +6 -7 lines
Sync with HEAD

Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Jan 31 09:17:53 2017 UTC (7 years, 11 months ago) by roy
Branches: 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
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +6 -8 lines
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.13: download - view: text, markup, annotated - select for diffs
Mon Jan 30 14:55:58 2017 UTC (7 years, 11 months ago) by roy
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +4 -3 lines
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.10.14.1: download - view: text, markup, annotated - select for diffs
Sat Jan 7 08:56:04 2017 UTC (8 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +59 -54 lines
Sync with HEAD.  (Note that most of these changes are simply $NetBSD$
tag issues.)

Revision 1.12: download - view: text, markup, annotated - select for diffs
Fri Jan 6 13:53:18 2017 UTC (8 years ago) by roy
Branches: MAIN
CVS tags: pgoyette-localcount-20170107, bouyer-socketcan-base
Branch point for: bouyer-socketcan
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +54 -50 lines
KNF.
Normalise coding style.
White space police.
Sprinkle some extra braces to make the flow more clear.

No functional changes.

Revision 1.11: download - view: text, markup, annotated - select for diffs
Thu Jan 5 20:31:37 2017 UTC (8 years ago) by roy
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +7 -6 lines
Add the set_escdelay(3) and set_tabsize(3) ncurses extensions.

Revision 1.9.6.1: download - view: text, markup, annotated - select for diffs
Tue Oct 30 18:59:08 2012 UTC (12 years, 2 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +3 -3 lines
sync with head

Revision 1.6.8.1: download - view: text, markup, annotated - select for diffs
Sun Sep 30 17:52:06 2012 UTC (12 years, 3 months ago) by bouyer
Branches: 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
Diff to: previous 1.6: preferred, colored; next MAIN 1.7: preferred, colored
Changes since revision 1.6: +3 -3 lines
Pull up following revision(s) (requested by blymn in ticket #1791):
	lib/libcurses/get_wch.c: revision 1.10
* 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.

Revision 1.9.8.1: download - view: text, markup, annotated - select for diffs
Thu Aug 9 06:46:37 2012 UTC (12 years, 5 months ago) by jdc
Branches: netbsd-6
CVS tags: 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, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Diff to: previous 1.9: preferred, colored; next MAIN 1.10: preferred, colored
Changes since revision 1.9: +3 -3 lines
Pull up revisions:
  src/lib/libcurses/get_wch.c revision 1.10
  src/lib/libmenu/internals.c revisions 1.14,1.15
(requested by blymn in ticket #459).

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

Extraneous whitespace removal.

* Corrected menu drawing when O_ROWMAJOR is not set
* Corrected menu item neighbour calculation so it works when O_ROWMAJOR
  is set and unset.  This corrects item navigation which was previously
  broken when O_ROWMAJOR was not set.

This resolves lib/46620.

Revision 1.10: download - view: text, markup, annotated - select for diffs
Fri Jun 29 10:40:29 2012 UTC (12 years, 6 months ago) by blymn
Branches: MAIN
CVS tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6, 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
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +3 -3 lines
* 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.

Revision 1.9: download - view: text, markup, annotated - select for diffs
Thu Dec 16 17:42:28 2010 UTC (14 years, 1 month ago) by wiz
Branches: MAIN
CVS tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, matt-mips64-premerge-20101231, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, netbsd-6
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -4 lines
Observe the following spelling:
- wide character (noun)
- wide-character (adjective)

Inspired by jmc@OpenBSD.

Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Nov 4 21:51:11 2009 UTC (15 years, 2 months ago) by dsl
Branches: MAIN
CVS tags: matt-premerge-20091211
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +5 -5 lines
Read input from the correct FILE.

Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Nov 1 22:11:27 2009 UTC (15 years, 2 months ago) by dsl
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +6 -14 lines
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.6: download - view: text, markup, annotated - select for diffs
Mon Apr 14 20:33:59 2008 UTC (16 years, 9 months ago) by jdc
Branches: 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-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-RC2, netbsd-5-0-RC1, 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, matt-mips64-base2, jym-xensuspend-nbase, jym-xensuspend-base, jym-xensuspend, hpcarm-cleanup-nbase
Branch point for: netbsd-5
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +11 -12 lines
Make this compile when HAVE_WCHAR is not defined.

Revision 1.3.4.1: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:36:23 2008 UTC (17 years ago) by matt
Branches: matt-armv6
Diff to: previous 1.3: preferred, colored; next MAIN 1.4: preferred, colored
Changes since revision 1.3: +26 -46 lines
sync with HEAD

Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Dec 8 18:38:11 2007 UTC (17 years, 1 month ago) by jdc
Branches: MAIN
CVS tags: matt-armv6-nbase, matt-armv6-base, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, cube-autoconf-base, cube-autoconf
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +24 -40 lines
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.4: download - view: text, markup, annotated - select for diffs
Sun Nov 18 10:01:04 2007 UTC (17 years, 2 months ago) by jdc
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -6 lines
We don't need to call __init_getch here, as it is called from
screen.c:newterm().

Revision 1.3: download - view: text, markup, annotated - select for diffs
Tue May 29 11:10:56 2007 UTC (17 years, 7 months ago) by blymn
Branches: MAIN
CVS tags: matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, hpcarm-cleanup
Branch point for: matt-armv6
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +7 -6 lines
Fix some compiler warnings.
Remove shadowed variable declarations when DEBUG is defined.

Revision 1.2: download - view: text, markup, annotated - select for diffs
Mon May 28 15:01:55 2007 UTC (17 years, 7 months ago) by blymn
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +98 -55 lines
Merge in wide curses code done as a Summer of Code project by
Ruibiao Qiu.

Revision 1.1.2.4: download - view: text, markup, annotated - select for diffs
Thu Jan 25 08:50:14 2007 UTC (17 years, 11 months ago) by blymn
Branches: wcurses
Diff to: previous 1.1.2.3: preferred, colored; next MAIN 1.2: preferred, colored
Changes since revision 1.1.2.3: +3 -2 lines
 * 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.1.2.3: download - view: text, markup, annotated - select for diffs
Sun Jan 21 18:21:13 2007 UTC (17 years, 11 months ago) by jdc
Branches: wcurses
Diff to: previous 1.1.2.2: preferred, colored
Changes since revision 1.1.2.2: +4 -4 lines
Add a cast (mlen should fit in long here).

Revision 1.1.2.2: download - view: text, markup, annotated - select for diffs
Sun Jan 21 17:43:35 2007 UTC (17 years, 11 months ago) by jdc
Branches: wcurses
Diff to: previous 1.1.2.1: preferred, colored
Changes since revision 1.1.2.1: +97 -55 lines
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.1.2.1: download - view: text, markup, annotated - select for diffs
Sun Jan 21 12:05:54 2007 UTC (17 years, 11 months ago) by blymn
Branches: wcurses
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -2 lines
Merge wide curses.

Revision 1.1: download - view: text, markup, annotated - select for diffs
Sun Jan 21 11:38:59 2007 UTC (17 years, 11 months ago) by blymn
Branches: MAIN
Branch point for: wcurses
Wide curses merge

Diff request

This form allows you to request diffs 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.

Log view options

CVSweb <webmaster@jp.NetBSD.org>