Server :: Gnome Terminal Cursor Keys Produce Garbage?
Jun 17, 2011
Ubuntu 10.04 - Gnome Termainal - BASH pressing cursor keys in certain users produces garbage. For example:
pressing up arrow produces: ^[[A
pressing down arrow produces: ^[[B
pressing right arrow produces: ^[[C
pressing left arrow produces: ^[[D
Naturally, I'd like my bash history instead of this. For root and my main user I have no problems. I have a few system users (who don't have a standard home directory) and this seems to occur with those users. For example, my amandabackups user has a home directory of /var/lib/amanda.
I've never seen it before and its entirely possible that I may have done something to my system to cause it. Basically, when I open any new terminal window I have a '$' sign instead of the usual blah@blah etc. Also, the cursor keys don't work
I use an ancient text editor - Jove - that I maintain and update myself. It has worked fine on Fedora 6, 7 and 8 under gnome-terminal (known to the Jove editor as xterm). I just installed Fedora 12. When moving around a file being edited, the cursor often 'replicates' itself into a series of blocks (or underlines, depending on the cursor type setting) that seem to correspond to tab-stops. I initially thought it was stumbling on TABs, but it does this weirdness on long strings of blanks, as well. Clearing and redrawing the screen cleans things up until the next movement command.
I _intensively_ checked the code for anything that might be sensitive to the new termcap strings that have come with F12, but nothing. I could live with this if the underline cursor blinked so that I could SEE it in text, but alas, there ain't a blinking cursor. Just found out how to get the cursor blinking on another thread. But, I'd _still_ like go get the 'block' to work right. I compared the termcaps used by Jove in LF8 and LF9 and they were identical. Since the "7-block-wide" cursor bug happens in LF9, 10, 11, and 12 but not in LF8, I can confidently conclude that support for termcap/terminfo has been broken as of Fedora 9. And people ask me why I have four computers. (So I can run F8 F9 and F12 and compare their performance!).
I have recently added a new keyboard layout - international U.S with dead keys - so I can type accentes and so in spanish. Ever since that gnome-terminal doesn't recognize the shortcuts keys like <ctrl>r or <ctrl>c and I get my other language charecters instead. thats happen with any keyboard layout I swith to. Furthermore, <alt><ctrl>+F1...F9 doesn't work either.
[=keys not producing any input] other keys are working:
I have no expertise with this kind of problem. The keyboard used to work on Ubuntu 9.04. I am not positive, but I think it was working on Fedora Gnome 13. It does not work on F-14 LXDE spin, and F-15 LXDE spin. I don't remember either the last time I have disassembled the notebook (damaged connector?)
Im running ubuntu 9.04 remotley via ssh, using putty on a windows computer to control it. I want to redefine one key (I have a swedish keyboard where I have to press AltGr+key to get a tilde sign, would be better if I could get the tilde without AltGr modifier).
I read about xmodmap and xev. Using them I succesfully redefined the key for x-programs. For example if I start firefox over ssh and press the key I get the correct key. But in the terminal session the changes does not take effect. Which is probably logical since xmodmap does only work on the x-server. But how do I redefine the keys for terminal use?
This is not a programming question and this is why I am asking it here.I tested the program "dc" for cursor keys behaviour keys and the system responded by printing strange "^[[A" to the screen instead of doing what cursor keys should do. I am thinking that, I have some package missing that is making interactive CLI programs to misprint characters to the screen.Does anyone know what I need to install, because I must assume, programs in Stable must behave properly.
Just recently got a few printers connected to the network at my shop and I've managed to get them connected in with samba for the linux clients. Whenever I try to print from one of the clients, the printer will click on and whiz away, but only prints on the first page stuff that looks like this:
Code: %!PS-Adobe-3.0 %%BoundingBox: 38 24 574 768 %%Title: Enscript Outpu %%For: User N
It seems to me that the printer isn't processing the postscript data properly (or I'm just not sending it in the right format) but I'm at a loss as to how to go about fixing it.
I've set up home server, which doesn't have to be as powerful as other servers, so I decided to install GUI because of applications that are alternatives to classical GUI applications in headless version requires more skill/knowledge. However, I don't want server to run GUI always at start (which gnome-desktop package does). I need some configuration in KDE/gnome/xfce (haven't decided) that doesn't start GUI after each start (e.g is required to type startx or equivalent command to start GUI)(off topic: can you also recommend good remote-administration with GUI transport ?)
I've created a brand new CentOS 5.4 (Final) 64bit machine AMI on Amazon EC2. This was based off an existing image. I was able to follow the wiki to add NX server. I am using WIN XP desktop for NX client.
I can connect to the EC2 machine and get the GNOME desktop fine. I see the usual CentOS desktop and poke around.
Q/Problem:
I expected to open the Terminal window and get a shell prompt to su into root user (I need to be root to install some software that needs GUI). I do not want to install this from my plain SSH connection to EC2 (hence the NX server etc.).
When I open the Terminal window, all I get is the NX>105 prompt. I need to get to a shell prompt so I can su into root. For life of me, I cannot get around this prompt (I looked at NX documentation too). Note that this is a prompt NOT on client but on the remote machine. I do not need this as I'm already authenticated and logged in to remote GNOME desktop.
Obviously the TERMINAL is running some NX start up script (I've no idea which one). If there is some other way to sudo into root?
I have been doing alot of work in the terminal lately (mostly just for fun) and I was womdering is there a way to use the mouse cursor in the terminal? So I could select and copy/paste text? I know it can be done because I have seen it in slackware before.
I am having trouble using home and end keys in a terminal, to go to the end or beginning of a line. With xterm it will only work with the bash shell, while under zsh nothing is output. With urxvt, mrxvt and aterm pressing the keys in either bash or zsh always just results in a tilde being printed. Is this perhaps because urxvt, aterm and mrxvt are emulating a different terminal type to xterm by default?
Why does xterm work for bash but not for zsh? I don't just want a solution, I want to understand why it doesn't work by default. As a side question, is there any way to press alt+enter within a terminal? I tried to use wicd-curses where you have to use alt+enter to save settings, and it didnt register in any of the terminals, even xterm.
I want to reassign ctrl-shift-C and ctrl-shift-V. How is that done? (I'm using a Mac keyboard and I'd like to take advantage of the command key to avoid having to hit two modifiers.)
I'm running Debian (both Sarge and Lenny, on different systems) under Gnome and have a number of thin client workstations that connect to a software application on an AIX server. I'm using gnome-terminal to provide terminal emulation for this software. Unfortunately, the emulation leaves something to be desired, and doesn't catch all of the F keys properly. It seems F1-F4 act as some form of escape key, exiting out of the software back to the command line, when they should be performing different functions in the software. F5 and F6 work as they should in the emulation. Is there a setting I can apply to my gnome-terminal launcher that will make this behave like it I want? The terminal should ideally match the behavior of a Link MC5 terminal (we have some of these old beasts still around, still crunching away), but alas, I don't know how to implement this.
I did something stupid; I think while creating some new short+keys for the terminal, I must have enabled an unknown feature to me. The keypad now acts like a mouse. For example; With NumLock on, I press 7 the mouse goes north+west. I press 6 the mouse pointer goes east.
I was trying to sign my Ubuntu Conduct Agreement with the key I created for luanchpad. I have one other key that is used for my private folder. While using pgp --clearsign to sign my agreement it kept using the first key I created for my private folder. My work around was to create an email and then copy/paste using the correct key. how can I select between multiple keys from the terminal with pgp --clearsign?
Since the upgrade to Xubuntu 10.10, I'm having issues with Xfce4-terminal. When I use aptitude, the home and end keys don't scroll the list to the top or bottom. With vim, it generates input of adding a new line with F or H on it above the current line. Ctrl+arrow left/right also generate unwanted signals/characters.This does not happen with Kubuntu or Ubuntu and when I install Gnome-terminal and use that, everything works as you expect. This even happens on the live environment. I don't want to use gnome-terminal, as it pulls in more packages than I need and the Xfce4-terminal should just work.
Another thing that happens is that when I read a man page or close vim or aptitude, it behaves as if it's in a TTY: the text it just showed stays on screen or it clears the bunch in the current view and puts the prompt at the bottom. It should be that the application just closes and you get the prompt back the way it was before you started to read the man page for example.It is purely a terminal emulator problem. Does anyone have a solution for these issues?
gnome-terminal from the Debian squeeze does not use the 'default_size_columns' and 'default_size_rows' from the /apps/gnome-terminal/profiles/Default/ folder of gconf.
Linux-goers. I did some research on this, but I am still fairly new to Linux. In Ubuntu 10.10 (Maverick), I accidentally overwrote my "/bin/bash" file. Dude, using "sudo" with a small typo can work disasters. Bash is now broken in the Terminal (gnome-terminal). Terminal itself still works fine, technically, but bash is still hosed/broken. Here is what I did to try to fix it: Booted from Ubuntu 10.10 live CD. Mounted my Ubuntu partition and manually copied the good/fresh "bash" file onto my hard drive. Verified copy was successful. Didn't help, as you see. Reinstalled "gnome-terminal" using synaptic package manager. Tried to reinstall bash via synaptic, it failed with error, "E: /var/cache/apt/archives/bash_4.1-2ubuntu4_i386.deb: subprocess new pre-removal script returned error exit status 2"
In Terminal, all basic commands work as far as I can tell. ("ls", "pwd", navigation, etc.) Here are some problems:My "username@computername" does not display in the prompt; only the $ sign. Bash keyboard shortcuts such as uparrow and tab do not work. Instead, each inserts a key code. I can't even move the cursor left/right. Aliases (a function of bash and .bashrc) are broken, of course. My sanity level decreases when I use Terminal now. For what it's worth, even with "sudo" I get a "permission denied" error when trying to run Google Chrome! I read something about a ".bashrc" file being a possible problem, but I don't know how to make it work, or the file's proper locations in Ubuntu 10.10. Is there something I can do with a "make" or "apt-get install" command or something?? Could this simply be a permissions problem? Is the link to "/bin/bash", "/bin/sh", or a ".bashrc" file broken? Guide me, oh Linux gurus.
P.S. I always wondered what exactly bash was and how it was different from the basic terminal. LoL, this is an excellent way to demonstrate the difference, and I WANT IT BACK!
I installed Gnome 3 on my openSUSE 11.4 install.The cursor goes from white to black like it did in Gnome 2 before I edited etc/sysconfig in Yast.Well I have gotten gnome-tweak-tool and edited sysconfig to use Adwaita and the cursor is still black on firefox white in other areas.
I'm using 10.04, and gnome-terminal GNOME Terminal 2.30.2 . I have irssi running on screen session on remote host. And I've been struggling for quite many days to configure it to produce either visual feedback or ring terminal's bell when I receive a private message or one of those that are highlighted.
My compiz settings window in General tab has 'Audible bell' checked.
My GNOME terminal has 'Terminal bell' checked.
I also added 'set bell-style audible' to my ~/.inputrc
And I also tried to manually load pcspkr module into my kernel.
No of the above helped or at least I haven't been able to notice any difference.
I also used some commands for irssi to produce bell sign.
Is there a terminal emulator which works well in an Ubuntu desktop and provides the following features which Mac OS X's Terminal application has? Re-wrapping text when the window is resized.A Clear command which clears scrollback (as the shell clear does not) and does not clear the cursor's line (typically containing a prompt).
Is there any way to disable shortcut keys in XFCE Terminal ? I can't seem to bind the shortcut keys, and F1 especially really gets in the way for some programs. Have no clue who thought it would be a good idea to bind F1 to a stupid help screen, when many terminal programs need this. I am using fluxbox, so maybe this has something to do with it.
When I take a screenshot in Ubuntu 10.04 (Gnome) using application "Take Screenshot" I get a screenshow this a default mouse cursor, but when i take a screenshot, cursor of mouse was another, for instance, cursor of mouse, which happen when window is resizing. How i can do screenshot with current cursor mouse, but not default
When I go to the appearance preferences in Ubuntu 10.04 w/GNOME and try to select a cursor different from the default, nothing happens, the cursor refuses to change. Logging out and in doesn't work. Over the weeks I've played around with this machine a bit, installing and uninstalling various DEs such as Kubuntu and LXDE; I have a feeling something messed up my cursor config while I was changing stuff, but I don't know what or where. Is there any quick way to troubleshoot why the cursor isn't changing?
Is it possible to change a color of the text cursor for all GUI applications in GNOME? Now it's black but I want it was blue or red. How can I achieve it