Ticket #2575 (closed defect: wontfix)

Opened 13 years ago

Last modified 8 years ago

Invalid content when using xclip

Reported by: zergen Owned by:
Priority: major Milestone:
Component: mc-core Version: master
Keywords: Cc: gotar@…
Blocked By: Blocking:
Branch state: no branch Votes for changeset:

Description

I tried to use xclip to integrate MC with X clipboard. I added to ini these lines:

clipboard_store=xclip -i -selection clipboard
clipboard_paste=xclip -o -selection clipboard

Then when I select some text in MC, press ctrl+insert and try to paste also in MC (shift-insert) I receive some old content from X selection. But if I copy in another allpication and paste in MCV, or reverse - copy in MC and paste in another application - all works.

I installed git version e608f9cefe6400ec02d2fc906dd63b3ed0bda651.

mc -V output:

GNU Midnight Commander 4.8.0-pre1-3-ge608f9c
Built with GLib 2.24.2
Using the S-Lang library with terminfo database
With builtin Editor
With subshell support as default
With support for background operations
With mouse support on xterm and Linux console
With support for X11 events
With internationalization support
With multiple codepages support
Virtual File Systems: cpiofs, tarfs, sfs, extfs, ftpfs, fish
Data types: char: 8; int: 32; long: 64; void *: 64; size_t: 64; off_t: 64;

Change History

comment:1 Changed 13 years ago by angel_il

so... you cant use "shift-insert"
try start

$ cat

press ctrl-insert
you'l see "^[[2;5~" or like this...

but if you press shift-insert... terminal just insert text from clipboard...

you can use ctrl-v for paste...

Last edited 13 years ago by andrew_b (previous) (diff)

comment:2 Changed 13 years ago by angel_il

and i have solution for xterm

  1. create file

~/XTerm
with follow

XTerm*VT100.Translations: #override \
    Shift  <Key>Insert: string(0x1b) string("[2;2~")
  1. restart xterm, start 'cat'

if after shift-insert you see "^[[2;2~" WIN! else return step 1.

have a nice day :)

Last edited 13 years ago by andrew_b (previous) (diff)

comment:3 Changed 13 years ago by zergen

Oh, thanks! I already figured out that it's XTerm, but was unable to invent config to unbind this. Thanks again!

comment:4 Changed 13 years ago by angel_il

  • Status changed from new to closed
  • Resolution set to wontfix

comment:5 Changed 13 years ago by gotar

  • Cc gotar@… added

comment:6 Changed 8 years ago by andrew_b

  • Milestone Future Releases deleted
Note: See TracTickets for help on using tickets.