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 [terminal-emulator]

The tag has no usage guidance.

56
votes
4answers
29k views

Use Mosh without giving up local scrollback / history?

Is there a way to use mosh without giving up the local scrollback? Basically, in some circumstances, IP-roaming is indeed useful and needed, but the extra terminal emulation and key prediction seems ...
55
votes
4answers
13k views

What are the responsibilities of each Pseudo-Terminal (PTY) component (software, master side, slave side)?

I am trying to figure out how a tty works1 (the work-flow and responsibilities of each elements). I have read several interesting articles about it, but there are still some blurry areas. This is ...
48
votes
3answers
74k views

Which terminal type am I using?

I have tested this with both Ubuntu 12.04 and Debian 7. When I do echo $TERM I get xterm But if I use the dropdown menu "help" > "about" then it says gnome terminal 3.4.1.1. Does this mean I am ...
43
votes
8answers
86k views

How can I hook on to one terminal's output from another terminal?

I need to hook onto output of currently running terminal (tty1) from virtual terminal and capture it (running X server).
31
votes
2answers
14k views

How does a Linux terminal work?

If you fire up a terminal and call an executable (assuming one that's line oriented for simplicity) you get a reply to the command from the executable. How does this get printed to you (the user)? ...
31
votes
4answers
51k views

How can I set the position that terminal opens at?

I'd like Terminal to open near the bottom of my screen. Is there a way to set the default size and position? I'm using Linux Mint 13, Cinnamon.
29
votes
2answers
6k views

How to avoid escape sequence attacks in terminals?

Reading the details of CVE-2009-4487 (which is about the danger of escape sequences in log files) I am a bit surprised. To quote CVE-2009-4487: nginx 0.7.64 writes data to a log file without ...
26
votes
3answers
17k views

What is making my cursor 'randomly' disappear when using gnome-teminal?

It happens often that my cursor on gnome-terminal disappears, forcing me to work on a new tab/window. It seems like a random occurrence. Does anyone else experience this? What about other X terminal ...
24
votes
3answers
5k views

How can we know who's at the other end of a pseudo-terminal device?

If I do a: echo foo > /dev/pts/12 Some process will read that foo\n from its file descriptor to the master side. Is there a way to find out what that(those) process(es) is(are)? Or in other ...
21
votes
3answers
15k views

Checking how many colors my terminal emulator supports

Is there a reliable way to check how many colors my terminal emulator supports? If echo $TERM prints xterm, does that unequivocally tell me how many colors my terminal emulator supports? How could I ...
21
votes
1answer
12k views

Do any open source Linux terminals and fonts support ligatures?

The PragmataPro Font has some really killer examples where they render == as a single character and clean up a lot of other stuff. Would any Linux terminals support this? And are there any ...
21
votes
6answers
3k views

Is there a terminal app that allows filenames to be clickable?

Is there a terminal emulator (extension or app) that does link resolution for local paths? In particular when I see things like: /home/sam/.gem/ruby/1.8/gems/actionpack-2.3.2/lib/action_controller/...
14
votes
5answers
18k views

Vintage terminal for Ubuntu

So I have just been introduced to Cathode for OSX and I am completely fascinated by how classic it looks with it's 1970s retro style. Does anyone know of any programs/packages I can download to get my ...
14
votes
2answers
957 views

What is the most portable method of launching a terminal emulator?

Say I need to write a script that will launch a terminal and execute a command and I need that to work on various systems. How can I do that in a safe and portable manner? Is xterm always installed? ...
14
votes
5answers
22k views

Telnet send Ctrl-C

I use telnet to connect to a terminal server, which proxies the traffic to a RS-232 port. Unfortunately when using some of the devices it is not possible to send the CTRL+C character (0x03). Instead ...
13
votes
6answers
7k views

Can I see images and watch movies inside the terminal emulator

Can I see images and watch movies inside the terminal emulator? In case of virtual console I can do it via framebuffer, but what about terminal emulators?
12
votes
3answers
2k views

How Can Terminal Emulators Kill Their Children After Recieving a SIGKILL?

From what I understand, SIGKILL cannot be caught. This would imply that a process does not have time to kill it's children before the OS destroys it. This can be demonstrated with a shell script. #!...
12
votes
1answer
4k views

Scroll to the last command on Terminal? (like OS X Terminal marks)

Mac OS X Terminal marks are incredibly useful. For example, when I type a command that echoes a lot output, it's easy to read the beginning with Cmd+Up. It will scroll to the last command and ...
11
votes
3answers
13k views

A terminal emulator for CygWin?

I have: Windows 7 CygWin A development board connected to COM1 port. I need: Connect to its serial port from CygWin. If I used Linux I would run a program like picocom or minicom. Also in Windows ...
11
votes
4answers
2k views

Are there any linux terminals which can handle all key combinations?

I like to use emacs in terminal mode (-nw), but it seems most (all?) terminals can't handle some key combinations - for example, C-<RET> or C-M-%. I know this is because most terminals emulate a ...
11
votes
4answers
45k views

Copy & paste in a terminal without SHIFT

In all terminal emulators that I know of, Ctrl is used for sending control codes such as Ctrl+C and Ctrl+Z. On most systems this conflicts with common keyboard shortcuts. Thus on all those systems ...
11
votes
3answers
13k views

Effect of $LANG on terminal

I'm trying to learn how the $LANG variable behaves with gnome-terminal (and its character encoding preference option). I've been using iso8859-1 (latin1) as my main character-set and all my filenames ...
11
votes
1answer
7k views

Terminator: Shortcuts for Prev and Next?

In terminator, the keyboard shortcut Ctrl+Shift+F opens up a small bar at the bottom of the window to let the user search a text string within the terminal scrollback. Are there any keyboard ...
10
votes
2answers
55k views

Changing terminal emulators

I have ssh access to a remote machine. In this machine if I run echo $TERM I get xterm. If I want to change my terminal emulator to some other emulator (assuming that it's installed on the remote ...
10
votes
1answer
2k views

prevent multi-line paste in bash

I often use ctrl+c to copy text from some gui application and then paste it into my terminal emulator (terminator), using right-mouse-click-menu and paste. Sometimes I forget that the clipboard ...
10
votes
1answer
29k views

Is there a program like MobaXTerm for Linux systems? (SFTP GUI browser & terminal)

I am coming from Windows, where I ran the program MobaXTerm. Essentially I used it as an SSH client (though it has other uses). It has a great feature of showing the files and directories on the left ...
8
votes
2answers
2k views

Why can't Emacs running in a terminal distinguish Ctrl+; from “;”?

This question arose from my previous question on emacs beta. In short I want to bind C-; to an Emacs functions in a terminal, but it seems that something captures this key before it reaches Emacs: ...
8
votes
3answers
17k views

Force telnet / ssh to use crtl-H for backspace

I have some devices connected to a Cisco serial term server; many work fine when I telnet directly to the port on the Cisco. However, I have a few stubborn devices that will not use Backspace as it ...
8
votes
1answer
13k views

Change default terminal emulator on Debian

I'm trying to change my terminal emulator from xterm to eterm on Debian Jessie. I can't seem to find the tty config files. I've ran: sudo find / -name tty*.conf but that doesn't yield any results. ...
8
votes
3answers
1k views

Are there terminal emulators that support bi-directional text?

I tried searching for this but came out empty-handed. Is it possible for me to get my terminal emulator to display right-to-left Unicode grapheme clusters properly? Use case: I'm writing a script ...
8
votes
1answer
2k views

Why do we need so many terminal emulator packages and what is their use?

This is something that has been so confusing to me for a long time. I am using Linux but I have gaps in my understanding of certain aspects and one is about the terminal. As I came to understand it ...
7
votes
2answers
3k views

Can't apply brightness to terminal's background color

I have a problem with colors in my terminal emulator. I am using LXTerminal as my terminal emulator and LXDE as my desktop environment. The following command is supposed to print red text on grey ...
7
votes
6answers
4k views

Looking for X terminal with correct window resize handling

Is there any X terminal program, which reflows the content when I'm resizing the window? Gnome-terminal and Sakura does it well halfway: when I'm shrinking the window and re-expanding it, the stuff ...
7
votes
4answers
9k views

HTML client for X11 ssh forwarding?

Not totally sure if this is the right place but here goes. I understand that you are able to use X11 to ssh to GUI's and view them, without the server having a full on GUI system running/installed ...
7
votes
1answer
4k views

What is the difference between a Console, Shell, Terminal, Terminal emulator, Terminal multiplexer, and a Window manager?

For example. What is the difference between a default 'interface/console' of FreeBSD/archlinux, vs Terminal, vs Terminal emulator like Xterm, vs Terminal multiplexer like tmux, vs Window manager like ...
6
votes
1answer
4k views

Print true color (24-bit) test pattern

How can I test that my terminal / tmux is correctly setup to display truecolor / 24-bit color / 16.8 million colours?
6
votes
4answers
13k views

Can I change terminal type used to login through SSH?

When I login on some particular server through SSH (which I do not have admin access to), I get the following error: urxvt-unicode: Unknown terminal type (I also don't want to change my terminal type ...
6
votes
1answer
5k views

In Bash, why is PROMPT_COMMAND set to something invisible?

On RHEL6 and CentOS 6, /etc/bashrc sets PROMPT_COMMAND here: case $TERM in xterm*) if [ -e /etc/sysconfig/bash-prompt-xterm ]; then PROMPT_COMMAND=/etc/sysconfig/bash-prompt-xterm ...
6
votes
2answers
3k views

is it possible to send a control sequence to a terminal emulator using the keyboard

If you type echo -e '\eZ' and hit return in a shell running in an xterm, you'll see that the terminal emulator prints an obscure code 1;2c. This seems to indicate that xterm interprets the VT100 ...
6
votes
1answer
5k views

How to set a background image for urxvt?

How do I set a tiled background image in urxvt? I have tried the following alternatives in my .Xresources file: URxvt*backgroundPixmap: /home/jgg/Pictures/tiles/escheresque_ste.png;style=tiled URxvt....
5
votes
1answer
426 views

How important is it that $TERM is correct?

I recently switched from rxvt-unicode to st. This means I went from $TERM=rxvt-unicode-256color to $TERM=st-256color. I'm happy with the switch and want to continue to use st. However, I've noticed ...
5
votes
2answers
824 views

How can I make terminal emulators usable on a HiRes screen?

On Debian Stretch with a 3200x1800 screen, using Cinnamon desktop, the interface size is on a nice scale. However, I was used to work with xterm as a terminal. The problem: the window appears ...
5
votes
6answers
5k views

Is there a (light-weight) replacement for `rxvt-unicode`?

I am currently using rxvt-unicode as a terminal emulator. Since I also like the configurability of terminal emulators from GNOME and KDE, I wonder whether there is some kind of replacement for rxvt-...
5
votes
1answer
296 views

How does the Terminal and the Shell exchange data?

In Linux, a Terminal is associated with a Shell. The Terminal send input to the Shell (for example: pwd), and the Shell send the output back to the Terminal (for example: /home/paul). This diagram ...
5
votes
1answer
1k views

Why are these fancy characters not shown in my prompt?

I am using Ubuntu 14.04 and 16.04. On 14.04 I additionally installed Terminology. On 16.04 Terminal and Terminology the characters in the bash are not displayed correctly: Look with Ubuntu 14.04 ...
5
votes
2answers
167 views

Process killed before being launched in background

I'm using a bash script script.sh containing a command cmd, launched in background: #!/bin/bash … cmd & … If I open a terminal emulator and run script.sh, cmd is properly executed in background, ...
5
votes
2answers
1k views

How to programmatically check if the terminal supports italics?

I'd like to check if the current terminal is able to display italics correctly. Checking that manually is easy: echo -e "\e[3mfoo\e[23m" If the output is foo, the terminal (-emulator) supports ...
5
votes
2answers
769 views

Is there a xterm equivalent that is optimized for use over VNC?

tl;dr Is there a terminal emulator that uses rectangular copies for scrolling? I'm doing a lot over work over the internet just now (hacking a program on my employer's cluster that can't be installed ...
5
votes
1answer
700 views

Terminal to display from top to down

Is there a terminal or terminal emulator, or maybe a shell, that would display the latest line always on top, and the remaining lines in ascending timestamps? Just like a normal terminal only upside ...
4
votes
4answers
5k views

How to make LXTerminals open maximized in Lubuntu 11.04?

I have Lubuntu 11.04, I start my terminal sessions with a shortcut. The annoying thing is that the terminal windows are never maximized when I launch them, so every time I launch a terminal I must ...