[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: text wrapping in box

From: Thomas Dickey
Subject: Re: text wrapping in box
Date: Wed, 19 Jan 2011 05:00:32 -0500 (EST)

On Wed, 19 Jan 2011, frank_0 wrote:

Hello Thomas,

I have been trying (and failing) to do the following:

*  define a window W1 with a box around it
*  define a window W2 entirely withing W1, no box
*  write to the inside window W2 using MvAddStr

In W2 the text should wrap and appear as enclosed in the W1 box.

Is there a conceptional error in all this? Can it be done?

that sounds as if it will work (addstr wraps).  The usual problem in
implementing this is that refreshes of W1 may overwrite parts of W2.
That's fixed by using touchwin or using panels.

Or is there another way to wrap text in a box without touching the border?

Thomas E. Dickey

reply via email to

[Prev in Thread] Current Thread [Next in Thread]