When pasting some text into mc running in Konsole by pressing a middle mouse button, not only the text I want to paste but also something more is added to the end of it. For example, when I want to paste "Hello", actually "Hello#b=" is pasted. The additional string seems to be random, but always contains three characters, the first one is "#". Everywhere else the pasting by middle mouse button works fine, also in Konsole itself. Version of my mc is 4.7.0_pre3 (marked stable in Gentoo), USE="X edit gpm nls -samba -slang". The problem occurs in all, mc command line bellow panels, any input field in mc, and mc's built-in editor. When pasting text by Konsole's paste action (shortcut key CTRL+Shift+V), no problem occurs. I am using kde-base/konsole-4.3.1-r1. There is no such problem when mc runs in xterm.
# emerge --info Portage 2.1.6.13 (default/linux/x86/10.0/desktop, gcc-4.3.4, glibc-2.9_p20081201-r2, 2.6.29-gentoo-r5 i686) ================================================================= System uname: Linux-2.6.29-gentoo-r5-i686-AMD_Athlon-tm-_XP_1800+-with-gentoo-1.12.13 Timestamp of tree: Fri, 20 Nov 2009 22:00:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 4.0_p28 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.4.4-r13, 2.5.4-r3, 2.6.2-r1, 3.1.1 dev-util/ccache: 2.4-r7 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 1.12.13 sys-apps/sandbox: 1.6-r2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2 sys-devel/binutils: 2.18-r3 sys-devel/gcc-config: 1.4.1 sys-devel/libtool: 2.2.6a virtual/os-headers: 2.6.29 ACCEPT_KEYWORDS="x86" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=athlon-xp -pipe" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -march=athlon-xp -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="buildpkg ccache collision-protect distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch userpriv" GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo http://distfiles.gentoo.org" LANG="cs_CZ.UTF-8" LC_ALL="" LDFLAGS="-Wl,-O1" LINGUAS="cs en fi" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp/portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage/layman/x11 /usr/local/portage/layman/finnish /usr/local/portage/layman/sunrise /usr/local/portage/layman/roslin" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl acpi additions alsa audiofile bash-completion berkdb branding bzip2 cairo cddb cdparanoia cdr cli consolekit cracklib crypt css cups dbus dirac djvu dri dts dvb dvd dvdr eds embedded emboss encode evo exif fam ffmpeg filter firefox flac fortran gdbm gif gimp gpm gstreamer gtk hal iconv id3tag imagemagick imlib inkjar jabber java javascript jbig jpeg jpeg2k kde kipi ladspa lame ldap libnotify libsamplerate lm_sensors mad matroska mikmod mime mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap musepack ncurses nls nptl nptlonly nsplugin odk ogg opengl openmp oscar pam pcre pdf perl png ppds pppd python qt3 qt3support qt4 quicktime rar raw readline reflection rss rtc schroedinger sdl session soundtouch speex spell spl sql sqlite sse ssl startup-notification svg sysfs tcpd templates theora thunar tiff truetype twolame unicode usb v4l vmmouse vorbis wavpack webkit win32codecs wmf x264 x86 xml xorg xosd xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="cs en fi" USERLAND="GNU" VIDEO_CARDS="virtualbox nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Could you please test if this bug is still valid with the just released 4.7.0 final? thanks :)
Yes, it is still a bug also in app-misc/mc-4.7.0.1 and kde-base/konsole-4.3.3 . Sorry for a slow response.
Then try 4.7.0.2 (but I assume it won't change anything) and report it to upstream ticketing system: http://www.midnight-commander.org/
Ladies, this looks more like bug in konsole...
@Jiri: Does bug still render for you? What TERM do you have in konsole? (echo $TERM) In my case plain middle-button pressing in console does not paste the text in kde/x11 buffer at all and Shift-Mouse2 pastes text without garbage in mcedit. (mc-4.7.3, konsole-4.4.4, no KDE env)
(In reply to comment #6) > In my case plain middle-button pressing in console does not paste the text in > kde/x11 buffer at all and Shift-Mouse2 pastes text without garbage in mcedit. The same here. Middle mouse alone never worked for me. Shift-mouse2 works (always worked from day1) as expected (the same stable versions). @Jiri please provide more information how to reproduce the issue.
(In reply to comment #7) > (In reply to comment #6) > > In my case plain middle-button pressing in console does not paste the text in > > kde/x11 buffer at all and Shift-Mouse2 pastes text without garbage in mcedit. > > The same here. Middle mouse alone never worked for me. Shift-mouse2 works > (always worked from day1) as expected (the same stable versions). > > @Jiri please provide more information how to reproduce the issue. > Yes, of course, it is Shift+Mouse2. Sorry. And the garbage is still there. Current versions: app-misc/mc-4.7.0.3 kde-base/konsole-4.4.5
mc-4.7.5 is in tree now, please check if this is still an issue. if it still fails you'll have to submit a bug report to midnight-commander.org or KDE to let them know, otherwise it probably won't be fixed anytime soon :) post the URL(s) here when/if you do. thanks.
*** Bug 353417 has been marked as a duplicate of this bug. ***
Any news with kde-4.6?
Yes, problem still there.
(In reply to comment #12) > Yes, problem still there. How about 4.7?
(In reply to comment #13) > How about 4.7? Bug still there with mc-4.8.0 and KDE 4.7.2.
Please report upstream and link the bug report here.
installing with use USE="-ncurses slang" seems to fix the problem (although there is a separate problem of not showing the text till the cursor moves)
How about 4.8?
If no one's actually actively trying to fix this bug, then just close it. Asking about it on every release doesn't help anything and serves no purpose.
(In reply to comment #18) > If no one's actually actively trying to fix this bug, then just close it. > Asking about it on every release doesn't help anything and serves no purpose. It's not that simple to fix when it's not reproducible on dev's machine. Upstream touches mouse and tty code all the time. slang was updated in tree recently. So there is a reason ping suffering users. BTW, what you are using: USE=ncurses or slang? Do both render problem for you?
(In reply to comment #19) > (In reply to comment #18) > > If no one's actually actively trying to fix this bug, then just close it. > > Asking about it on every release doesn't help anything and serves no purpose. > > It's not that simple to fix when it's not reproducible on dev's machine. > > Upstream touches mouse and tty code all the time. slang was updated > in tree recently. So there is a reason ping suffering users. > > BTW, what you are using: USE=ncurses or slang? Do both render problem for you? I use slang because of the bugs with ncurses. Other distros also ship mc built with slang. AFAIK, Gentoo is the only one that uses ncurses by default. There's also another bug with ncurses. Deleting text (with DEL, not BACKSPACE) deletes the background. It also only happens in Konsole but not in xterm. emerge -pv mc: [ebuild R ] app-misc/mc-4.8.1-r2 USE="X edit gpm ncurses xdg -mclib -nls -samba -slang -test" 0 kB
Please report upstream and link here back.
(In reply to comment #21) > Please report upstream and link here back. Who is upstream? mc or konsole?
I would say mc, because middle mouse works for me with other apps in konsole.
(In reply to comment #20) > (In reply to comment #19) > > (In reply to comment #18) > > > If no one's actually actively trying to fix this bug, then just close it. > > > Asking about it on every release doesn't help anything and serves no purpose. > > > > It's not that simple to fix when it's not reproducible on dev's machine. > > > > Upstream touches mouse and tty code all the time. slang was updated > > in tree recently. So there is a reason ping suffering users. > > > > BTW, what you are using: USE=ncurses or slang? Do both render problem for you? > > I use slang because of the bugs with ncurses. Other distros also ship mc > built with slang. AFAIK, Gentoo is the only one that uses ncurses by > default. > > There's also another bug with ncurses. Deleting text (with DEL, not > BACKSPACE) deletes the background. It also only happens in Konsole but not > in xterm. > > emerge -pv mc: > [ebuild R ] app-misc/mc-4.8.1-r2 USE="X edit gpm ncurses xdg -mclib > -nls -samba -slang -test" 0 kB Loks like you actually used ncurses. Or was it to describe problem with DEL key? I've switched to USE=slang by default in mc-4.8.2.
@mc maintainer: The two apps aren't realy connected, so i ask myself and you: How about adding a info/warn message to mc for USE=ncurses to solve the issue?
(In reply to comment #25) > @mc maintainer: The two apps aren't realy connected, so i ask myself and > you: How about adding a info/warn message to mc for USE=ncurses to solve the > issue? ping :)
>=app-misc/mc-4.8.3 drops the ncurses USE flag, using ncurses only when slang is disabled (enabled by default). How about stabilising a newer version then?
(In reply to comment #27) > >=app-misc/mc-4.8.3 drops the ncurses USE flag, using ncurses only when slang is disabled (enabled by default). > > How about stabilising a newer version then? Newer mc is now stable on all the same archs as konsole. Is there anything else for us to do here?