121
votes
What is making my cursor 'randomly' disappear when using gnome-teminal?
You may have inadvertently hit the VT220 escape sequence to hide the cursor. If so, then neither Ctrl+Q, nor reset, nor clear, nor Ctrl+L will help.
What worked for me was to send the VT220 "...
86
votes
Accepted
Print true color (24-bit) test pattern
The following script will produce a test pattern like:
You can optionally call it as:
width=1000 truecolor-test
and it will print a pattern of width columns.
#!/bin/bash
# Based on: https://gist....
60
votes
Accepted
Why did {} start appearing as äå in Terminal.app?
I can reproduce it with the xterm terminal emulator (version 366), if I do:
$ printf '\e[?42h\e(H'; cat chars.txt; printf '\e(B\e[?42l'
!É#$%Ü&*()_+äå
Where:
\e[?42h. Enables National ...
20
votes
Accepted
Why do ^M and \r behave inconsistently?
This is the result of the terminal’s input handling: by default, the terminal device driver (software in the kernel of your operating system to handle input from the terminal, not the terminal itself) ...
18
votes
How do I detect whether my terminal has focus in the GUI from a shell script?
There's a FocusIn/FocusOut mode. To enable:
echo -ne '\e[?1004h'
To disable:
echo -ne '\e[?1004l'
On each focus event, you receive either \e[I (in) or \e[O (out) from the input stream.
GNOME ...
18
votes
Accepted
Make kitty terminal emulator to use the current working directory for new windows
In your kitty.conf, instead of using map ctrl+shift+enter new_window, use map ctrl+shift+enter new_window_with_cwd.
Couldn't find this in the documentation but the author mentions it in this issue.
17
votes
Print true color (24-bit) test pattern
I edited the function from Tom Hale's answer here to add a option for the amount of lines, which splits up the output. I find it useful as it shows more detailed color.
#!/bin/bash
# Based on: https:/...
16
votes
How should I interpret the fact that a Unicode code point is shown in two completely different ways in two different terminal emulators?
U+E000 to U+F8FF is a private-use area. It's reserved to allow systems to store and display characters that are not present in Unicode. So you can't expect it to have a consistent appearance (or ...
15
votes
Is there a program like MobaXTerm for Linux systems? (SFTP GUI browser & terminal)
I found an alternative in asbru
https://www.asbru-cm.net/
It has a lateral tab where you can save your connections
Cheers
15
votes
Accepted
How important is it that $TERM is correct?
The important part of the value of TERM is that it matches an entry in the terminfo or termcap databases, and that that entry correctly describes your terminal.
You cannot reasonably go telling ...
11
votes
What is making my cursor 'randomly' disappear when using gnome-teminal?
Try tput cnorm. It brought back the cursor on my xterm. As it is based on terminal capabilities, it should be general, not specific to a particular terminal. Also, it's less disruptive than reset, ...
11
votes
Can I change terminal type used to login through SSH?
You can also add following lines to your .ssh/config:
host *
SetEnv TERM=xterm
Or whatever terminal you prefer.
You can set that also per host
host foo.bar
SetEnv TERM=vt100
11
votes
Accepted
The easiest way to clear scrollback buffer of terminal + some deeper explanation?
From the man bash's readline section:
clear-display (M-C-l)
Clear the screen and, if possible, the terminal's scrollback buffer, then redraw the current line, leaving the
...
11
votes
Accepted
Is there any way to let urxvt support sixel?
Besides using the rxvt-unicode-sixel fork, it might be possible to implement sixel by writing a perl extension. Documentation for that is in the urxvtperl(3) manpage. I don't know much about sixel but ...
10
votes
Is there a program like MobaXTerm for Linux systems? (SFTP GUI browser & terminal)
I came across this problem myself and the best way I found around it was to use MobaXterm's portable exe and run it using wine on Ubuntu.
It worked perfectly for my use case on Ubuntu 20.04. Both the ...
10
votes
Accepted
Is a virtual console running as a process and implemented based on pseudoterminal?
That is incorrect.
There's a terminal emulator program built into the Linux kernel. It doesn't manifest as a running process with open file handles. Nor does it require pseudo-terminal devices. ...
9
votes
prevent multi-line paste in bash
Bash now offers the enable-bracketed-paste option:
enable-bracketed-paste
When set to ‘On’, Readline will configure the terminal in a way that will enable it to insert each paste into the editing ...
9
votes
Accepted
How can I find out what the escape codes my terminal are sending for certain special ones that cat will not show?
Simply use this command:
showkey -a
8
votes
How can I set the position that terminal opens at?
As an update, the top answer didn't work for me in Ubuntu 18.04 as of Aug. 2018. What got the job done is Hardware -> Keyboard -> Add new command (By hitting plus sign). Fill in the "Command" field ...
8
votes
Accepted
Why does Linux allow backspaces when pasting text into a shell?
A shell is just an application running in a terminal. For pasting, only emulators relevant, but there are still "real" terminals (hint: the Linux console is not one of those).
Disregarding the ...
8
votes
Accepted
What is /dev/vcs* on Linux?
I think you're slightly confused here. the /dev/vcs devices each correspond to the /dev/tty devices with the same number. In essence, they're the scrollback buffers for the virtual terminals ...
8
votes
Accepted
Why can I use mouse wheel to scroll man page in xfce4-terminal?
Your pager displays its contents in the alternate screen buffer, which selects “alternate scroll mode” (which you can see because the vertical scroll bar changes — it no longer allows scrolling the ...
7
votes
Accepted
Confused about root shell $PATH
I think you're just remembering wrong. See man su (emphasis mine):
For backward compatibility, su defaults to not change the
current directory and to only set the environment variables
HOME and SHELL ...
6
votes
Is there a program like MobaXTerm for Linux systems? (SFTP GUI browser & terminal)
You can try snowflake: install with
sudo snap install snowflake
I was also looking for an alternative app for Mobxterm and I found this one. It has much more features like:
SSH + SFTP
built-in text ...
6
votes
Accepted
PC speaker beep and messy terminal font due to dd if=/dev/sda?
This is roughly what happens:
Your dd command does not have an of=... argument so it sends data to stdout.
And as you are running the command in a terminal the stdout of the running process is ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
terminal-emulator × 304terminal × 137
bash × 29
xterm × 26
linux × 23
gnome-terminal × 20
x11 × 18
tty × 18
shell × 17
colors × 15
ubuntu × 14
rxvt × 13
pty × 12
zsh × 11
keyboard-shortcuts × 11
escape-characters × 11
konsole × 11
debian × 10
clipboard × 10
xfce4-terminal × 9
shell-script × 8
console × 8
unicode × 8
arch-linux × 7
fonts × 7