Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
copy paste to/from xterm with middle mouse button
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
10B2
n00b
n00b


Joined: 28 May 2013
Posts: 58

PostPosted: Fri Mar 17, 2017 11:59 am    Post subject: copy paste to/from xterm with middle mouse button Reply with quote

Hi, have fluxbox and xterm. After the system update cannot anymore copy/paste to/from xterm with middle mouse. Which is the way to achieve this again, possibly without restarting x server?
Back to top
View user's profile Send private message
Schnulli
Guru
Guru


Joined: 25 Jun 2010
Posts: 320
Location: Bremen DE

PostPosted: Sat Mar 18, 2017 12:12 am    Post subject: Reply with quote

use another terminal app.. thats it
not all allow to copy/paste
Back to top
View user's profile Send private message
10B2
n00b
n00b


Joined: 28 May 2013
Posts: 58

PostPosted: Mon Mar 20, 2017 9:36 am    Post subject: Reply with quote

it worked perfectly fine before the update...has this to do with xorg.conf? Xresources? What else?
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 13496

PostPosted: Tue Mar 21, 2017 1:07 am    Post subject: Reply with quote

Middle-mouse paste still works for me in xterm here. Please qualify "after the system update." What is the output of emerge --info list-of-recently-updated-packages?
Back to top
View user's profile Send private message
10B2
n00b
n00b


Joined: 28 May 2013
Posts: 58

PostPosted: Tue Mar 21, 2017 8:49 am    Post subject: Reply with quote

Code:
emerge --info

Portage 2.3.3 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop, gcc-5.4.0, glibc-2.23-r3, 4.9.6-gentoo-r1 x86_64)
=================================================================
System uname: Linux-4.9.6-gentoo-r1-x86_64-Intel-R-_Core-TM-_i7-4790K_CPU_@_4.00GHz-with-gentoo-2.3
KiB Mem: 8041448 total, 4081012 free
KiB Swap: 8388604 total, 8388604 free
Timestamp of repository gentoo: Fri, 17 Feb 2017 00:45:01 +0000
sh bash 4.3_p48-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash: 4.3_p48-r1::gentoo
dev-java/java-config: 2.2.0-r3::gentoo
dev-lang/perl: 5.22.3_rc4::gentoo
dev-lang/python: 2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake: 3.7.2::gentoo
dev-util/pkgconfig: 0.28-r2::gentoo
sys-apps/baselayout: 2.3::gentoo
sys-apps/openrc: 0.22.4::gentoo
sys-apps/sandbox: 2.10-r3::gentoo
sys-devel/autoconf: 2.13::gentoo, 2.69::gentoo
sys-devel/automake: 1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils: 2.25.1-r1::gentoo
sys-devel/gcc: 4.8.3::gentoo, 4.9.3::gentoo, 4.9.4::gentoo, 5.4.0-r3::gentoo
sys-devel/gcc-config: 1.7.3::gentoo
sys-devel/libtool: 2.4.6-r2::gentoo
sys-devel/make: 4.2.1::gentoo
sys-kernel/linux-headers: 4.4::gentoo (virtual/os-headers)
sys-libs/glibc: 2.23-r3::gentoo
Repositories:

gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000

dlang
location: /var/lib/layman/dlang
masters: gentoo
priority: 50

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=corei7 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=corei7 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://mirror.mcs.anl.gov/pub/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/ http://www.gentoo.org/proj/en/overlays/repositories.xml ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/ mirror.qubenet/mirror/gentoo http://www.mirrorservice.org/sites/distfiles.gentoo.org/ rsync://mirror.mcs.anl.gov/pub/gentoo/ "
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow X \ a52 aac acl acpi alsa amd64 ao berkdb bindist bluetooth branding bzip2 c++11 cairo calendar cdda cdr cjk cleartype cli corefonts cracklib crypt cups cxx dbus device-mapper djvu dri dts dvd dvdr emacs emboss encode exif fam fbcom ffmpeg firefox flac fontconfig fortran ftp gdbm ghostscript gif gimp git glamor gnuplot gpm gsl gstreamer gtk gtk3 gudev hal hddtemp iconv ipv6 javascript jpeg kerbedos latex lcms ldap libnotify mad mmx mng modules mp3 mp4 mpeg mpi multilib ncurses net nls nptl nptlonly nsplugin ogg opengl openmp pam pango pcre pcrereadline pdf png policykit postscript ppds profile pulseaudio python qt3support
qt4 qt5 readline samba scsi sdl seccomp session skype smp spell sse sse2 ssl startup-notification svg systemd tcpd tif tiff truetype type1 udev udisks unicode upower usb v41 v412 vorbis wxwidgets x264 xattr xcb xcomposite xemacs xml xorg xps xscreensaver xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="intel fbdev virtualbox" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

+++++++++++++++++++++++++++++++++++++++++++++++++++
Code:


genlop -l --date 2017/03/01
 * packages merged:

     Wed Mar 15 10:36:25 2017 >>> dev-qt/qtcore-5.7.1
     Wed Mar 15 11:30:33 2017 >>> dev-qt/qtcore-4.8.6-r2
     Wed Mar 15 11:36:26 2017 >>> dev-qt/qtcore-5.6.2-r1
     Wed Mar 15 11:36:46 2017 >>> dev-qt/qtxml-5.6.2
     Wed Mar 15 11:37:39 2017 >>> dev-qt/linguist-tools-5.6.2
     Wed Mar 15 11:38:14 2017 >>> kde-frameworks/kconfig-5.29.0
     Wed Mar 15 11:40:23 2017 >>> kde-frameworks/solid-5.29.0
     Wed Mar 15 11:40:56 2017 >>> dev-libs/libattica-0.4.2
     Wed Mar 15 11:46:53 2017 >>> dev-qt/designer-5.6.2
     Wed Mar 15 11:47:01 2017 >>> dev-util/automoc-0.9.88-r1
     Wed Mar 15 12:08:16 2017 >>> dev-python/PyQt5-5.5.1
     Wed Mar 15 12:08:43 2017 >>> kde-frameworks/kunitconversion-5.29.0
     Wed Mar 15 12:09:35 2017 >>> kde-frameworks/kservice-5.29.0
     Wed Mar 15 12:09:55 2017 >>> kde-frameworks/kemoticons-5.29.0
     Wed Mar 15 12:11:19 2017 >>> app-text/poppler-0.45.0
     Wed Mar 15 12:13:30 2017 >>> app-emulation/q4wine-1.3.1
     Fri Mar 17 10:43:39 2017 >>> x11-apps/xmodmap-1.0.9
     Fri Mar 17 10:49:04 2017 >>> x11-misc/parcellite-1.1.9
     Fri Mar 17 10:53:45 2017 >>> x11-terms/xterm-325
     Mon Mar 20 10:06:38 2017 >>> app-text/wgetpaste-2.28
     Mon Mar 20 14:10:42 2017 >>> dev-libs/quazip-0.7.2-r1
     Mon Mar 20 14:18:28 2017 >>> app-office/texstudio-2.11.2-r1
     Mon Mar 20 14:25:24 2017 >>> app-office/texstudio-2.11.2-r1
     Mon Mar 20 15:47:24 2017 >>> dev-util/mdds-1.2.2

A major update occurred before March anyway (in January the list is very long)

[Moderator edit: added [code] tags to preserve output layout. -Hu]
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7051
Location: almost Mile High in the USA

PostPosted: Thu Mar 23, 2017 9:41 pm    Post subject: Reply with quote

Just as clarification, are you saying you can't select and paste back into the same xterm?

Does the middle button still give events? You can try xev and see if middle button still works, or if it works on other applications?

Also, as you seem to have kde, just want to make sure you're working with specifically xterm and not vte or something like that?

Cutting and pasting into other applications is a different issue, usually having compatible toolkits will allow interchange. Perhaps the other program's toolkit changed if you're having issues copying/pasting into another program. xorg.conf is only read during X11 startup so if you don't want and didn't restart X, this file isn't the problem.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
_Nomad_
Guru
Guru


Joined: 11 Apr 2003
Posts: 571

PostPosted: Thu Mar 23, 2017 10:11 pm    Post subject: Reply with quote

Do you have
Code:
XTerm*selectToClipboard: true

in your .Xresources?
Back to top
View user's profile Send private message
10B2
n00b
n00b


Joined: 28 May 2013
Posts: 58

PostPosted: Fri Mar 24, 2017 9:32 am    Post subject: Reply with quote

Hi, added 'Xterm*rightScrollBar: true' to .Xresources. Seems to me that already tried it, but no result. For instance, also have 'Xterm*rightScrollBar: true' but the xterminal does not show off the scrollbar by default...Can I load Xresources without starting the xserver again?
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Fri Mar 24, 2017 10:05 am    Post subject: Reply with quote

10B2 wrote:
Hi, added 'Xterm*rightScrollBar: true' to .Xresources. Seems to me that already tried it, but no result. For instance, also have 'Xterm*rightScrollBar: true' but the xterminal does not show off the scrollbar by default...Can I load Xresources without starting the xserver again?

10B2 ... yes:

Code:
$ xrdb -load ~/.Xresources

By the sounds of it you aren't doing the same in ~/.xinitrc

best ... khay
Back to top
View user's profile Send private message
10B2
n00b
n00b


Joined: 28 May 2013
Posts: 58

PostPosted: Fri Mar 24, 2017 10:17 am    Post subject: Reply with quote

sorry for bit of confusion:

This is my .Xresources:

+++++

Xft.dpi: 125
Xterm*scrollBar: true
Xterm*rightScrollBar: true
XTerm*selectToClipboard: true

+++++

Not sure if proceeding correctly:

- opened an xterm in my workspace
- xrdb -load ~/.Xresources
- xterm to open a new terminal
- no scrollbar, no mouse copy-paste

I can copy to clipboard by selecting text in xterm with right mouse, I can copy it e.g. in this window (firefox) or in a text file, but cannot copy it in an xterminal, which would be what I want.
Back to top
View user's profile Send private message
10B2
n00b
n00b


Joined: 28 May 2013
Posts: 58

PostPosted: Fri Mar 24, 2017 10:34 am    Post subject: Reply with quote

... can copy to clipboard by selecting text in xterm with right mouse, I can paste it e.g. in this window (firefox) or in a text file, but cannot paste it in an xterminal, which would be what I want.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sat Mar 25, 2017 2:26 am    Post subject: Reply with quote

10B2 wrote:
- opened an xterm in my workspace
- xrdb -load ~/.Xresources
- xterm to open a new terminal
- no scrollbar, no mouse copy-paste

10B2 ... and you see the values from .Xresources in 'xrdb -query -all'?

10B2 wrote:
... can copy to clipboard by selecting text in xterm with right mouse, I can paste it e.g. in this window (firefox) or in a text file, but cannot paste it in an xterminal, which would be what I want.

When you use the term "xterm", and then "xterminal", I'm lead to think this may not be x11-terms/xterm ... we are talking about 'xterm' and not any number of other x11-terms/*?

best ... khay
Back to top
View user's profile Send private message
10B2
n00b
n00b


Joined: 28 May 2013
Posts: 58

PostPosted: Mon Apr 10, 2017 2:45 pm    Post subject: Reply with quote

It's xterm-325:

equery l xterm
* Searching for xterm ...
[IP-] [ ] x11-terms/xterm-325:0

then, when xrdb -query -all

...
...
...

XTerm*selectToClipboard: true
Xft.dpi: 125
Xterm*rightScrollBar: true
Xterm*scrollBar: true

As for instance, I can select the previous lines from my xterm window and paste them into this box. What I would also like to do is pasting in xterm window with the mouse.
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7051
Location: almost Mile High in the USA

PostPosted: Mon Apr 10, 2017 5:51 pm    Post subject: Reply with quote

So when copying from firefox to xterm doesn't work but the other way around does?
What if you select, Edit->Copy instead of just selecting, and then pasting?

Want to be clear, this is the behavior you're seeing? :

Code:
FROM \ TO--XTERM FIREFOX
Xterm       YES      YES
Firefox     NO       YES

_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum