Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [xterm]

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

0
votes
0answers
24 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
36 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
22 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
22 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
90 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 ...
0
votes
0answers
263 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
15 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
43 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
21 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
196 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
325 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
105 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
542 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
144 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
28 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 ...
3
votes
3answers
198 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
113 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
107 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
115 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
644 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
49 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
105 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, ...
0
votes
0answers
79 views

xterm and Prior key remap with xmodmap

Within Xorg I try to remap Prior key to AltGr-i with following code: xmodmap -e 'keycode 31 = i I i I Prior Prior rightarrow idotless' this works for graphical programs and rxvt as expected. But ...
1
vote
1answer
337 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
124 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
119 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
497 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
110 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
207 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 ...
1
vote
1answer
55 views

colourise grep output

I have defined grep as alias grep="grep --colour -iTHn" So, the output is: <filename> <lineno> <line with matching word> Now, with my dark terminal, the filename color is ...
2
votes
1answer
34 views

xterm not loading config with -name

I have a xresources file to customise xterm and running xrdb -merge it loads in fine. Starting a new xterm with xterm, I can confirm it has been loaded in OK. However when I start a new xterm with ...
1
vote
1answer
54 views

When pressed, why is ^C echoed out in xterm but not ^Z

I'm remapping my keys in xterm in my .Xresources file. Here is a sample: Ctrl ~Meta ~Shift <KeyPress> A: string("^[J0A") My question is why does the string 0A get printed out to the terminal ...
0
votes
1answer
125 views

xterm Ctrl+Meta keybinding not working

I'm trying to custom keybind Ctrl+Meta+i and it does not seem to work. Here is what I have in my .Xresources file: XTerm.VT100.Translations: #override \ Ctrl <KeyPress> I: string("^[JDI") ...
2
votes
2answers
616 views

Turn off terminal bell in man pages and less

I'm wondering if there's a way to turn off the terminal bell for terminal applications such as man and less, e.g. when you're already at the top of the file/man page and press "k" to attempt to scroll ...
0
votes
1answer
111 views

Unable to see the menu in xterm

Not sure what the deal is, but I can't see the menu in xterm when I Ctrl+Right Click or Ctrl+Left Click. My .Xresources file is pretty generic; nothing fancy, so I don't think that's the problem.
1
vote
1answer
40 views

xterm: Suppressing certain C0 and C1 control codes

I really have no need for the majority of the C0 and C1 control codes. For example the key-sequence Alt+Shift+o produces the C1 control code ESC 0. This is useless to me and I would rather have that ...
1
vote
1answer
72 views

How to use xterm translations to use level3 shifted KP_Prior for scroll-back?

I am using LWIN key as level3 shift using level3(lwin_switch) symbol. On this level I am using 'i' and 'm' as KP_Prior and KP_Next, so LWIN+i will scroll page up and LWIN+m will scroll page down in ...
0
votes
1answer
75 views

XTerm*metaSendsEscape broken when Alt_R is mod4

I can't get xterm to behave correctly re: the metaSendsEscape setting. When I have this as my Xmodmap, the setting doesn't work (i.e., xterm ignores the Alt keys even when metaSendsEscape is enabled):...
0
votes
1answer
221 views

xterm settings in Manjaro Xfce

I'd like to edit the default settings of xterm in Manjaro through the ctrl-mouse click option, but whenever I try that, the xterm window just disappears. Am I doing something wrong? Using the latest ...
1
vote
0answers
244 views

How to avoid returning to the command prompt when running gnome-terminal [duplicate]

When I run gnome-terminal from the command line and hit return, the shell prompt appears immediately when the gnome-terminal window is open, as if gnome-terminal & was executed. This is unlike ...
1
vote
0answers
301 views

ssh with xterm can't get screen resources

I am trying to launch a GUI of a program on my windows computer by ssh with putty. I downloaded Xterm and have that running, and then in the putty options, I checked the box for X11 forwarding. When ...
0
votes
1answer
83 views

xterm cursor hides character in reverse video mode

How can I prevent xterm version 327-2 (on Debian testing) from hiding the character in reverse video mode? For example, if I run xterm -geometry 20x2 -e /bin/sh -c "echo -ne '\033[0;7mtesting\033[0m\...
1
vote
1answer
44 views

How to start an application within a terminal in one command [closed]

I need to start an application automatically within a terminal like xterm or gnome-terminal in one command line. Is that possible?
2
votes
0answers
232 views

dualhead with tmux and two xterm windows

I'm running a dualhead system. Unfortunately, my monitors do not sport the same resolution, so I can't "just" use a huge xterm window spanning both screens. Also I imagine that it would be hard to ...
1
vote
1answer
118 views

Program F1 key as ^[[A instead of ^[OP in xterm

I've been given a task to convert our old telnet system to ssh for security reasons. We have little hand held units our employees use that run a telnet connection to the server and runs a curses ...
2
votes
1answer
391 views

Prevent tput escape sequences when redirecting script output to a file

I have a shell function that colorizes a filename using tput. color=$( tput setaf 1 ) normal=$( tput sgr0 ) colorize() { echo "${color}$1$(normal)" } When I call the function, the terminal ...
0
votes
0answers
69 views

move from one xterm and back again using wmctrl

I'm running fvwm and have multiple virtual desktops open. I'd like to be able to write a bash script that would take me from one xterm to another---this part is easy, using wmctrl -a ---and then back ...
1
vote
1answer
86 views

less command stop to work after set terminal title from .tcshrc

After I add following command to my ~/.tcshrc: echo "\033]0;${PROJECT_NAME}\007" The less command in a new opened gnome-terminal stops working properly. But more command is not affected. This is ...
1
vote
0answers
32 views

Why do links I paste to xterm get turned into regexes? [duplicate]

I would like to be able to copy-paste URL into xterm without \ coming along for the ride. I think they are taken along for the ride because xterm is converting URLs into regular expressions (regexes). ...
-2
votes
1answer
102 views

Is there a difference between declaring a terminal (e.g. xterm-256colors) via $TERM vs. from terminal program?

By default, Putty identifies itself as "xterm" terminal type, but it's possible to change its settings so it identifies itself as "xterm-256colors". As far as I understand, this is done by setting "$...