#21 Problem with copy/paste (X)

open
None
5
2002-05-10
2002-05-09
No

Hello again.

Problem description:

(a) when I select some text with the mouse in order
to put it in the X copy/paste buffer, the text is
not video-reversed, as happened in previous versions
of THE.

(b) A newline character is added to the copied line, so
when it is pasted to the command line nasty effects
are obtained (CR).

(c) If the text is selected from right to left, it is
not put at all in the X copy/paste buffer.

Again, I run THE 3.1 X11 22-November-2001 on a Linux
box, Red Hat Linux release 7.2, kernel 2.4.7-10.
I've set COMPAT XEDIT XEDIT XEDIT.

Thank you a lot.

Pablo

Discussion

  • Mark Hessling

    Mark Hessling - 2002-05-10
    • assigned_to: nobody --> rexx
     
  • Pablo Garcia-Abia

    diff file for pdcx11.c

     
  • Pablo Garcia-Abia

    Logged In: YES
    user_id=254511

    Well, all this has to do with PDcurses, not THE. Anyhow,
    I have a patch (attached) for fixing (b) and (c) in PDcurses
    2.5. Help on (a) is appreciated !!

    (b) The newline character is inserted at the end of each
    line copied to the X buffer, which is ok for copying several
    lines but not so much for shorter strings. I fix the problem
    by preventing the newline character being inserted at the
    end of the last line (or the single string).

    This is the usual behavior under X.

    (c) The lenght of the text string to be copied is calculated
    as "length = end - start +1", which is wrong when start>end.
    I have fixed this.

    I realised that trailing blanks are removed form the lines
    being copied. This is ok for full lines, but not for copying
    shorter strings (like " hello "). I have also fixed this.

    Pablo

     
  • Pablo Garcia-Abia

    Logged In: YES
    user_id=254511

    Now I have fixed (a).

    In PDcurses-2.4 there was some piece of code in the function
    XCursesDisplayText which is now missing in PDcurses-2.5
    (why?). I have restored the very few lines making the mouse
    selection to be reversed. The patch is attached.

    Cheers,

    Pablo

     
  • Pablo Garcia-Abia

    Logged In: YES
    user_id=254511

    Now I have fixed (a).

    In PDcurses-2.4 there was some piece of code in the function
    XCursesDisplayText which is now missing in PDcurses-2.5
    (why?). I have restored the very few lines making the mouse
    selection to be reversed. The patch is attached.

    Cheers,

    Pablo

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks