Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: balducci@units.it Newsgroups: gnu.bash.bug Subject: 5.1-alpha: X primary selection being pasted in reverse video Date: Sun, 21 Jun 2020 10:35:49 +0200 Lines: 86 Approved: bug-bash@gnu.org Message-ID: References: <9014.1592728573@dschgrazlin2.units.it> Reply-To: balducci@units.it NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: usenet.stanford.edu 1592745525 8143 209.51.188.17 (21 Jun 2020 13:18:45 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org Envelope-to: bug-bash@gnu.org X-Mailer: MH-E 8.6+git; nmh 1.7.1; GNU Emacs 27.0.91 Content-ID: <9013.1592728573.1@dschgrazlin2.units.it> X-Greylist: inspected by milter-greylist-4.6.2 (dschgrazlin2.units.it [0.0.0.0]); Sun, 21 Jun 2020 10:35:50 +0200 (CEST) for IP:'127.0.0.1' DOMAIN:'loopback' HELO:'dschgrazlin2.units.it' FROM:'balducci@units.it' RCPT:'' X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (dschgrazlin2.units.it [0.0.0.0]); Sun, 21 Jun 2020 10:35:50 +0200 (CEST) Received-SPF: pass client-ip=140.105.55.81; envelope-from=balducci@units.it; helo=dschgrazlin2.units.it X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/21 04:36:14 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Sun, 21 Jun 2020 09:18:43 -0400 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: <9014.1592728573@dschgrazlin2.units.it> Xref: csiph.com gnu.bash.bug:16423 hello I actually don't know if this is a real problem with 5.1-alpha or if it's something related to my environment and/or build procedure The problem is the following If I paste in a terminal running 5.1-alpha a string stored in the primary = X selection, the string is inserted in reverse video (actually, not a big problem, since I'm not experiencing any other additional malfunction...) I'm not in the position to debug this. I can just add some empirical observations I have done about it: =3D> no problem whatsoever if I run bash-5.0 (pl17) (everything else uncha= nged) =3D> the problem doesn't seem to depend on the particular terminal program: xterm (my usual terminal), mlterm, vte (terminals I have at ha= nd) =3D> the problem goes away if I set the value of the TERM variable to something different from "xterm"; even unsetting TERM altogether fixes things =3D> the problem goes away if I run screen in the terminal (this is probably related to the point above, as screen changes the TERM variable from "xterm" to "screen") =3D> no problem if I'm not running X, eg if I make a selection and paste it with gpm in a console (again: TERM=3Dlinux in this case) On the whole, it looks to me that the problem might be related (in some way) to the interaction of 5.1-alpha with the terminal program when TERM=3Dxterm Possibly related to this thread? https://lists.gnu.org/archive/html/bug-bash/2020-06/msg00066.html Apologies: as I said, my knowledge is insufficient to let me go deeper than this I enclose "stty -a" and bash build information below, if that can be of any help thanks a lot ciao -gabriele ----8<---- Configuration Information [Automatically generated, do not change]: Machine: x86_64 OS: linux-gnu Compiler: gcc -m64 Compilation CFLAGS: -I/usr/Xorg/include = uname output: Linux dschgrazlin2 5.7.3 #1 SMP Thu Jun 18 09:18:36 CEST= 2020 x86_64 GNU/Linux Machine Type: x86_64-pc-linux-gnu Bash Version: 5.1 Patch Level: 0 Release Status: alpha ---->8---- ----8<---- dschgrazlin2:17> stty -a speed 38400 baud; rows 24; columns 80; line =3D 0; intr =3D ^C; quit =3D ^\; erase =3D ^?; kill =3D ^U; eof =3D ^D; eol =3D= ; eol2 =3D ; swtch =3D ; start =3D ^Q; stop =3D ^S; susp =3D= ^Z; rprnt =3D ^R; werase =3D ^W; lnext =3D ^V; discard =3D ^O; min =3D 1; time =3D 0; -parenb -parodd -cmspar cs8 -hupcl -cstopb cread -clocal -crtscts -ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixo= n -ixoff -iuclc -ixany -imaxbel iutf8 opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs= 0 vt0 ff0 isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -ec= hoprt -echoctl echoke -flusho -extproc ---->8----