CVS commit: src/lib/libcurses

2021-08-15 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Aug 15 15:12:36 UTC 2021

Modified Files:
src/lib/libcurses: get_wstr.c getstr.c in_wchstr.c inchstr.c instr.c
inwstr.c

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libcurses/get_wstr.c \
src/lib/libcurses/in_wchstr.c src/lib/libcurses/inwstr.c
cvs rdiff -u -r1.27 -r1.28 src/lib/libcurses/getstr.c
cvs rdiff -u -r1.10 -r1.11 src/lib/libcurses/inchstr.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libcurses/instr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-08-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Aug 15 12:39:39 UTC 2021

Modified Files:
src/lib/libcurses: curses_private.h slk.c

Log Message:
This is a mess; always define MB_LEN_MAX so both the regular and libhack
version of curses compiles. Really we should not be defining MB_LEN_MAX here,
and include  in curses_private.h to get it.


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/lib/libcurses/curses_private.h
cvs rdiff -u -r1.13 -r1.14 src/lib/libcurses/slk.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-08-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Aug 15 11:54:12 UTC 2021

Modified Files:
src/lib/libcurses: slk.c

Log Message:
need limits.h


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libcurses/slk.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-08-15 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Aug 15 11:44:39 UTC 2021

Modified Files:
src/lib/libcurses: slk.c

Log Message:
Use MBL_LEN_MAX (constant) so that SSP works


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libcurses/slk.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-08-03 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Tue Aug  3 07:58:50 UTC 2021

Modified Files:
src/lib/libcurses: curses_attributes.3 curses_standout.3

Log Message:
curses: clarify standout as the "best" _supported_ highlighting mode
of the current terminal


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libcurses/curses_attributes.3
cvs rdiff -u -r1.9 -r1.10 src/lib/libcurses/curses_standout.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-08-02 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Mon Aug  2 11:11:20 UTC 2021

Modified Files:
src/lib/libcurses: curses_attributes.3 curses_standout.3

Log Message:
curses: clarify documentation regarding the standout attribute


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libcurses/curses_attributes.3
cvs rdiff -u -r1.8 -r1.9 src/lib/libcurses/curses_standout.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-07-26 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Mon Jul 26 20:17:10 UTC 2021

Modified Files:
src/lib/libcurses: curses_standout.3

Log Message:
The BUGS sections is incorrect again for "modern" terminals.

For example, wscons and xterm both display standout differently to bold.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libcurses/curses_standout.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-06-27 Thread Brett Lymn
Module Name:src
Committed By:   blymn
Date:   Sun Jun 27 23:57:08 UTC 2021

Modified Files:
src/lib/libcurses: cr_put.c

Log Message:
Fix PR lib/55931
Only reset outcol if we actually emit a \n as cursor_down may not may
not put the cursor at the start of the next line.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/lib/libcurses/cr_put.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-06-27 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Jun 27 16:24:52 UTC 2021

Modified Files:
src/lib/libcurses: Makefile

Log Message:
Fix SSP build


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/lib/libcurses/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-06-24 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Thu Jun 24 15:41:25 UTC 2021

Modified Files:
src/lib/libcurses: slk.c

Log Message:
Fix printf format for size_t


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/lib/libcurses/slk.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-06-23 Thread Brett Lymn
Module Name:src
Committed By:   blymn
Date:   Thu Jun 24 05:53:05 UTC 2021

Modified Files:
src/lib/libcurses: slk.c

Log Message:
Make sure we don't use wide char routines when DISABLE_WCHAR is in
effect.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libcurses/slk.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-06-22 Thread Brett Lymn
Module Name:src
Committed By:   blymn
Date:   Tue Jun 22 07:49:09 UTC 2021

Modified Files:
src/lib/libcurses: addbytes.c

Log Message:
Rework the fix for lib/56224.
Move the scroll check to _cursesi_addwchar
Perform the scroll check before updating the cursor location when
processing \n.


To generate a diff of this commit:
cvs rdiff -u -r1.56 -r1.57 src/lib/libcurses/addbytes.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-06-22 Thread Brett Lymn
Module Name:src
Committed By:   blymn
Date:   Tue Jun 22 07:26:45 UTC 2021

Modified Files:
src/lib/libcurses: slk.c

Log Message:
Fix how the slk are drawn by making sure we use ins_wchar in the
bottom left of the screen to avoid a scroll because this may cause
an ERR if scrollok is false.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libcurses/slk.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-06-22 Thread Brett Lymn
Module Name:src
Committed By:   blymn
Date:   Tue Jun 22 07:22:44 UTC 2021

Modified Files:
src/lib/libcurses: ins_wch.c

Log Message:
Fix the debug output to stop spamming out the aline for row 0, we
may not be working on that row so the output is pointless.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libcurses/ins_wch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-06-15 Thread Brett Lymn
Module Name:src
Committed By:   blymn
Date:   Tue Jun 15 22:18:55 UTC 2021

Modified Files:
src/lib/libcurses: addbytes.c

Log Message:
Correct a previous fix for PR lib/56224.
Use wdwitch to determine the width of a wide character on the screen not
the number from mbrtowc which is the number of bytes in the character.
Thanks to Michael Forney for spotting this.


To generate a diff of this commit:
cvs rdiff -u -r1.55 -r1.56 src/lib/libcurses/addbytes.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-06-10 Thread Michael Forney
Module Name:src
Committed By:   mcf
Date:   Thu Jun 10 07:15:40 UTC 2021

Modified Files:
src/lib/libcurses: setterm.c

Log Message:
Add missing newline to debug trace message

ok blymn@


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/lib/libcurses/setterm.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-06-05 Thread Brett Lymn
Module Name:src
Committed By:   blymn
Date:   Sun Jun  6 05:06:44 UTC 2021

Modified Files:
src/lib/libcurses: addbytes.c

Log Message:
Fix for PR lib/56224
Correct addstr behaviour so it truncates the string in the case where
a string is added on the bottom line of a window where scrolling is
disabled as per the SUSv2 specification.


To generate a diff of this commit:
cvs rdiff -u -r1.54 -r1.55 src/lib/libcurses/addbytes.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-05-31 Thread Michael Forney
Module Name:src
Committed By:   mcf
Date:   Tue Jun  1 00:59:02 UTC 2021

Modified Files:
src/lib/libcurses: newwin.c

Log Message:
Fix initial line hash calculation for subwindows

lp->hash is not initialized at this point. Since the hash is
calculated in chunks using __hash_more(), it needs to be initialized
to 0 first (just as in doupdate()).

Detected with valgrind while running python's test suite when
debugging an unrelated issue.

ok uwe@


To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.60 src/lib/libcurses/newwin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-05-29 Thread Nia Alarie
Module Name:src
Committed By:   nia
Date:   Sat May 29 09:11:14 UTC 2021

Modified Files:
src/lib/libcurses: resize.c

Log Message:
wresize: don't bound pads to the size of the screen

allows avoiding a workaround in aiomixer,

ok blymn uwe


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 src/lib/libcurses/resize.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-05-15 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sat May 15 11:06:08 UTC 2021

Modified Files:
src/lib/libcurses: newwin.c

Log Message:
__newwin - fix BGWCOL initialization.

>From Michael Forney in PR lib/56174


To generate a diff of this commit:
cvs rdiff -u -r1.58 -r1.59 src/lib/libcurses/newwin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-05-07 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sat May  8 04:29:07 UTC 2021

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
avoid accessing stack garbage.

on arm64eb resuming vi(1) would often crash.  in makech(), the 'csp'
variable is either set to current window data, or a local stack
variable's address '&blank'.  the window data has many lines of info
stored, and 'csp++' is used per line here.  unfortunately, a case
existed where 'csp++' operated on csp initialised from '&blank' which
eventually crashes when, on my display with 160 columns and 'csp + 155'
exceeds the mapped stack and crashes.

match the '!_cursesi_screen->curwin' conditional that initialises csp,
and avoid csp++ here.  assert() that csp != &blank in both places that
modify csp.

thanks to jdc@ and mlelstv@.

XXX: possibly also should avoid the putch() here as well.


To generate a diff of this commit:
cvs rdiff -u -r1.112 -r1.113 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-02-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Feb 13 10:37:00 UTC 2021

Modified Files:
src/lib/libcurses: curses.h

Log Message:
curses.h: proofread, indent a bit more consistently


To generate a diff of this commit:
cvs rdiff -u -r1.129 -r1.130 src/lib/libcurses/curses.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-02-07 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Feb  7 23:00:57 UTC 2021

Modified Files:
src/lib/libcurses: curses_screen.3

Log Message:
curses_screen.3: fix typo


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/lib/libcurses/curses_screen.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-02-06 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Feb  6 19:41:14 UTC 2021

Modified Files:
src/lib/libcurses: addbytes.c

Log Message:
libcurses: fix spelling in comment


To generate a diff of this commit:
cvs rdiff -u -r1.52 -r1.53 src/lib/libcurses/addbytes.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2021-02-06 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sat Feb  6 13:58:09 UTC 2021

Modified Files:
src/lib/libcurses: curses_screen.3

Log Message:
libncurses: fix grammar in manual page


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/lib/libcurses/curses_screen.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-07-13 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue Jul 14 04:39:39 UTC 2020

Modified Files:
src/lib/libcurses: newwin.c

Log Message:
newwin - fix crash with negative ncols.

When support for negative nrows/ncols was added, one s/ncols/maxx/ was
missed so we ended up passing negative (i.e. huge unsigned) length
when hashing the line contents.

Reported by Naman Jain in PR lib/55484


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 src/lib/libcurses/newwin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-07-06 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jul  6 23:33:38 UTC 2020

Modified Files:
src/lib/libcurses: get_wch.c getch.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libcurses/get_wch.c
cvs rdiff -u -r1.74 -r1.75 src/lib/libcurses/getch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-07-06 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Jul  6 22:46:50 UTC 2020

Modified Files:
src/lib/libcurses: ins_wch.c ins_wstr.c insch.c insstr.c

Log Message:
mvwins*(WINDOW *win, ...) functions - call wins* on win, not stdscr.
>From Naman Jain in PR lib/55460.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libcurses/ins_wch.c \
src/lib/libcurses/ins_wstr.c
cvs rdiff -u -r1.25 -r1.26 src/lib/libcurses/insch.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libcurses/insstr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-07-03 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Fri Jul  3 23:28:51 UTC 2020

Modified Files:
src/lib/libcurses: touchwin.c

Log Message:
wtouchln - verify/clip input parameters
>From Naman Jain in PR lib/55454


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/lib/libcurses/touchwin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-07-02 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Jul  2 23:43:01 UTC 2020

Modified Files:
src/lib/libcurses: cchar.c

Log Message:
setcchar - don't lose combining marks to a typo.

We copy len wchars but set the length field to 1, instead of len.
>From Naman Jain in PR lib/55443


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libcurses/cchar.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-06-30 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Wed Jul  1 02:57:02 UTC 2020

Modified Files:
src/lib/libcurses: line.c

Log Message:
hline, vline - don't lose attributes when using default character.

Make default (wide) and non-wide behavior match.  If the character
argument has (only) attributes set, use them with the default line
character.

In the wide case don't do the fallback in hline - it just calls
hline_set that needs to do it anyway.  Fix the latter to check the
wcwidth of the right character and avoid division by zero.


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/lib/libcurses/line.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-06-30 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Wed Jul  1 02:14:41 UTC 2020

Modified Files:
src/lib/libcurses: line.c

Log Message:
Oops.  Fix y/x typo in the previous whline() fix for !HAVE_WCHAR.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libcurses/line.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-06-30 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue Jun 30 21:27:18 UTC 2020

Modified Files:
src/lib/libcurses: line.c

Log Message:
Fix indentation in the copyright.
Make it match its siblings in other files.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libcurses/line.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-06-30 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue Jun 30 21:10:13 UTC 2020

Modified Files:
src/lib/libcurses: line.c

Log Message:
whline - save/restore the y coordinate too.
Reaching the right side of the screen can cause a line wrap.
Forgot to apply the fix to the !HAVE_WCHAR case.
PR lib/55434


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/lib/libcurses/line.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-06-30 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue Jun 30 21:02:24 UTC 2020

Modified Files:
src/lib/libcurses: line.c

Log Message:
whline_set - save/restore the y coordinate too.
Reaching the right side of the screen can cause a line wrap.
PR lib/55434


To generate a diff of this commit:
cvs rdiff -u -r1.11 -r1.12 src/lib/libcurses/line.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-05-14 Thread Simon Burge
Module Name:src
Committed By:   simonb
Date:   Thu May 14 11:50:05 UTC 2020

Modified Files:
src/lib/libcurses: getch.c

Log Message:
KNF nit.


To generate a diff of this commit:
cvs rdiff -u -r1.73 -r1.74 src/lib/libcurses/getch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-03-23 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Mar 23 16:14:20 UTC 2020

Modified Files:
src/lib/libcurses: curses_mouse.3

Log Message:
Fix synopsis, use more markup.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libcurses/curses_mouse.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-03-23 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Mon Mar 23 15:32:56 UTC 2020

Added Files:
src/lib/libcurses: curses_mouse.3

Log Message:
Add missing man page for curses mouse functions.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/lib/libcurses/curses_mouse.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-03-14 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Mar 15 01:18:43 UTC 2020

Modified Files:
src/lib/libcurses: clrtobot.c clrtoeol.c erase.c

Log Message:
werase, wclrtobot, wclrtoeol - make code even more similar.
Rename attr to battr to match bch and WINDOW::battr.
No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/lib/libcurses/clrtobot.c
cvs rdiff -u -r1.30 -r1.31 src/lib/libcurses/clrtoeol.c
cvs rdiff -u -r1.31 -r1.32 src/lib/libcurses/erase.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-03-14 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Mar 15 01:12:47 UTC 2020

Modified Files:
src/lib/libcurses: curses_private.h

Log Message:
__NEED_ERASE - don't shadow __LDATA::attr with macro parameter name.


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/lib/libcurses/curses_private.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-03-12 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Fri Mar 13 02:57:26 UTC 2020

Modified Files:
src/lib/libcurses: clrtobot.c clrtoeol.c curses.h curses_private.h
erase.c

Log Message:
curses: wrap the erase logic in a macro

Easier to use, it's in one place and now hopefully everyone is happy.

X


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/lib/libcurses/clrtobot.c
cvs rdiff -u -r1.29 -r1.30 src/lib/libcurses/clrtoeol.c
cvs rdiff -u -r1.127 -r1.128 src/lib/libcurses/curses.h
cvs rdiff -u -r1.71 -r1.72 src/lib/libcurses/curses_private.h
cvs rdiff -u -r1.30 -r1.31 src/lib/libcurses/erase.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-03-12 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Thu Mar 12 15:50:12 UTC 2020

Modified Files:
src/lib/libcurses: initscr.c

Log Message:
curses: use perror rather than err in initscr

libhack lacks err and perror is more portable.


To generate a diff of this commit:
cvs rdiff -u -r1.34 -r1.35 src/lib/libcurses/initscr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-03-12 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Thu Mar 12 12:17:15 UTC 2020

Modified Files:
src/lib/libcurses: clrtobot.c clrtoeol.c curses.h erase.c

Log Message:
curses: normalise erase logic with clrtoeol and clrtobot

Define WA_ATTRIBUTES as 0 for the non wide case just to make our code
easier to write.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/lib/libcurses/clrtobot.c
cvs rdiff -u -r1.28 -r1.29 src/lib/libcurses/clrtoeol.c
cvs rdiff -u -r1.126 -r1.127 src/lib/libcurses/curses.h
cvs rdiff -u -r1.29 -r1.30 src/lib/libcurses/erase.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-03-12 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Thu Mar 12 11:38:28 UTC 2020

Modified Files:
src/lib/libcurses: curses_screen.3

Log Message:
curses: note the change in initscr in our fine man page.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/lib/libcurses/curses_screen.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-03-11 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Mar 11 23:47:40 UTC 2020

Modified Files:
src/lib/libcurses: erase.c

Log Message:
curses: Fix werase(3) wide character support

We need to consider erasing all attributes, not just WA_ATTRIBUTES.
Fixes PR lib/23910.

While here, make the function a little more readable.


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/libcurses/erase.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2020-03-11 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Wed Mar 11 21:33:38 UTC 2020

Modified Files:
src/lib/libcurses: initscr.c

Log Message:
curses: application should exit if initscr(3) fails

POSIX defines this behaviour here:
https://pubs.opengroup.org/onlinepubs/7908799/xcurses/initscr.html

Partial fix for PR lib/23910


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/lib/libcurses/initscr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2019-04-24 Thread Brett Lymn
Module Name:src
Committed By:   blymn
Date:   Wed Apr 24 07:09:44 UTC 2019

Modified Files:
src/lib/libcurses: add_wch.c refresh.c touchwin.c

Log Message:
Add/improve debug output for some routines.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libcurses/add_wch.c
cvs rdiff -u -r1.107 -r1.108 src/lib/libcurses/refresh.c
cvs rdiff -u -r1.30 -r1.31 src/lib/libcurses/touchwin.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2019-04-01 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Mon Apr  1 11:39:15 UTC 2019

Modified Files:
src/lib/libcurses: curses_private.h delwin.c newwin.c printw.c

Log Message:
printw: rework vw_printw so it uses open_memstream rather than funopen2

This makes it more portable as open_memstream is POSIX and fixes a
potential issue with wide characters not fully being printed
due to any buffer overflow.


To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/lib/libcurses/curses_private.h
cvs rdiff -u -r1.20 -r1.21 src/lib/libcurses/delwin.c
cvs rdiff -u -r1.54 -r1.55 src/lib/libcurses/newwin.c
cvs rdiff -u -r1.26 -r1.27 src/lib/libcurses/printw.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2019-03-29 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Fri Mar 29 18:32:45 UTC 2019

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
Minor adjustment to prior to match putch


To generate a diff of this commit:
cvs rdiff -u -r1.106 -r1.107 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2019-03-29 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Fri Mar 29 16:56:58 UTC 2019

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
Use WCOL rather than wcwidth(3) as we should already know the width
during refresh.
Ensure the character width is not negative when advancing during refresh
(unlikely) and we actually have something to insert in the lower right
corner depending on terminal caps.

Fixes PR lib/54085


To generate a diff of this commit:
cvs rdiff -u -r1.105 -r1.106 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2019-03-28 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Mar 28 23:24:22 UTC 2019

Modified Files:
src/lib/libcurses: printw.c

Log Message:
winwrite - using addch() on individual bytes of e.g. UTF-8 encoding
doesn't work that well.  addstr() the whole buffer instead.  This is
still not enirely correct b/c printf can run out of stdio buffer
mid-character for very long output, but deal with it later.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/lib/libcurses/printw.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2019-03-21 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Mar 21 21:28:55 UTC 2019

Modified Files:
src/lib/libcurses: printw.c

Log Message:
winwrite - deobfuscate a bit.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/lib/libcurses/printw.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2019-03-13 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Thu Mar 14 00:36:06 UTC 2019

Modified Files:
src/lib/libcurses: get_wch.c getch.c

Log Message:
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


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/lib/libcurses/get_wch.c
cvs rdiff -u -r1.70 -r1.71 src/lib/libcurses/getch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2019-02-24 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Sun Feb 24 20:20:18 UTC 2019

Modified Files:
src/lib/libcurses: get_wstr.c getstr.c in_wchstr.c inchstr.c instr.c
inwstr.c

Log Message:
Fix warn macro usage.

Thanks to rofl0r.


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libcurses/get_wstr.c \
src/lib/libcurses/in_wchstr.c src/lib/libcurses/inwstr.c
cvs rdiff -u -r1.24 -r1.25 src/lib/libcurses/getstr.c
cvs rdiff -u -r1.7 -r1.8 src/lib/libcurses/inchstr.c
cvs rdiff -u -r1.4 -r1.5 src/lib/libcurses/instr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2019-01-10 Thread David A. Holland
Module Name:src
Committed By:   dholland
Date:   Fri Jan 11 06:14:39 UTC 2019

Modified Files:
src/lib/libcurses: curses_clear.3

Log Message:
At some point we lost the text that explains the difference between
clear() and erase(). Or possibly we never had any. Put some back.
Bump date.


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/lib/libcurses/curses_clear.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2019-01-05 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Jan  6 04:27:53 UTC 2019

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
_wnoutrefresh - extend current position checks.

Also verify that dwin->cury >= begy (ditto for x), i.e. for pads make
sure that the current position is after the beginning of the displayed
portion.  While here refactor the checks for better readability.

We should probably combine the y and x checks b/c if one of them is
not in the range, the current position as a whole is not in the range
and it doesn't make sense to pick and set just the y or just the x
part of it.


To generate a diff of this commit:
cvs rdiff -u -r1.104 -r1.105 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2019-01-05 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Jan  6 03:59:17 UTC 2019

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
_wnoutrefresh - fix current position checks for pads

maxy is an absolute value and should not be adjusted for begy when we
check also absolute cury.  Note that this change does not affect
calculations for normal windows as for them we always pass zero for
begy.  Ditto for x.


To generate a diff of this commit:
cvs rdiff -u -r1.103 -r1.104 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2019-01-05 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Jan  6 03:46:11 UTC 2019

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
prefresh - fix current position calculations

The code was copy-pasted from wrefresh(), but for pads we need to
adjust for (pbegy, pbegx).

PR lib/53801


To generate a diff of this commit:
cvs rdiff -u -r1.102 -r1.103 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-29 Thread Roy Marples
Module Name:src
Committed By:   roy
Date:   Fri Nov 30 04:38:14 UTC 2018

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
curses: Fix inverted logic when drawing LR corner with auto margins

Thanks to M. Levinson.


To generate a diff of this commit:
cvs rdiff -u -r1.101 -r1.102 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-24 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Sat Nov 24 11:04:39 UTC 2018

Modified Files:
src/lib/libcurses: curses_cchar.3

Log Message:
Grammar improvements.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/lib/libcurses/curses_cchar.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-23 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sat Nov 24 01:04:18 UTC 2018

Modified Files:
src/lib/libcurses: attributes.c

Log Message:
attron(), attroff() - don't take a shortcut.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/lib/libcurses/attributes.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-23 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Fri Nov 23 11:16:59 UTC 2018

Modified Files:
src/lib/libcurses: attributes.c

Log Message:
wattr_set - turn off all wide attributes (fix unedited copy/paste).


To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/lib/libcurses/attributes.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-23 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Fri Nov 23 11:15:14 UTC 2018

Modified Files:
src/lib/libcurses: attributes.c

Log Message:
Rename the reserved argument from "opt" to "opts" to match SUS text.


To generate a diff of this commit:
cvs rdiff -u -r1.27 -r1.28 src/lib/libcurses/attributes.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-23 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Fri Nov 23 11:11:59 UTC 2018

Modified Files:
src/lib/libcurses: attributes.c

Log Message:
Refactor.  Move code to turn attributes on/off into separate
functions.  Express both old and new functions to manipulate
attributes using those functions.  Check that the the new API's opts
argument (reserved by the standard for future use) is NULL and error
out if not (like getcchar/setcchar).  No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/lib/libcurses/attributes.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-22 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Nov 22 23:37:31 UTC 2018

Modified Files:
src/lib/libcurses: attributes.c

Log Message:
Drop a few redundant casts of a variable to its own type.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/lib/libcurses/attributes.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-22 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Nov 22 23:29:09 UTC 2018

Modified Files:
src/lib/libcurses: attributes.c

Log Message:
Move getattrs() and wcolor_set() so that they are with their peers and
so that wide and non-wide functions are in the same order.  While here,
make __wcolor_set() static.  No functional change intended.


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/lib/libcurses/attributes.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-22 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Nov 22 22:16:45 UTC 2018

Modified Files:
src/lib/libcurses: add_wch.c add_wchstr.c addwstr.c cchar.c
echo_wchar.c get_wch.c get_wstr.c in_wch.c in_wchstr.c ins_wch.c
ins_wstr.c inwstr.c

Log Message:
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@


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/lib/libcurses/add_wch.c \
src/lib/libcurses/add_wchstr.c
cvs rdiff -u -r1.3 -r1.4 src/lib/libcurses/addwstr.c
cvs rdiff -u -r1.10 -r1.11 src/lib/libcurses/cchar.c
cvs rdiff -u -r1.2 -r1.3 src/lib/libcurses/echo_wchar.c
cvs rdiff -u -r1.19 -r1.20 src/lib/libcurses/get_wch.c
cvs rdiff -u -r1.4 -r1.5 src/lib/libcurses/get_wstr.c \
src/lib/libcurses/in_wch.c src/lib/libcurses/in_wchstr.c \
src/lib/libcurses/inwstr.c
cvs rdiff -u -r1.11 -r1.12 src/lib/libcurses/ins_wch.c \
src/lib/libcurses/ins_wstr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-22 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Nov 22 22:00:49 UTC 2018

Modified Files:
src/lib/libcurses: Makefile

Log Message:
We need insstr.c for !HAVE_WCHAR too.


To generate a diff of this commit:
cvs rdiff -u -r1.89 -r1.90 src/lib/libcurses/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-20 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue Nov 20 22:02:31 UTC 2018

Modified Files:
src/lib/libcurses: cchar.c

Log Message:
Compare pointers to NULL, not to zero.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/lib/libcurses/cchar.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-20 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue Nov 20 21:42:52 UTC 2018

Modified Files:
src/lib/libcurses: cchar.c

Log Message:
Drop bogus cast.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/lib/libcurses/cchar.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-20 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue Nov 20 21:41:31 UTC 2018

Modified Files:
src/lib/libcurses: cchar.c

Log Message:
Don't hide assignments inside tests.


To generate a diff of this commit:
cvs rdiff -u -r1.7 -r1.8 src/lib/libcurses/cchar.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-20 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Tue Nov 20 17:48:19 UTC 2018

Modified Files:
src/lib/libcurses: cchar.c

Log Message:
Fix color pair handling.  color_pair argument is a pair number.


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/lib/libcurses/cchar.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-19 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Nov 19 20:37:04 UTC 2018

Modified Files:
src/lib/libcurses: background.c

Log Message:
wbkgd - when updating window rendition for the new background character,
it's the old background characters that need to be updated, not spaces.

While here, simplify and also fix the bug introduced in 1.20 (that
lost the default color) - actually use the results of wbkgdset().


To generate a diff of this commit:
cvs rdiff -u -r1.24 -r1.25 src/lib/libcurses/background.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-18 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 22:53:22 UTC 2018

Modified Files:
src/lib/libcurses: background.c

Log Message:
wbkgrnd - do not duplicate code that's already in wbkgrndset()


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libcurses/background.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-18 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 22:34:32 UTC 2018

Modified Files:
src/lib/libcurses: background.c inch.c

Log Message:
When we remove default color from attributes, just clear all __COLOR.
It's both a nono-optmization and matches the test used in counterpart
code that adds default color when none is set.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/lib/libcurses/background.c
cvs rdiff -u -r1.11 -r1.12 src/lib/libcurses/inch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-18 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 22:18:02 UTC 2018

Modified Files:
src/lib/libcurses: background.c

Log Message:
Reorder "bkgrnd" functions to match the order of old "bkgd" functions.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libcurses/background.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-18 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 22:11:39 UTC 2018

Modified Files:
src/lib/libcurses: background.c

Log Message:
Don't fuse HAVE_WCHAR and (trivial) !HAVE_WCHAR bodies into single
function definition.  Instead provide two sets of definitions under
single #ifdef.  Same object code is generated for both HAVE_WCHAR and
!HAVE_WCHAR.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/lib/libcurses/background.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-18 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 21:01:17 UTC 2018

Modified Files:
src/lib/libcurses: background.c

Log Message:
wbkgd - do not duplicate the code that's already in wbkgdset()
that we do call anyway.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/lib/libcurses/background.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-18 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 20:26:29 UTC 2018

Modified Files:
src/lib/libcurses: background.c

Log Message:
Fix comments on bkgdset() and friends to match reality.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libcurses/background.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-18 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 18:52:29 UTC 2018

Modified Files:
src/lib/libcurses: background.c

Log Message:
Don't mix private and public names for the same thing in one statement.
While here, fix harmless edito in a debug call.


To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 src/lib/libcurses/background.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-17 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 02:46:24 UTC 2018

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
Reindent a few lineeq() calls now that we can w/out exceeding 80
columns limit.  Whitespace change only.


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-17 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 02:39:44 UTC 2018

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
Further tweak previous.  Change the check order to be more logical.
No functional change intentded.  While here fix indentation.


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-17 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 02:34:39 UTC 2018

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
Merge one more #ifdef with mostly identical code in both branches.
The same object code is generated modulo gratuitously different order
of checks.


To generate a diff of this commit:
cvs rdiff -u -r1.98 -r1.99 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-17 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 02:17:24 UTC 2018

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
Merge another #ifdefs that now has identical code in both branches
modulo swapped arguments to celleq() call.  Same object code is
generated otherwise for both HAVE_WCHAR and !HAVE_WCHAR


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-17 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 01:54:30 UTC 2018

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
Merge few #ifdefs that now have identical code in both branches.
Same object code is generated for both HAVE_WCHAR and !HAVE_WCHAR.


To generate a diff of this commit:
cvs rdiff -u -r1.96 -r1.97 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-17 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 01:39:55 UTC 2018

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
Define celleq() and lineeq() for !HAVE_WCHAR too and use them instead
of explicit memcmp() calls.  Same object code is generated for both
HAVE_WCHAR and !HAVE_WCHAR, but we can now try to merge some of the
#ifdefs


To generate a diff of this commit:
cvs rdiff -u -r1.95 -r1.96 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-17 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 01:23:57 UTC 2018

Modified Files:
src/lib/libcurses: Makefile

Log Message:
Oops, revert previous.  Wrong tree.


To generate a diff of this commit:
cvs rdiff -u -r1.87 -r1.88 src/lib/libcurses/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-17 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 01:22:49 UTC 2018

Modified Files:
src/lib/libcurses: Makefile

Log Message:
Comment out LIBDPLIBS so that this can be built outside of the tree.


To generate a diff of this commit:
cvs rdiff -u -r1.86 -r1.87 src/lib/libcurses/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-17 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 01:19:29 UTC 2018

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
Rename cellcmp() and linecmp() to celleq() and lineeq() respectively
and make them static.


To generate a diff of this commit:
cvs rdiff -u -r1.94 -r1.95 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-17 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 01:05:30 UTC 2018

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
quickch - fix inverted checks.

I have to admit I have no idea what's going on here, but HAVE_WCHAR
code here inverted the sense of linecmp and cellcmp checks w.r.t the
!HAVE_WCHAR variant just above it.  Cf. also all other similar #ifdefs
in this file.

Found through source code inspection, not really tested.


To generate a diff of this commit:
cvs rdiff -u -r1.93 -r1.94 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-17 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Sun Nov 18 00:45:44 UTC 2018

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
cellcmp - use logical && not bitwise &


To generate a diff of this commit:
cvs rdiff -u -r1.92 -r1.93 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-16 Thread Brett Lymn
Module Name:src
Committed By:   blymn
Date:   Fri Nov 16 10:12:00 UTC 2018

Modified Files:
src/lib/libcurses: curses_private.h fileio.h screen.c shlib_version
tty.c

Log Message:
Fix for PR lib/52063
Many thanks to  Onno van der Linden (o.vd.lin...@quicknet.nl) for providing
the bulk of the patch that fixes the issue.


To generate a diff of this commit:
cvs rdiff -u -r1.67 -r1.68 src/lib/libcurses/curses_private.h
cvs rdiff -u -r1.4 -r1.5 src/lib/libcurses/fileio.h
cvs rdiff -u -r1.34 -r1.35 src/lib/libcurses/screen.c
cvs rdiff -u -r1.42 -r1.43 src/lib/libcurses/shlib_version
cvs rdiff -u -r1.47 -r1.48 src/lib/libcurses/tty.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-14 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Thu Nov 15 03:17:51 UTC 2018

Modified Files:
src/lib/libcurses: addbytes.c

Log Message:
_cursesi_addbyte - fix function comment after what looks like an
editing accident.


To generate a diff of this commit:
cvs rdiff -u -r1.48 -r1.49 src/lib/libcurses/addbytes.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-11-01 Thread Brett Lymn
Module Name:src
Committed By:   blymn
Date:   Fri Nov  2 04:17:39 UTC 2018

Modified Files:
src/lib/libcurses: resize.c

Log Message:
Remove obsolete clauses from copyright block.  Original copyright was
mine so should be ok to do.


To generate a diff of this commit:
cvs rdiff -u -r1.29 -r1.30 src/lib/libcurses/resize.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-10-29 Thread Thomas Klausner
Module Name:src
Committed By:   wiz
Date:   Mon Oct 29 21:06:14 UTC 2018

Modified Files:
src/lib/libcurses: curses_inch.3

Log Message:
Add comma in enumeration.


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/lib/libcurses/curses_inch.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-10-28 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Oct 29 01:27:40 UTC 2018

Modified Files:
src/lib/libcurses: attributes.c

Log Message:
Fix indentation.


To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/lib/libcurses/attributes.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-10-28 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Oct 29 01:19:54 UTC 2018

Modified Files:
src/lib/libcurses: addch.c

Log Message:
waddch - instead of enclosing every statement in #ifdef HAVE_WCHAR
just provide two separate definitions.

Same object code is generated for all four combinations of debug/wchar.


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/lib/libcurses/addch.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-10-28 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Oct 29 01:02:16 UTC 2018

Modified Files:
src/lib/libcurses: refresh.c

Log Message:
Fix operator precedence for !HAVE_WCHAR


To generate a diff of this commit:
cvs rdiff -u -r1.91 -r1.92 src/lib/libcurses/refresh.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-10-28 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Oct 29 00:31:57 UTC 2018

Modified Files:
src/lib/libcurses: ctrace.c

Log Message:
__CTRACE - don't call gettimeofday() twice.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/lib/libcurses/ctrace.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



CVS commit: src/lib/libcurses

2018-10-28 Thread Valeriy E. Ushakov
Module Name:src
Committed By:   uwe
Date:   Mon Oct 29 00:25:20 UTC 2018

Modified Files:
src/lib/libcurses: ctrace.c curses_private.h

Log Message:
Make __CTRACE_init() static and ANSIfy its definition.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/lib/libcurses/ctrace.c
cvs rdiff -u -r1.66 -r1.67 src/lib/libcurses/curses_private.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.



  1   2   3   >