xterm is the standard terminal emulator for the X Window System.

learn more… | top users | synonyms

47
votes
4answers
11k views

How do I get the numpad to work in vim using iterm2 on osx with term=xterm?

My numpad works in iterm2 (bash), but it inserts characters instead of numbers in insert mode for vim. How can I get vim to recognise the correct escape codes. I have tried editing the escape codes ...
21
votes
3answers
3k views

Move a program started in GNU screen out to another terminal

I want to terminate an instance of GNU screen whilst preserving the process running inside it. So I opened my regular terminal emulator program and executed screen. Then I used that instance of ...
21
votes
1answer
23k views

What is the difference between xterm and terminal in Ubuntu?

What's the difference between Terminal in Ubuntu desktop (Applications>Accessories>Terminal) and xterm? They look very similar.
15
votes
5answers
16k views

How can I change the colors of my xterm using Ansi escape sequences?

I would like to change the colors (background, font, foreground) of my xterm from the commandline. I've heard that this can be done using ANSI escape sequences. If this is possible: How is it done?...
14
votes
2answers
15k views

Vim copy-paste across terminals

The usual vim yank and paste works only in the same window (but does work across files and close/save commands). Is it possible to make it work across terminals (yank from window in one terminal and ...
13
votes
8answers
7k views

How do I make XTerm not use bold?

I like using XTerm, I like its default "fixed" font, and I like using terminal colors rather than having a monochromatic terminal. However, XTerm seems to insist on using a bold version of the font ...
13
votes
6answers
9k views

How can I automatically update the title in an xterm running screen?

This is a bit of a followup to this question. I'm working in tcsh within GNU screen in an xterm. I have the following in my .cshrc: alias res_t 'xtset -t %h:%d "(%u:%g)" %e' # reset titlebar ...
13
votes
1answer
4k views

What is the difference between screen-256 color and xterm-256color

I've just started using tmux and I'm having trouble with my colorscheme in vim. I've using the zenburn color scheme and it works fine with the default terminal settings in Ubuntu 10.04. However, ...
12
votes
4answers
6k views

How do I prevent Cygwin's XWin Server automatically starting xterm?

Whenever I start Cygwin's X server using the "XWin Server" link in my Start menu, or by running startxwin from a Cygwin shell, I automatically get an xterm window appearing, which I neither want nor ...
10
votes
1answer
331 views

How to disable alternate buffer in GNU screen itself but not for vim, less inside it?

What I would like to accomplish is mouse wheel scrolling behavior that I'm used to in a regular ssh session. In bash prompt mouse wheel should scroll my terminal output, and inside less/vim - the ...
8
votes
2answers
1k views

copy and paste tabs between terminal windows in X11

When I copy and paste text using the X11 mouse selection between two terminal windows, tabs are often, but not always, converted to spaces. This appears to depend on the involved terminal ...
7
votes
1answer
9k views

How to make `ls` color its output by default, without setting up an alias?

I don't want an alias (alias ls='ls --color'), and I had previously set this up on Mac OSX using CLICOLOR environment variable which magically brought colors to ls. Now I am on Linux (Arch x86-64) ...
7
votes
2answers
15k views

Why can't I paste into xterm (XQuartz)?

I'm on a Mac (OS 10.8.2) and I'd like to start using xterm as my default terminal, rather than Terminal.app. Unfortunately, I can't paste text into an xterm window, and this is something that I ...
7
votes
1answer
681 views

Native xterm mouse scrolling in tmux

I have decided to try tmux as GNU screen replacement and wonder if there is a way to scroll with mouse as in xterm? It is possible to enable native xterm scrolling with Shift + PageUp in tmux by set ...
6
votes
3answers
4k views

How to switch MiniBufExplorer tabs in VIM when connecting with xterm?

I just installed MiniBufExplorer in VIM on an Ubuntu server, to which I'm connecting using xterm from a Mac (via ssh). From what I gather, after giving the command :set mouse=a I can use the mouse in ...
6
votes
2answers
1k views

alt-d alt-f etc. stops working in my xterm

Something weird sometimes happens on my Debian system. Typically at the prompt line I can use combo like alt-d to delete a word, alt-f to go to the next word, etc. But quite regularly something ...
6
votes
3answers
2k views

Programmatic access to current xterm background color?

I would like to setup the prompt colors in .bashrc depending on the colors it is using for foreground and background. For example, blue prompt if background is light and beige if it is dark. Is ...
6
votes
3answers
2k 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)
5
votes
2answers
9k views

How do you change the default TERM value set at console login (Ubuntu)?

The $TERM shell value in Ubuntu defaults to "xterm" for a console login. How can I change it so it defaults to "xterm-color"? I'm asking because it looks like this is the easiest way to turn-on the ...
5
votes
1answer
434 views

Vim: Broken colors on start

I'm using uxterm and vim with the following .vimrc: https://github.com/dbrgn/dotfiles/blob/master/.vimrc When I open a file in vim and don't push any key, colored text is rendered using bold font and ...
5
votes
0answers
773 views

I can't get XFCE terminal to display VIM's colorschemes

That's what I have in my .bashrc if [ -n "$DISPLAY" -a "$TERM" == "xterm" ]; then export TERM=xterm-256color fi In my .vimrc I have: set t_Co=256 echo $TERM prints xterm-256color tput ...
5
votes
1answer
995 views

Enabling Italics, Underline on Emacs, Xterm and Putty

I'm using a Ubuntu (11.04 Server Edition) virtual machine as my development environment. It doesn't have a desktop environment since I don't think its necessary and I want to keep it lightweight. I'm ...
5
votes
1answer
644 views

get focus only by clicking the title bar of xterm

I've suffered this problem many times and so do my colleagues Sometimes after you stroked some keyboard and mouse combinations this behavior showed up : you have to click a xterm's title bar to focus ...
4
votes
4answers
25k views

PuTTY or xterm for Mac?

I am using a MacBook Pro running Mac OS X 10.5. I am new to this development environment, and previously worked on Windows. Are there similar tools on Mac like PuTTY or xterm used on Linux/Windows (...
4
votes
5answers
6k views

Compiling vim with xterm_clipboard support

I checked out latest vim7 from cvs repository. cvs -z3 -d:pserver:anonymous@vim.cvs.sf.net:/cvsroot/vim checkout vim7 I tried: ./configure --enable-xterm_clipboard but I got - WARNING: ...
4
votes
1answer
273 views

Alias empty command in terminal

I would like to clear my terminal upon hitting submitting an empty command. In other words, I would like to call clear when I hit Enter on empty line. Is that possible? I understand that is not how ...
4
votes
3answers
8k views

How do you know the correct name to use for X11 fonts for XTerm*faceName or xterm -fa <NAME>?

I am using Mac OS X 10.8 and XQuartz 2.7.2. I have downloaded and placed several TrueType fonts named *.ttf in my /Users/<name>/.fonts directory. Upon running XQuartz several files including ...
4
votes
5answers
577 views

Prevent vim from clearing the clipboard on exit

If I copy text into the xterm clipboard from vim, it is cleared when I exit vim. How do I prevent this?
4
votes
2answers
4k views

how to insert unicode characters in xterm

... assuming it supports Unicode ?
4
votes
1answer
2k views

Correct way to get emacs 16 color support inside tmux?

I'm trying to get a custom color-theme (solarized) setup for my emacs that utilizes a 16 color palette, which I've already set up for my terminal (gnome-terminal). When running emacs from a normal ...
4
votes
1answer
1k views

Vim enable mouse scroll only - not cursor positioning

I want to enable the mouse wheel for scrolling like ^e and ^y do. I don't want clicking in a buffer to move the cursor though, so :set mouse=a does not help me. Reason is that I have a bunch of gui ...
4
votes
1answer
2k views

Missing glyphs in Terminus font, how to setup a fallback font?

Most of my work happens in a terminal, so I need a clear, readable font. I've settled a while ago on Terminus (http://sourceforge.net/projects/terminus-font/), which works wonders for me. I added ...
3
votes
2answers
7k views

Leave xterm open after task is complete

I have an automated test that I run with the xterm -e command: xterm -e RunMyTests At the end of the test-run, it prints out a summary of the results and some statistics to stdout. I'd like to ...
3
votes
2answers
2k views

xterm not wrapping text properly

I'm configuring both my gnome-terminal and xterm columns (i still haven't picked which of these I will be using) and I have a couple of issues I would like to fix: the typing area seems to be ...
3
votes
3answers
2k views

XFCE not restoring xterm position on login

I really like xterm and could really like XFCE, but the two don't seem to play well together. In KDE if I log out and back in, my xterms will be restarted in the same position as when I left. It ...
3
votes
3answers
574 views

Xterm control sequence to get RGB value for ANSI color

The meat In (some) terminals you can use a sequence like this; printf "\e]4;3;rgb:cc/78/33\e\\" to set the third color in the ANSI color palette to the RGB values represented by #CC7833. Can you ...
3
votes
2answers
41k views

How to get xterm on RHEL6 and CentOS6 stock installs?

I have a library of virtual machines on which I am running product testing, and I am encountering an issue with xterm not being found. Originally I thought xterm was a basic terminal installed across ...
3
votes
3answers
4k views

How to scroll the terminal emulator window in smaller steps using the keyboard?

How could I scroll up and down the bash shell window (without the mouse or scroll bars, just using the keyboard)? Shift+PageUp and Shift+PageDown acts like page up and page down. But how could one ...
3
votes
1answer
360 views

Distinguishing local and remote access in shell (TERM-related)

My default TERM is xterm-color. I would like it to be xterm-256color when I am working on my machine locally, but if I ssh to it I want to have it be xterm-color. How do I distinguish these two cases?
3
votes
1answer
1k views

TWM: Bring xterm to front on clicking anywhere in the window

Can someone tell me what should I put in my .twmrc, so that an xterm window is brought to front (raised) when I click anywhere in the window. Currently, I have to click on the title bar to bring it to ...
3
votes
1answer
1k views

opening vim in tmux, i've got fonts in bold

So I've got a problem, when opening vim in tmux, all fonts become in bold. my in configuration i have: set t_Co=256. Even when this being set to 8, some bolding disappears, on some keywords. I'm ...
3
votes
1answer
924 views

How to change background/foreground color on “all” existing terminals

I am looking for a command line way to change the background & foreground colors of all open terminal (and also for any new terminal, the new settings should be applied). Using something like ...
3
votes
2answers
300 views

Vim/Cygwin: No linebreaks in :! output

I'm using Vim via MinTTY under Cygwin. When I issue a command like :!ls -la the displayed output doesn't show newlines correctly. It rather just jumps to the virtual column of the next line, where ...
3
votes
1answer
899 views

How can I change the color of xterm titlebar?

I want to automatically change the color of my xterm titlebar. I would like to put code into my .bashrc so that the color changes automatically (say depending on the directory I am in). I know how to ...
3
votes
4answers
242 views

When using screen, I see me as logged in twice through 'who'

I've been using Gnu screen for some time now, and I absolutely love it! I installed it on a second RHEL server of mine, and I'm seeing odd behavior when I issue a 'who' on the new server. 'who' ...
2
votes
1answer
647 views

VIM strange behaviour F1-10

Recently I began encountering a really annoying behavior in VIM: No matter if I am in insert or normal mode, if I press one of the F keys, vim does not what it is normally intended to do: F1 - ...
2
votes
4answers
4k views

Cygwin X Server configuration

I remember a few years back, I was able to edit some shell script and then create a shortcut to it, so that anytime I needed an xterm I just used to click on the shortcut which would start the X ...
2
votes
3answers
3k views

Starting xterm under Cygwin from the Start Menu

I'm running Cygwin under Windows 7. How can I create a start menu entry (or desktop shortcut) to start xterm? Currently, I have to start the Cygwin/X server, and each time I want a new xterm, I have ...
2
votes
1answer
268 views

xterm -title “test” doesnt work in Ubuntu 8.04

i am trying to set a title ("test") on the window I am opening with xterm (xterm -title "test"). It isn't working. How can I fix this?
2
votes
4answers
2k views

Terminal IRC client with xterm-256color support

irssi doesn't support 256 colors. WeeChat doesn't support 256 colors. BitchX doesn't support 256 colors. And yet vim, my text editor, supports 256 colors. Am I missing a secret fork of one of the ...