Questions tagged [xterm]

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

Filter by
Sorted by
Tagged with
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 ...
J0hnG4lt's user avatar
  • 1,591
14 votes
3 answers
23k 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 ...
abelenky's user avatar
  • 963
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...'...
Armen Michaeli's user avatar
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 (...
George2's user avatar
  • 5,039
68 votes
3 answers
120k 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) ...
Armen Michaeli's user avatar
38 votes
4 answers
54k 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 ...
Gregory's user avatar
  • 553
35 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? ...
Nathan Fellman's user avatar
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 ...
Miserable Variable's user avatar
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 ...
me_and's user avatar
  • 2,257
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 ...
Mikulas Dite's user avatar
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 ...
Jason Waldrop's user avatar
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 ...
Matthew's user avatar
  • 1,308
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 ...
Anachrome's user avatar
  • 103
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 ...
mulllhausen's user avatar
4 votes
1 answer
510 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?
Amadan's user avatar
  • 1,867
4 votes
1 answer
4k 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 ...
b0fh's user avatar
  • 2,275
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 ...
paps's user avatar
  • 201
3 votes
1 answer
1k 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 ...
Jp19's user avatar
  • 33
3 votes
1 answer
4k views

How to increase default xterm buffer size

I understand to create a new xterm with 1000 buffer size I can do xterm -sl 1000 &. How would I do this by default for all xterms? If this cannot be done, how do I do it for the current xterm? It ...
Stuart's user avatar
  • 407
1 vote
2 answers
3k views

Execute Command with xterm and close

Im trying to execute a program with xterm and then close xterm with program running but it seems this doesn't work like I would expect it. In bash there is the option bash -c [command] is there ...
Nico's user avatar
  • 121
0 votes
1 answer
4k views

I can not start xterm anymore under Cygwin + Xming under Win 7

I am using Cygwin under Windows 7 with Xming. I can not start xterm anymore, although I was able to do it previously on the same installation. Xming is running. DISPLAY variable is set to localhost:0....
user avatar
0 votes
6 answers
2k views

adding keyboard shortcuts for OSX terminal or xterm

Is there a way to add a keyboard shortcut for a terminal command in OSX. Basically most of the times i open the terminal app in MAC in order to ssh into a certain server foo. What I want to do is add ...
I J's user avatar
  • 103