Skip to main content
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 "...
Wandering Logic's user avatar
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....
Tom Hale's user avatar
  • 33.3k
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 ...
Stéphane Chazelas's user avatar
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) ...
Stephen Kitt's user avatar
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 ...
egmont's user avatar
  • 6,518
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.
jqno's user avatar
  • 296
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:/...
sportzpikachu's user avatar
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 ...
Gilles 'SO- stop being evil''s user avatar
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
Gabboz's user avatar
  • 189
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 ...
JdeBP's user avatar
  • 71.9k
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, ...
Quigi's user avatar
  • 341
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
ex4's user avatar
  • 236
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 ...
Electric Vibes's user avatar
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 ...
JoL's user avatar
  • 5,019
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 ...
NotNotLogic's user avatar
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. ...
JdeBP's user avatar
  • 71.9k
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 ...
Quasímodo's user avatar
  • 19.4k
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
egmont's user avatar
  • 6,518
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 ...
Xiaohong Deng's user avatar
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 ...
Thomas Dickey's user avatar
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 ...
Austin Hemmelgarn's user avatar
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 ...
Stephen Kitt's user avatar
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 ...
terdon's user avatar
  • 252k
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 ...
sina falihi's user avatar
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 ...
Lucas's user avatar
  • 2,955

Only top scored, non community-wiki answers of a minimum length are eligible