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

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



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.

Is there some curses call missing to enable this behavior?

me
#include <curses.h>

int main(void)
{
  initscr();
  cbreak();
  noecho();
  
printw("0123456780123456780123456780123456780123456780123456780123456780123456780123456789");
  getch();
  endwin();
  return 0;
}