Questions tagged [gnome-terminal]

For questions about writing programs to communicate with the GNOME Terminal application (or about modifying its internals). DO NOT add this tag simply because you happen to use this terminal when interacting with a program that could use other terminals equally well.

The default GNOME desktop terminal emulator, allowing users to execute commands using a real UNIX shell while remaining on their graphical desktop.

569 questions
14
votes
1 answer

Opening new gnome-terminal (v3.28+) with multiple tabs and different commands

It seems the behavior of gnome-terminal has changed between the version shipped with Ubuntu 14 (v3.6?) and Ubuntu 18 (v3.28). I have a script that opens a new gnome-terminal with a bunch of tabs setup to different directories for my development, and…
codesniffer
  • 1,033
  • 9
  • 22
14
votes
5 answers

Decrease the tabs bar height in gnome terminal

I recently installed Lubuntu 16.04 with gnome-terminal. I like gnome-terminal to consume less space on monitor. But latest version comes with two annoying buttons at the right top corner which makes no sense to me. Because, user who prefer terminals…
Madhusudhan Kasula
  • 170
  • 1
  • 1
  • 9
13
votes
4 answers

How to remember multiple tabs' session in terminal? (Alike FF session manager)

how does one "undo close-tab" in terminal? And quite related to it, is it possible to remember a session of tabs in terminal? I mean (alike Firefox) if I close all tabs in a particular terminal window, how do I open with same the next day? Its…
kvaibhav
  • 163
  • 1
  • 1
  • 7
12
votes
3 answers

Vim background color doesn't render properly in GNOME terminal

I'm guessing lots of people get this problem, but I can't seem to find any other threads/questions about it anywhere. I guess it's difficult to capture in keywords. Basically, Vim doesn't draw the background color when scrolling up in places where…
voltrevo
  • 9,870
  • 3
  • 28
  • 33
12
votes
1 answer

Annoying padding between tmux bar and bottom of terminal window when maximised

I am using tmux inside of a gnome-terminal. When I first open a window (with the default size being 80x24) the tmux bar sits snugly at the bottom of the window. When I maximise the terminal window, however, an annoyingly large gap appears underneath…
HighDensityAwesome
  • 123
  • 1
  • 1
  • 6
12
votes
1 answer

How do I get Ctrl-Backspace to delete a word in vim within gnome-terminal?

I'd like Ctrl-Backspace to delete the current word in vim insert mode. From within xterm I can pull this off via :inoremap but in gnome-terminal I cannot figure out a way to make it happen. When in vim insert mode, if I type control-v…
Michael Gundlach
  • 106,555
  • 11
  • 37
  • 41
11
votes
1 answer

Updated to Python 3.8 - Terminal won't open

I updated my system (Ubuntu 18.04) from Python 3.6 to Python 3.8, and reset the defaults so that python3 now points to Python 3.8 (and not 3.6). However, since then, the terminal has refused to open using Ctrl + Alt + T, and other obvious methods…
stoic-santiago
  • 239
  • 3
  • 8
11
votes
2 answers

Ubuntu terminal starts with the Anaconda base environment (how to correct that?)

I have downloaded and installed the Anaconda distribution for Ubuntu (18.04) from [https://www.anaconda.com/distribution/#download-section] conform instructions some weeks ago. Everything worked fine. Today I updated the packages in the Gnome…
René
  • 4,594
  • 5
  • 23
  • 52
11
votes
1 answer

How to bind CTRL + Enter in zsh?

I want to bind Ctrl+Enter ↵ in zsh: bindkey '^M' autosuggest-execute But it seems that the terminal sends the same escape sequence for any modifier key except for Alt. $ showkey -a Press any keys - Ctrl-D will terminate this program ^M 13…
Andrija Čehko
  • 443
  • 8
  • 14
11
votes
4 answers

SED: copy lines from a file to specific line in another file

I can do this using the following example. The 1st command will output the lines 16...80 from file1 to patch, while the 2nd will insert the contents of patch after line 18 to file2: sed -n 16,80p file1>patch sed -i 18rpatch file2 However, I would…
mYself
  • 191
  • 1
  • 1
  • 11
11
votes
6 answers

bash: __vte_prompt_command: command not found

bash: __vte_prompt_command: command not found Whenever I open a terminal, I am greeted with this line. Also, this is printed each time I enter a command in the terminal. I am a linux-noob, and would be happy to read up, if someone can point me to…
pradeepcep
  • 902
  • 2
  • 8
  • 24
11
votes
2 answers

How to change VIM cursor shape while in different modes in Gnome Terminal

I would like to change VIM's (not gVIM's) cursor depending on what mode I am currently in. I would like: Normal & Visual modes = block cursor Insert & Command modes = I beam cursor I tried adding the following code to .vimrc but it did not work.…
user883807
10
votes
2 answers

Print bold or colored text from Makefile rule

I'm trying to print bold text from the following Makefile : printf-bold-1: @printf "normal text - \e[1mbold text\e[0m" But, escape sequences are printed as-is, so when running make printf-bold-1, I got : normal text - \e[1mbold…
norbjd
  • 10,166
  • 4
  • 45
  • 80
10
votes
5 answers

How to change gnome-terminal title in Ubuntu 10

I've tried setting my PROMPT_COMMAND variable: PROMPT_COMMAND='echo -ne "\033]0;"myWindowTitle"\007"' but something changes my tab (or the whole terminal title) to 'user@hostname:/current/path', thus PROMPT_COMMAND='echo -ne…
installero
  • 9,096
  • 3
  • 39
  • 43
9
votes
3 answers

Getting pid of a background gnome-terminal process

I can easily start a background process, find its pid and search it in the list of running processes. $gedit & $PID=$! $ps -e | grep $PID This works for me. But if I start gnome-terminal as the background process $gnome-terminal & $PID=$! $ps -e |…
db42
  • 4,474
  • 4
  • 32
  • 36
1
2
3
37 38