Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libcurses Add more debug to mvchgat.
details: https://anonhg.NetBSD.org/src/rev/1d27575ceb5d
branches: trunk
changeset: 781762:1d27575ceb5d
user: blymn <blymn%NetBSD.org@localhost>
date: Fri Sep 28 06:05:19 2012 +0000
description:
Add more debug to mvchgat.
diffstat:
lib/libcurses/chgat.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 4d21c7cdcb69 -r 1d27575ceb5d lib/libcurses/chgat.c
--- a/lib/libcurses/chgat.c Fri Sep 28 06:03:45 2012 +0000
+++ b/lib/libcurses/chgat.c Fri Sep 28 06:05:19 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chgat.c,v 1.4 2009/07/22 16:57:14 roy Exp $ */
+/* $NetBSD: chgat.c,v 1.5 2012/09/28 06:05:19 blymn Exp $ */
/*
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: chgat.c,v 1.4 2009/07/22 16:57:14 roy Exp $");
+__RCSID("$NetBSD: chgat.c,v 1.5 2012/09/28 06:05:19 blymn Exp $");
#include "curses.h"
#include "curses_private.h"
@@ -71,6 +71,11 @@
if (count < 0 || count > win->maxx - x)
count = win->maxx - x;
+#ifdef DEBUG
+ __CTRACE(__CTRACE_ATTR, "mvwchgat: x: %d y: %d count: %d attr: 0x%x "
+ "color pair %d\n", x, y, count, (attr & ~__COLOR),
+ PAIR_NUMBER(color));
+#endif
lp = win->alines[y];
lc = &lp->line[x];
Home |
Main Index |
Thread Index |
Old Index