xterm is the standard terminal emulator for the X Window System.
9
votes
3answers
3k views
How to get VIM to display 256 colors properly
I'm trying to get 256 color theme files to work with VIM under xterm.
This is peaksea how it looks for me:
How it should look:
I've tried following the tips on the wiki page to no avail.
set ...
8
votes
3answers
213 views
How can my script know when I'm in a virtual console vs. an xterm?
A few of my scripts (keymap changing, public key adding) need to act differently when in a virtual console vs. in an xterm. What's the real code for
#!/bin/ksh
if [[ in_a_virtual_console ]]; then
...
8
votes
2answers
661 views
Display command in xterm titlebar
My Bash Prompt is currently setting the xterm titlebar using the following sequence:
PS1='\033]0;\u@\h>\w\007'
Is there an easy way to display the current command in the titlebar. For example, ...
6
votes
2answers
698 views
How to avoid escape sequence attacks in terminals?
Reading the details of CVE-2009-4487 (which is about the danger of escape sequences in log files) I am a bit surprised.
To quote CVE-2009-4487:
nginx 0.7.64 writes data to a log file without ...
6
votes
2answers
913 views
What is bash's meta key?
I tried to use xmodmap to map META_L to the MENU key but it doesn't seem to be accepted by bash as the meta key. So, I am wondering how these components (keyboard, X, xterm, bash) relate to each in ...
6
votes
1answer
364 views
emacsclient -t hangs
I'm trying to use emacs (23.2.1) in daemon mode. I started it as emacs --daemon and that works just fine. But whenever I try emacsclient -t somefile I first get a line of garbage (e.g., `1;25C2;'), ...
5
votes
2answers
1k views
How to identify which xterm a shell or process is running in?
I usually use long running X sessions with several virtual desktops and many many xterms.
I also use job control in the shell (zsh).
Sometimes I wish I could identify an xterm a shell or process is ...
5
votes
3answers
367 views
Is it possible to obtain the current name of the xterm window?
This LDP Howto demonstrates how to change the title of an xterm.
I know that this is also possible using the xtitle command.
Before invoking a long-running action, my script uses such techniques to ...
4
votes
4answers
2k views
How to copy text to xterm
How to paste text in a xterm? Now I can copy text from xterm to an outside application, like Firefox, by highlighting the text there. But I can not copy text from firefox to xterm. I am just normal ...
4
votes
1answer
125 views
What kind of notification is Firefox sending when a download has finished?
I'm using the dynamic window manager of suckless (dwm). I noticed that firefox is able to send nice notifications when a download has finished. See the two figures
When I'm on a different tag, I ...
4
votes
1answer
149 views
Emacs commands in xterm
I found that the commands I used to use in gnome-terminal/bash, those I learned in emacs, are only partially working in xterm/bash. In some cases, I get strange chars like ÿ, æ, and â instead. Do you ...
4
votes
3answers
814 views
Fastest way to get an Euro symbol at a prompt?
First of all I'm working on a keyboard using a QWERTY layout.
Now once in a while I need to get the Euro (€) symbol in my terminal (typically in a xterm).
If I cut'n'paste the Euro symbol, it shows ...
4
votes
2answers
587 views
How to start an xterm from Nautilus, running in the folder I'm viewing?
This was easy in Thunar, but now I'm on a machine where I'm trying to do everything in the Gnome desktop world.
In Nautilus, I'm in some deep-down folder. How do I open an xterm (rxvt, aterm, ...
4
votes
2answers
291 views
is it possible to send a control sequence to a terminal emulator using the keyboard
If you type echo -e '\eZ' and hit return in a shell running in an xterm, you'll see that the terminal emulator prints an obscure code 1;2c. This seems to indicate that xterm interprets the VT100 ...
4
votes
1answer
416 views
How can I save the Xterm configuration I set at runtime?
I configured my xterm using the CTRL-MiddleClick and CTRL-RightClick. Is there a way to export save these settings?
4
votes
2answers
626 views
how to make XTerm never use bold characters?
I am trying to make XTerm to never use a bold font, and nothing seems to work. I put settings in ~/.Xresources and then run xrdb ~/.Xresources and then start a new XTerm. This is what I try:
...
3
votes
2answers
2k views
xterm colors are too bright
I've just started using dwm a couple days ago and I'm using xterm (uxterm) as a terminal emulator.
However, I'm noticing that certain applications (like vi/vim, ls, and others) that output in color ...
3
votes
2answers
255 views
Tmux eclipsed colorized output of ls
I'm running Xubuntu 12.04, and when I use the Terminal I get colored filenames from ls. But inside tmux, everything ls prints is white. I know my tmux supports color, though, because I get color ...
3
votes
2answers
118 views
Why do different terminals have different values for keys in the .inputrc file?
This question really started from here. I would like to know why different terminals like rxvt and xterm use different values when mapping key combinations? Whilst I am in rxvt or xterm how can I find ...
3
votes
3answers
126 views
Sed processed file displays differently in vi vs cat
I can't tell if sed is mucking my file up. In vi or less it displays properly, but cat and more insert other characters. why are they showing up differently
I am on a redhat linux system with a ...
3
votes
1answer
559 views
How to configure the double click behavior in an X terminal?
Under different Unix/Linux systems I've observed different double click behavior in X terminal applications (e.g. xterm).
Sometimes a double click selects everything left and right until the next ...
3
votes
1answer
145 views
How to tell xfce (or an application) where to put the window when starting?
I have a number of different boxes, all running debian and xfce. When I launch multiple applications (specifically xterm windows) on one machine, they end up all in the center of the desktop, and they ...
3
votes
1answer
143 views
How to set up `screen` to modify the window title and xterm-window title?
I'd like to have my current $PS1 prompt (\u@\h:\w$(__git_ps1 "(%s)")\$ plus some coloring) to be also used as screen's window title (in the hardline) and as the xterm window title. How can this be ...
3
votes
1answer
840 views
Run xterm with login shell or not?
Per default xterm starts an interactive shell. But you can also configure it to start an interactive login-shell.
That means that with starting an xterm you get the same kind of shell like logging in ...
3
votes
1answer
282 views
How can I run byobu from xterm at starting?
I set up byobu auto run with the command byobu-enable. It's great when I log in from terminal or ssh, but how can I make xterm attach to it automatically ?
(mate-terminal from Linux mint especially)
3
votes
2answers
423 views
Why use a pts for xterm or anything
I keep reading on multiple sites that pts device files are used for pseudo-terminals which are "not directly connected to the hardware" (ssh, telnet).
Since xterm running on you machine is directly ...
3
votes
1answer
338 views
Weird stuff going on in terminal and emacs since upgrade to Ubuntu 10.10
I can't really describe the slightly odd behaviour of my terminal window and occasionally also on emacs, but here's a picture of it happening:
If I press CTRL+L, it disappears. What could cause ...
3
votes
1answer
287 views
Xterm is not completely erasing field lines
We are running Windows Clients with Cygwin XServer that has a bash script application running on AIX Unix. We have a login script using expect to ssh into the server and then xterm to create the ...
3
votes
1answer
353 views
SSH within SSH displays the wrong machine name in the xterm title bar
I am working on a distributed system connecting to several servers at once. Nothing is started manually in the program I am working on, but this is how to recreate the error manually.
I start a xterm ...
3
votes
0answers
204 views
8-bit input in gnome-terminal
I'm trying to switch from xterm to gnome-terminal but having trouble with alt keys. I have already disabled menu access keys, but I still need 8-bit inputs. In xterm I can set 8-bit inputs in ...
3
votes
2answers
324 views
Resuming screen with UTF8 enabled breaks character input
Overview of UTF8 screen re-attachment issues.
Problem:
Creating a screen that uses UTF8 works perfectly until re-attaching said screen session.
Steps:
ssh remothost
screen -U -S ttytter
[detach ...
2
votes
1answer
753 views
temporary setting the path in an “init” file
I have an "init" file that reads
#!/bin/sh
export PATH=$PATH:/home/me/morph_numsys/software/bin
by which I'd just like to set the path to that folder for only this bash session. However, when I ...
2
votes
4answers
533 views
Set tab width in GUI terminal
I found that
setterm -regtabs 4
doesn't work in xterm or urxvt.
But, this
xterm_set_tabs () {
TERM=linux;
export $TERM;
setterm -regtabs 4
}
will circumvent the problem.
But, I suspect ...
2
votes
2answers
145 views
using watch with ssh
I have a script:
export TERM=xterm
watch -t -d -n 1 'netstat -veeantpo | grep 43597
when we run this script though ssh, it does not determine the monitor resolution. so lines are wrapped although ...
2
votes
4answers
2k views
Xterm with Solarized only showing dark background without font colors
I am trying to get the Solarized color scheme for xterm, but have not had much success with it. I am running Debian 6 and downloaded the Xresources to ~/.Xresources.
After loading the new settings ...
2
votes
2answers
573 views
Simple terminal emulator that supports cut/paste with other programs?
Coming from Mac OS X, I've enjoyed being able to cut/copy/paste text to and from its built in Terminal application.
Now, I am planning to migrate to a tiling window manager like scrotwm, xmonad, ...
2
votes
2answers
115 views
xterm warning: Tried to connect to session manager
I am writing a quick script to read user input and put into commands of a couple different programs. I'm using xterm -e to open a terminal for each separate program.
The script is working fine, but ...
2
votes
1answer
50 views
How can a bash script detect support for window titling escape characters?
I have a debug trap that runs every time I enter a command in bash that sets the window title to indicate what command is running. I'm leaving out all the configuration details and boil it down to:
...
2
votes
1answer
105 views
Extra characters in XTerm printerCommand output
I've set up .Xresources to be able to print the terminal contents to a file when pressing Alt-P:
XTerm*printAttributes: 2
XTerm*printerCommand: cat - > "`mktemp --tmpdir ...
2
votes
1answer
72 views
Make 'CTRL-/' behave the same in vtty and xterm
When I press Ctrl+/ in a graphical terminal (e.g. xterm) I get "undo". However, in a virtual terminal (e.g. Ctrl+Alt+F1) I get "backspace".
In practice I run into this when I'm using emacs in a ...
2
votes
1answer
40 views
Opening a usable xterm window through bash script
I often have projects for which I need multiple terminal windows open at different locations, and setting up my workspace each time I want to work on this project takes a long time, so I'd like to be ...
2
votes
1answer
297 views
Control Initial size of xfce4-terminal?
As I didn't see the option to configure start window size of xfce4's terminal program , is it configurable ?
2
votes
1answer
250 views
Colors wrong in wine with new x server with 8 bit color
I have an old pc game (win95) that I'm trying to play through wine on my ubuntu box. I got it running and all that pretty jazz using this code;
$ xinit /usr/bin/xterm -- :1 -ac -depth 8
Then in the ...
2
votes
1answer
67 views
Why does insert-mode map “<F4>” unpredictably inserts itself or executes intended key strokes?
In Vim 7.3.1-762, mintty 1.1.2 (xterm), cygwin, Windows XP, the insert-mode map <F4> executes the intended key strokes at one time but inserts itself at another time. This undeterministic ...
2
votes
1answer
55 views
Why do I get this 'Erase is backspace' message after I do a reset in xterm?
So when I do a reset in xterm I get something like this:
Erase is backspace.
[omarg@computer]:
I've already checked my .bashrc and .Xdefaults files but it doesn't seem like that message is being ...
2
votes
1answer
240 views
How to fix the shifted function keys in vim in xterm in gnome-terminal?
When I hit the <s-f2> key to execute my nnoremap <s-f2> :set number! mapping Vim opens its "Insert" mode above (O) and types the 1;2Q string. In order to see the entire terminal key code – ...
2
votes
2answers
257 views
XTerm not closing using -e option
I have an tcl script running in MWM and it starts xterm terminals with:
.menu.utils.m add command -label {Xterm} -command {
exec xterm -sb -T "Xterm" -sl 10000 -e su - int &
}
Doing ...
2
votes
1answer
402 views
Emacs mode in zsh: M-b M-f etc. show weird symbols
I have set up zsh to use emacs mode. But typing Alt+f or Alt+b inserts weird symbols (accented letters and so on), rather than moving around by word in the shell like it should. Since I don't ever ...
1
vote
2answers
2k views
Changing terminal emulators
I have ssh access to a remote machine. In this machine if I run echo $TERM I get xterm.
If I want to change my terminal emulator to some other emulator (assuming that it's installed on the remote ...
1
vote
1answer
319 views
Running an xterm remotely with ssh -Y, defies the coloring I setup in .Xresources
The xterm seems to not read the colors I set in my ~/.Xresources file when I connect to a Linux PC remotely.
Basically, if I'm sitting in front of my PC and I run an xterm from Xsession, the colors ...

