[SOLVED] X-Term garbage chars on CLI right at start up.. how to make it not do that.
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
X-Term garbage chars on CLI right at start up.. how to make it not do that.
RIght at the bottom where the $ is their is the "symbols" used to denote whatevers in the prompt I think
this is my .bashrc for my prompt.
Code:
PS1="\u@\H⚡\w $"
It has been doing that every sense this install of Slackware - as I do not use x-term very often. only in certain cases. I've just back them chars off then typed in what I need. still it is not suppose to be doing that. it was not doing that in the prior installs but now is.
this is my /etc/inputrc
Code:
userx@slackwhere⚡~ $cat /etc/inputrc
# /etc/inputrc
# This file configures keyboard input for programs using readline.
# See "man 3 readline" for more examples.
# Configure the system bell. Options are none, visible, and audible.
#set bell-style none
# Enable 8 bit input.
set meta-flag On
set input-meta On
set convert-meta Off
set output-meta On
# Set various nice escape sequences:
"\eOd": backward-word
"\eOc": forward-word
# for linux console
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": beginning-of-history
"\e[6~": end-of-history
"\e[3~": delete-char
"\e[2~": quoted-insert
# for xterm
"\eOH": beginning-of-line
"\eOF": end-of-line
# for freebsd console
"\e[H": beginning-of-line
"\e[F": end-of-line
"\e[3~": delete-char
# this is actually equivalent to "\C-?": delete-char
# VT
"\e[1~": beginning-of-line
"\e[4~": end-of-line
# kvt
"\e[H":beginning-of-line
"\e[F":end-of-line
# rxvt and konsole (i.e. the KDE-app...)
"\e[7~":beginning-of-line
"\e[8~":end-of-line
## enable Alt-arrows
"\e[1;5D": backward-word
"\eOd": backward-word
"\e[1;5C": forward-word
"\eOc": forward-word
I cannot off the top of my head think of anything else that'd be causing it.
if this garbage is part of the prompt (=displayed every time together with your prompt) you need to check your PS1. Try to set it to something simple, like '> ' to check if that was true.
If that garbage displayed only at startup you need to check man bash, look for INVOCATION and examine all the files loaded during startup.
if this garbage is part of the prompt (=displayed every time together with your prompt) you need to check your PS1. Try to set it to something simple, like '> ' to check if that was true.
If that garbage displayed only at startup you need to check man bash, look for INVOCATION and examine all the files loaded during startup.
I did not want to hear that (said in jest)
it does look like that output that is there after the prompt is not something a prompt would use.
after the $ in the prompt
Code:
64;1;2;6;9;15;18;21;22c
As this is X Term specif it does not occur with any other terminal - elum I start whatsoever.
How do you know if it was only xterm related? Did you try to modify PS1? Did you try another term?
process of elimination
they all use
.bashrc
open up all of my other terminals
results
x Term is the only one doing this.
I was just about to do that prompt thing just to eliminate it anyways .. hold on.
I stand corrected
it is this within the prompt
Quote:
⚡
X -Term does not know how to deal with it, obviously.That is why it is doing what it is doing.
now I need to know how to get that font to work (again) in X-Term.
it was something that "just worked" for whatever reasons. Now on this install it does not.
to further enplane, It then had to be something I did in relationship to something that got it to just work. whatever that was. it is in the unknown with me.
due to a tar.gz File I have that would not untar and giving me a UTF-8 error I changed my locate from LANG=en_US to LANG=en_US.UTF-8 that fixed that issue, now that i just checked x-tem due to your post. I see that it stopped outputting that stuff to the cli but still is not showing the lightning bolt. which is only aesthetics and I do not use x-term too much even though I do like how it looks - but - it not having basic copy paste keyboard controls even. I do not use it that much to worry about it that much.
the much I did worry about is now gone. to I am worry free about X-Term ... thanks
gnome terminal has Control+Shift+V to paste, so there is that (at least in ubuntu). There's a general X clipboard, last thing highlighted and middle mouse to paste. And other options. I tend towards urxvt, but sometimes I'm too lazy to venture past xterm.
I never used slack long enough to know what method to reconfigure locales. But in debian.
gnome terminal has Control+Shift+V to paste, so there is that (at least in ubuntu). There's a general X clipboard, last thing highlighted and middle mouse to paste. And other options. I tend towards urxvt, but sometimes I'm too lazy to venture past xterm.
I never used slack long enough to know what method to reconfigure locales. But in debian.
$ sudo dpkg-reconfigure locales
Setting LANG and LC_ALL manually works too.
yeah I know the short cuts, and highlight middle button trick, it is what X-Term still lacks keyboard Control+Shift+C Control+Shift+V and ...
it is an old out dated not updated term that is still used as a standard default type - even other terminals use x-term for its emulation settings
it is just a nice small little white box that can be colored even .. not one of them bigger terms. that is just nice to use now and then. I do suppose if it did have all of the functionalities built in like copy paste KB and Mouse right click and split windows like terminator .. that'd be the cats pajamas
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.