<<< Date Index >>>     <<< Thread Index >>>

Re: [Mutt] #3453: mutt-1.5.18: wrap line as they can be selected with a double click



On Fri, 24 Sep 2010, Michael Elkins wrote:

On Fri, Sep 24, 2010 at 08:57:27PM -0400, Thomas Dickey wrote:
no - using addch has no effect. curses collects all of that information and writes out the changes to the screen when "refresh" is called (which is also a side-effect of calling getch).

Attached is a test case that prints a long string to the window. If I set xterm narrower than the string such that it wraps, I noted that double clicking on the string, or selecting the whole line, does not grab the wrapped portion of the string.

However, when I view the source code in vim or with less, double clicking *does* select the wrapped portion.

vim doesn't use curses (it's a termcap application).
(n)curses happens to provide a termcap interface.

vim does something like curses optimization, but uses fewer features.

Someone (long ago) commented that vim has some code to explicitly write on
the margin to fool xterm into seeing it as wrapping.

An extension could be added to ncurses to make it do something like that.
Doing it by default would confuse other applications...

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net