Questions tagged [xterm]
xterm is the standard terminal emulator for the X Window System.
244
questions
70
votes
3
answers
124k
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) ...
52
votes
4
answers
14k
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 ...
47
votes
1
answer
64k
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.
42
votes
1
answer
29k
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, ...
38
votes
4
answers
55k
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 ...
36
votes
6
answers
41k
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?
...
25
votes
3
answers
16k
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 ...
23
votes
3
answers
32k
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 ...
22
votes
4
answers
36k
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 ...
21
votes
3
answers
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 ...
19
votes
8
answers
16k
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 ...
17
votes
2
answers
7k
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 ...
15
votes
6
answers
14k
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
...
15
votes
1
answer
1k
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 ...
14
votes
3
answers
24k
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 ...
13
votes
2
answers
3k
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 ...
12
votes
4
answers
10k
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 ...
11
votes
9
answers
19k
views
Why do I sometimes get 'sh: $'\302\211 ... ': command not found' in xterm/sh?
Sometimes when I simply type a valid command like 'find ...', or anything really, I get back the following, which is completely unexpected and confusing (... is command name I type):
sh: $'\302\211...'...
11
votes
3
answers
10k
views
Start Xterm Maximized
I want to start xterm in maximized mode. For example: xterm -maximized. Could you suggest me a way (either via command line or via Xdefaults or anything else)?
There is a lot of discussion on ...
10
votes
5
answers
2k
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?
10
votes
1
answer
1k
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 ...
10
votes
1
answer
10k
views
Increasing scroll back length of xterm
I am logged in remotely to a CentOS 6.6 machine from a Mac with Yosemite running XQuartz 2.7.8. When I run xterm on my CentOS machine, I'm can only scroll back about 1200 lines. How do I increase ...
10
votes
1
answer
4k
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 colors ...
9
votes
5
answers
18k
views
Compiling vim with xterm_clipboard support
I checked out latest vim7 from cvs repository.
cvs -z3 -d:pserver:[email protected]:/cvsroot/vim checkout vim7
I tried:
./configure --enable-xterm_clipboard
but I got -
WARNING: ...
9
votes
2
answers
14k
views
How to get TrueType fonts to display in xterm from a .Xresources file?
I'm trying to get a decent (read: not standard X11 load set) font for using xterm on Mac OS X 10.8. I like Bitstream Vera Mono and it is in a file VeraMono.ttf. I have placed this file in my .fonts ...
9
votes
2
answers
8k
views
How do you change the xterm cursor to an I-beam or vertical bar?
I want to change the cursor in xterm to an I-beam or vertical bar. From what I can see, there may be support for this. My question is what do I insert into my ~/.Xdefaults or ~/.bashrc in order to ...
9
votes
1
answer
3k
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 ...
8
votes
2
answers
22k
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 ...
8
votes
3
answers
3k
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 ...
8
votes
1
answer
3k
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 ...
7
votes
1
answer
1k
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
3
answers
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
1
answer
23k
views
What is Arch Linux's default terminal?
Using the command echo $TERM, I get the output 'xterm'. However, I have not done anything to install the X Windowing System, and as far as I know, Xterm cannot run without it, and Arch does not ...
6
votes
1
answer
5k
views
How can I bind two distinct actions to Ctrl-Shift-Key and Ctrl-Key in vi
I am trying to map two different actions to e.g. CtrlShifta and Ctrla:
map <C-S-a> :echo "ctrl-shift-a received"<CR>
map <C-a> :echo "ctrl-a received"<CR>
But all I ...
6
votes
1
answer
7k
views
What do the 16 definable colors in .Xresources do?
I've found an endless supply of themes availble online that use hex-color codes to change how X windows display, but I can't find any documentation that clearly states what each color does. For ...
6
votes
2
answers
5k
views
How to get rid of error message on ssh login --> "setterm: terminal xterm does not support --blength"
Whenever I ssh into my arch linux box I get this error message:
setterm: terminal xterm does not support --blength
Also when executing:
$ sudo su -
Interestingly not when using
$ sudo su
I have ...
6
votes
3
answers
4k
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
4
answers
36k
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 (...
5
votes
2
answers
7k
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 smaller ...
5
votes
2
answers
9k
views
how to insert unicode characters in xterm
... assuming it supports Unicode ?
5
votes
3
answers
2k
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. ...
5
votes
3
answers
8k
views
How to fine-tune TTF rendering in xterm?
I've been trying for the past couple of days to get xterm to display the same font that I have gotten used to in konsole for the last few years – it works for me quite well even with relatively small ...
5
votes
1
answer
774
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
1
answer
3k
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 ...
5
votes
0
answers
2k
views
Ctrl+Shift+Page{Up,Down} in tmux
Trying to make C-S-PageUp and C-S-PageDown work in tmux but no success so far.
Here are my config steps:
bind-key -n C-PageUp previous-window
bind-key -n C-PageDown next-window
bind-key -n C-S-PageUp ...
5
votes
1
answer
1k
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
2
answers
31k
views
Config files for xterm
Is there any config files for xterm for default settings? For example, on my system, xterm start with black text on white background, and I want it the other way around. I can do it by starting it ...
4
votes
3
answers
10k
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 ...
4
votes
2
answers
2k
views
Clicking far away in vim in tmux in urxvt
I use vim inside tmux inside urxvt, and the mouse works perfectly well for clicking and selecting text, except when I want to click too far to the right.
It seems to be related to the distance in ...
4
votes
1
answer
6k
views
How to switch between terminal, nerdtree and text editor?
I normally switch screen in vim using ctrl+h or ctrl+l to switch between NerdTree and vim main window.
Vim8 got :term command to bring up terminal which is great!
But I cannot figure out how to switch ...