From 2d336165afeba8143dbe3c870e6497e45897f42f Mon Sep 17 00:00:00 2001 From: William McBrine Date: Sat, 28 Apr 2007 01:13:38 +0000 Subject: [PATCH] I don't know why a loop of addch() was used here instead of addstr() or printw(), but it's unneeded, and doesn't work with multibyte strings. --- demos/testcurs.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/demos/testcurs.c b/demos/testcurs.c index dc96873a..2980aac7 100644 --- a/demos/testcurs.c +++ b/demos/testcurs.c @@ -5,7 +5,7 @@ * wrs(5/28/93) -- modified to be consistent (perform identically) with * either PDCurses or under Unix System V, R4 * - * $Id: testcurs.c,v 1.79 2007/01/17 20:49:08 wmcbrine Exp $ + * $Id: testcurs.c,v 1.80 2007/04/28 01:13:38 wmcbrine Exp $ */ #ifndef _XOPEN_SOURCE_EXTENDED @@ -850,12 +850,7 @@ void clipboardTest(WINDOW *win) wsetscrreg(stdscr, 0, LINES - 1); clear(); mvaddstr(1, 1, "Clipboard contents..."); - move(2, 0); - - for (i = 0; i < length; i++) - addch(ptr[i]); - - addch('\n'); + mvprintw(2, 1, "%s\n", ptr); } Continue2();