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
5
votes
1 answer

How to open new terminal through C program in linux

I have written client-sever code where I have many connections, let say each node represents different process on same machine. And to do that I have obviously use fork(). But now problem is that all results get displayed on same terminal. I want to…
suraj_fale
  • 978
  • 2
  • 21
  • 53
5
votes
3 answers

get the bash exit command out of gnome-terminal

from bash, I'd like to kick off a new process in a new terminal, wait till it finishes, and then recover the exit code. for example, I'd like to do something like this, but actually recover the useful exit codes; gnome-terminal -e "bash -c \" sleep…
user1733212
  • 111
  • 8
5
votes
0 answers

How to modify zoom level of gnome-terminal programatically?

One can modify the zoom level in the gnome-terminal by pressing C-+/-. I would like to modify the zoom level automatically in response to window size change (number of columns). Alternatively, are there terminals which support that? I am using a…
luntain
  • 4,560
  • 6
  • 37
  • 48
4
votes
2 answers

logging to file gnome-terminal output

I have a bash script where I use gnome-terminal -e /folder/script1 & gnome-terminal -e /folder/script2 & to open two new terminals and carry out two parallel jobs. I want to know if it is possible to log the output of these scripts by using…
Kynikos
  • 69
  • 1
  • 4
4
votes
2 answers

kill process do not kill the subprocess and do not close a terminal window

I am working on UBUNTU and I have file main.py with a code inside: #!/usr/bin/env python3 # coding=utf-8 import os import time from subprocess import Popen, PIPE, call, signal base_path = os.path.abspath('') path_to_file = base_path +…
luki
  • 197
  • 11
4
votes
5 answers

Opening multiple tabs in gnome terminal with complex commands from a cycle

I have a command that needs to be called like this: command "complex argument" If I want to run gnome-terminal passing it this argument, it goes like this: gnome-terminal -e 'command "complex argument"' I want to open multiple tabs in the…
petersohn
  • 11,292
  • 13
  • 61
  • 98
4
votes
1 answer

Use utf-8 character for curses border

I can't use █ character for curses border with. Code example: import curses stdscr = curses.initscr() c = '█' stdscr.border(c, c, c, c, c, c, c, c) stdscr.getch() I obtain this error: OverflowError: byte doesn't fit in chtype I can however use…
4
votes
4 answers

Import conda error traceback upon opening terminal

The below lines of code show up every time I open my terminal. Traceback (most recent call last): File "", line 3, in ImportError: No module named conda I am worried I have possibly corrupted my (base) conda environment but I…
PoorProgrammer
  • 459
  • 1
  • 4
  • 14
4
votes
2 answers

When i resize my gnome-terminal with installed oh-my-zsh and powerlevel9k theme i can see problem with redrawing

I got problem with gnome-terminal with oh-my-zsh and powerlevel9k theme. When i resize terminal during redrawing my line really messing up. I will show you screen from my desktop to check problem. I've searched how resolve this problem but i didn't…
pepe44
  • 41
  • 2
4
votes
3 answers

configure gnome-terminal using a configuration file rather than command line arguments

I've found in the gnome-terminal help documentation a really cool list of things you can configure in a file but absolutely no documentation of what the variables in the conf file are. I've googled a bunch for this and haven't found anything useful.…
jaydel
  • 14,389
  • 14
  • 62
  • 98
4
votes
1 answer

How to display Regional Status Indicators (country flags) in the terminal

How do you display Regional Status Indicators (things like country flags) in the Linux Terminal? Is this even possible? I'm programming a VPN client and would like to include some flags for the countries the client includes. For example, I would…
Anonymous
  • 79
  • 4
4
votes
3 answers

How to Switch Focus to a Gnome Terminal Tab via Script or Shell Command

I am currently writing a script to open several tabs in gnome-terminal, and set their titles. I can open multiple tabs, but I need to change focus to those tabs (programatically) in order to set their titles from my script. I use zsh and bash…
Todd
  • 2,824
  • 2
  • 29
  • 39
4
votes
4 answers

what's the default background color of gnome-terminal

I would like to change the text color to bright green (#66FF00) but keep the default background color ( which is : "use system theme color ") of gnome-terminal. I can customize the text color, but in this case, I still need to specify the background…
user565739
  • 1,302
  • 4
  • 23
  • 46
4
votes
1 answer

Start Bash Script from Bash Script to Launch GUI Application

I am trying to launch a GUI application (rhythmbox) on a Ubuntu. In the following I try to explain the chain of executed files. # Window manager executes first ~/i3wm_cmd_wrapper.sh Window_Name ~/mount_enc.sh This wrapper uses gnome-terminal to…
m3x1m0m
  • 105
  • 8
4
votes
1 answer

Terminator not loading .bashrc or .vimrc

I installed Terminator using following commands. sudo add-apt-repository ppa:gnome-terminator sudo apt-get update sudo apt-get install terminator It seems like it's not loading .bashrc file. When I open Vim in terminator, it's not even loading…
NayabSD
  • 1,112
  • 2
  • 15
  • 26