Questions tagged [xterm]

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

Filter by
Sorted by
Tagged with
1
vote
1answer
27 views

How to backup and restore the current display colors and formatting?

Is there a way to backup the current display color and formatting such that I can echo some custom color and then reset things back to the previous state? For example: echo -e '\e[31m'123; echo 456 ...
0
votes
2answers
63 views

XTerm Control Sequences for backward/forward word deletion?

I believe this article should help me find the control sequence for backward/forward word deletion. My understanding is that the control sequence would start with \u001b[ since that is "the control ...
0
votes
0answers
12 views

Shell script to update Terminal.app and Xterm titles, for MacOSX and Linux

How can one display path names and executed process in both Mac OSX and Linux using both Terminal.app and Xterm? I use the Linux side when using ssh into a Debian VM. I can easily see how windows ...
1
vote
0answers
29 views

xterm title bar: display path with spaces?

SOLUTION: There was a bug in the program. Instructions below with sleep helped me find it. Does anyone know how to do this? I tried the following, but the backslash escape before a space did not ...
1
vote
1answer
50 views

xterm does not display one unicode character

I think my xterm supports unicode. For instance, it displays the Euro sign: echo -e '\xe2\x82\xac' but it does not display one particular character: PL_BRANCH=$'\ue0a0' echo $PL_BRANCH this ...
0
votes
1answer
37 views

How to make xterm erase shift+backspace?

I know that if I want to make xterm erase a character when I press backspace, I do: stty erase ^? but I also want xterm to erase a character when I press shift+backspace, and I can't find an ...
-1
votes
1answer
34 views

Escape sequence to perform CRLF but only when not in the beginning of line?

I have an interactive application via tty in raw mode. When I exit it, I want shell prompt to start on a new line. There should be some escape sequence which causes a terminal to do CR + LF but only ...
1
vote
0answers
26 views

My bash script spawns a terminal in which I want to run some commands. How do I identify the terminal by name in my script and run commands in it?

I am writing a script where I run a command which is basically an application in the exec mode. It spawns another xterm terminal with a definite title everytime say, "ABCXYZ" . My purpose is then to ...
-1
votes
1answer
57 views

xterm not rendering fonts correctly

I was trying to run a program in xterm but it displays fonts incorrectly. See here. Here is my .Xresources XTerm.vt100.locale: true XTerm.vt100.metaSendsEscape: true XTerm.vt100.backarrowKey: false ...
0
votes
1answer
46 views

Display full command on GNU screen with bash in title, and interact properly with Vim buffers

There are multiple questions about this sprinkled around the network, but what I could find has one of two things in common: They give the manual solution, which only prints the current running ...
1
vote
0answers
57 views

What are the colors[0..15] used for in xterm?

In the configuration files of XTerm (e.g. /usr/share/X11/app-defaults/ or ~/.Xresources) you can configure values for the variables color[o..15]. The question is: What is colorX used for? So far I ...
0
votes
0answers
37 views

Application (curses) displays differently between windowed terminal and console environment

When running my curses application in a windowed environment (Ubuntu) My borders appear correctly. However, when started from a Raspbian minimal terminal (no windowed environment) the borders are ...
0
votes
0answers
33 views

Tilde expansion keeps changing in xterm, $HOME seems to be OK

My cygwin terminals have been screwing up tilde(~) vs $HOME when I restart them after (yet another) Windows 10 reboot. It seems to replace characters in the home directory with some unicode crap. ...
2
votes
1answer
127 views

How to make tcsh multiline prompt use newline character?

Scenario I like to use a multi-line prompt. set prompt="${bold}${green}%M${white}:${red}%c5${unbold} \n${white}% " I quite often copy/paste terminal lines into Windows emails. Problem It appears ...
0
votes
1answer
366 views

xterm error loading font: which font package includes iso10646 fonts?

Everytime I start an xterm on my Amazon Linux release 2 (Karoo) server, I get an error complaining about a missing font: xterm: cannot load font '-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-...
1
vote
2answers
170 views

Cannot display 8-bit characters in xterm in ubuntu 18.04

I have tried every method I could find in the forums, and cannot display any 8-bit character in an xterm window, under kubuntu 18.04 (nor in earlier versions). All characters in range 0x20-0x7e ...
4
votes
2answers
457 views

What uses the TERM variable?

According to this document: The environment variable TERM contains a identifier for the text window’s capabilities. You can get a detailed list of these cababilities by using the ‘infocmp’ ...
1
vote
1answer
27 views

GNU screen keeps changing window title on start & exit of vim

My status line in screen is: hardstatus alwayslastline "%{= Wk}%-Lw%50>%{= BW}%n%f* %t%{= Wk}%+Lw%<" This always shows a list of windows with their names. I have also bound C-a T to set this ...
0
votes
0answers
33 views

Cannot access terminal, tty nor EXterm on Ubuntu 16.04

After shutting down my lenovo thinkpad earlier today, I can't access terminal, tty nor EXterm on my Ubuntu 16.04. Clicking on the terminal icon produces no result, and ctrl+alt+Fx doesn't bring up any ...
1
vote
1answer
52 views

uxterm not displaying arabic

I need to be able to deal with Arabic file names and directories from terminal and I'd like to achieve that with xterm but instead of displaying Arabic characters it shows dotted rectangles (whether ...
3
votes
1answer
140 views

Kill the child process in a child xterm but not xterm

I'm new to Linux. I have python scripts in different files, each one performing a desired function. foo1.py foo2.py foo3.py Each one of these scripts should do cleanup before being terminated. ...
0
votes
1answer
140 views

setting `xterm-keys` in `tmux` affects Shift-Enter in `vim`

I enabled xterm-keys in tmux in order to have normal xterm key bindings like whole-word movement using the Ctrl-arrow keys. However, by enabling xterm-keys it causes Shift-Enter to have undesired ...
0
votes
1answer
89 views

Determining the max RGB value (white) on a xterm-like terminal

One way to determine if a terminal is predominately dark or light is to get the value if its background color, and compare that with the grey color. However in order to do this you need to know what ...
0
votes
2answers
217 views

Complex mouse inputs in XTerm

From the Xterm Control Sequences doc: Normal tracking mode sends an escape sequence on both button press and release.  Modifier key (shift, ctrl, meta) information is also sent.  It is enabled ...
0
votes
1answer
197 views

How to make XTerm smaller-vt-font() and larger-vt-font() use smoother steps?

I'm using smaller-vt-font() and larger-vt-font() to quickly change the font size. However, the steps in which the font size changes are too big and I want them to be smoother so the resulting font ...
0
votes
1answer
102 views

No GUI chromium unwanted margins (An application window is moved)

I installed chromium on Debian Stretch to work with no Desktop Environment. It worked but annoying margins appeared at the top and the right of the screen. They are about 50px wide. (The screen is ...
0
votes
2answers
339 views

xterm: Disable Left Alt from producing ø

I'm on latest debian testing with i3wm on two different laptops. Linux mango 4.19.0-2-amd64 #1 SMP Debian 4.19.16-1 When I press LeftAlt + x I get "ø". And other special chars with other keys. I ...
1
vote
2answers
1k views

failed to execute child process xterm (no such file or directory)

When I right click on a file and select vim from upcoming tabs I get this error. Some files of vim should missing. In addition I'm able run vim from bash but can't run from desktop. Debian 9.8 ...
0
votes
0answers
22 views

I am using Ubuntu and trying to minimize putty window from a bash script, are there any parameters or escape sequences?

For instance in order to maximize putty from command line someone stated (in this thread) that the escape sequence is '\e[9;1t' I wondering is there any sequence to minimize putty window? where can ...
0
votes
1answer
78 views

ls don't display correct color with bold in xterm [closed]

I use xmonad with xterm, seeing picture below. It displays color in xterm but ls cannot display correct color with bold font. What is showing now: My Xresources is a copy of solarized/xresources. ...
1
vote
1answer
39 views

Every time I press Crtl+f, Xterm opens despite not being a global keybind; how can I disable this behaviour?

I think some programs use xterm, so I don't want to uninstall it, but I use bash and Konsole for my terminal, so I don't need it bound to a key, especially Ctrl+f as it makes performing searches ...
1
vote
2answers
422 views

XTerm*faceName in .Xresources are not reflected

I've tried customizing zsh's prompt with change the font but during it, xterm become not to reflect the XTerm*faceName in~/.Xresources. Here is my dot files: ~/.xinitrc #!/bin/sh # /etc/X11/...
1
vote
2answers
725 views

FreeBSD 11.2 - 256 color support in console window

I installed FreeBSD 11.2 on my DELL Latitude E7470 with UEFI (might be important). By default it does not install a GUI and that is fine by me (for now). Using the <Alt>+<Fn> keys I can ...
1
vote
3answers
266 views

Does a terminal emulator execute a program always indirectly via shell?

Does a terminal emulator execute a program always indirectly via shell? For example, when we open a terminal emulator window, it automatically executes a shell, and we can only type commands in the ...
1
vote
2answers
1k views

When I start XTerm, my .bashrc doesn't get sourced

My ~/.bashrc: https://pastebin.com/VA7RLA2E My ~/.Xresources: https://pastebin.com/qSF1z0w4 How do I make XTerm automatically source .bashrc when it starts? Currently, whenever I open a new XTerm ...
0
votes
1answer
383 views

htop and crontab

I have a crontab like this for root user: 9 17 * * * TERM=xterm /bin/bash /root/htop_stat.sh htop_stat.sh: /usr/bin/echo q | /usr/bin/htop -C | /usr/bin/aha --line-fix | /usr/bin/html2text -width ...
0
votes
1answer
119 views

Configuring xterm without access to xrdb on Red Hat 6.10

To give some context, I try to configure an environment in which I just arrived. The targeted development environment is confined on a remote Red Hat 6.10 system, only accessible through putty on a ...
5
votes
3answers
423 views

Why does XTerm support 63 function keys?

According to this table of terminal emulators and their keycodes, new versions of XTerm recognize function keys from F1, F2, F3, ... all the way up to F63. Most keyboards only have physical function ...
2
votes
1answer
194 views

Logging into remote shells from Konsole on Debian 9 results in “‘screen.xterm-256color’: unknown terminal type”,

Before I go into the detail of my problem there is a debian mailing list which seem to explain the cause- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=854414 After installing Debian 9, logging ...
1
vote
1answer
204 views

st-terminal / vim - Ultisnips: How to enable Ctrl+Enter as Enter in insert mode of vim? [closed]

I get a strange behavior of vim but it can be related to st-terminal that I cannot do an Enter or Ctrl+Enter to break the current line into new line in insert mode, as in the example below: I have a ...
0
votes
0answers
239 views

xterm: how to copy text with Ctrl+C under FreeBSD?

I've got this XTerm file: XTerm*Background: black XTerm*Foreground: white XTerm*SaveLines: 2000 XTerm*faceName: "Font Awesome 5 Brands-Regular-400" XTerm*faceSize: 8 XTerm*rightScrollBar: true XTerm*...
0
votes
1answer
1k views

How to change from Xterm to default terminal in ubuntu 16.04

I know it can be silly question but I suddenly clicked some shortcup/or somemething else occur - and my default ubuntu terminal changed to Xterm. How to revert this? Or change xterm to "normal" ...
1
vote
1answer
102 views

Copy terminal scrollback buffer preserving ANSI escape sequences, but without pre-starting script/screen

I have a live running mate-terminal whose scrollback buffer already contains a lot of text with color/bolding, but (unfortunately) no screen management/capture program (like script/screen/tmux) was ...
1
vote
0answers
156 views

Empty User Groups in Terminal Wrapper Applications

As of last Thursday, whenever I use any terminal (Konsole, Gnome Terminal, XFCE Termina, xterm), the groups are empty. $ groups tom When I execute the same command in a tty terminal outside of Xorg, ...
2
votes
1answer
533 views

How to keep `CLIPBOARD` content from XTerm after closing it? (Like Firefox or Leafpad does for example.)

I wanted to use CTRLSHIFTC and CTRLSHIFTV for Copy-and-Paste within XTerm and other applications, so I added XTerm*vt100.translations: #override \ Shift Ctrl <Key> C: copy-selection(...
1
vote
1answer
182 views

How can I make the title bar dynamically update itself after connecting to a remote machine that uses sh as the default shell?

Whenever I connect to one my remote Ubuntu machines, gnome-terminal reflects the fact that I am on the remote machine in the title, using format much like "$USER"@"$(hostname -s)": "$PWD". I very much ...
0
votes
1answer
180 views

SCO Unix 5.0.5, Progress 7 - partly broken terminal view after virtualization

I've got a problem with ancient app build in SCO Unix 5.0.5 Server based on Progress 7 database after trying to virtualize environment. Problem is similar to messed up terminal after trying to cat or ...
8
votes
2answers
740 views

Access xterm's scrollback buffer as a file

Is it possible to, somehow, access xterm's scrollback buffer as a (read-only) file or a character device? The core issue (to avoid x/y "problemming"), is this: sometimes the command I've just ...
0
votes
1answer
183 views

Linux how to stop ROS script that starts after reboot [closed]

I've created a script that would check whether a certain server is running and restart it in event of crash (the script runs endlessly every 10 seconds). I cannot run any commands and CTRL+C, CTRL+...
1
vote
0answers
333 views

Running xterm Command for a Given Host on Mininet CLI

I want to run a P4 program using Mininet. I am following this tutorial. According to this tutorial, I am supposed to enter the directory source_routing to test the program source_routing.p4 located ...