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

Get the actual geometry of a gnome-terminal

in X I know you can get the geometry of a window with xwininfo. Unfortunately, if i retrieve such geometry from a gnome-terminal and use that to start another one with gnome-terminal --geometry ..., the two windows' top and left don't match. Indeed,…
etuardu
  • 5,066
  • 3
  • 46
  • 58
9
votes
1 answer

Open a terminal via gnome-terminal then execute command, error : "failed to execute child process""

Via a bash command, I want open a terminal and, from the new terminal, execute a simple bash command. I tried: gnome-terminal -- "/bin/bash -c ls" But I got this error: I don't understand the error and I cannot find an example anywhere for…
spacecodeur
  • 2,206
  • 7
  • 35
  • 71
9
votes
4 answers

curl command not executing via shell script in bash

I'm learning shell scripting! for the same I've tried downloading the facebook page using curl on ubuntu terminal. t.sh content vi@vi-Dell-7537(Desktop) $ cat t.sh curlCmd="curl \"https://www.facebook.com/vivekkumar27june88\"" echo…
Vivek Kumar
  • 4,822
  • 8
  • 51
  • 85
9
votes
3 answers

Mini Project: Change the color of the terminal based on the time of day

Good Evening, I am pretty new to Unix so maybe this mini project is too ambitious. Hoping someone could point in in the right direction. Working in a cubicle and I can't see how light it is outside. In general I use a yellow terminal in the…
sixtyfootersdude
  • 25,859
  • 43
  • 145
  • 213
9
votes
4 answers

In linux, how can I test whether the output of a program is going to a live terminal or to a file?

When you use git it seems to magically know whether standard out is going through a pipe or into a file vs when it is being displayed to the console. For example, if you have colors enabled and you do git status it will colorize the output for…
Ross Rogers
  • 23,523
  • 27
  • 108
  • 164
9
votes
2 answers

zsh tab completion bug on ubuntu

I'm getting a really annoying bug here: % git s becomes % git sgit s send-email -- send collection of patches as emails send-pack -- push objects over git protocol to another repository ... It just duplicates the command. If I…
BPm
  • 2,924
  • 11
  • 33
  • 51
8
votes
1 answer

What is the GNOME_TERMINAL_SCREEN environment variable?

I've recently installed Ubuntu 20.4 LTS on one of my computers. This release of Ubuntu uses the gnome desktop manager (3.36.3) with gnome-terminal (3.36.2) by default. In each terminal window that I open, the GNOME_TERMINAL_SCREEN environment…
Die in Sente
  • 9,546
  • 3
  • 35
  • 41
8
votes
1 answer

Rails console on linux always shows \r at end of every line

A standard rails console on a long running rails project has always worked fine on macOS. Recently switched to Ubuntu 18.04, and the rails console in bash and gnome-terminal will always append a \r at the end of every line like so: Loading…
P. Q.
  • 191
  • 5
8
votes
1 answer

gtk_icon_theme_get_for_screen error for nautilus

Recently i have updated the ubuntu 14.04 to Ubuntu 15.04. Usually nautilus . command should open the directory in GUI.However, now i am getting the error like below. What is the recent for that and any solution to solve…
Vanji
  • 1,696
  • 14
  • 23
8
votes
3 answers

Control + space vim key binding in normal mode does not work

I want to map control+space to :bnext in order to forward switch in normal mode. So I added following to my .vimrc: nnoremap :bn For backward search following nnoremap :bp However, this solution does…
Khamidulla
  • 2,927
  • 6
  • 35
  • 59
8
votes
2 answers

Forgotten MySQL username on ubuntu

I've forgotten my MySQL owner details. I need a way to find my username. My password will not be a problem. I use Ubuntu 12.04 Linux, and would prefer a command line solution. Thank you in advance.
Ema4rl
  • 577
  • 1
  • 6
  • 17
7
votes
1 answer

Install terminator on macbook as terminal emulator

I got a brand new macbook m1 chips, I am trying to use terminal emulator terminator there, i have installed it with brew install terminator but i don't see it's in installed app and search it, i dont find it anywhere in my machine. is it really…
user14880125
7
votes
1 answer

gnome-terminal: how to eliminate the scrollbar programatically?

I'm spawning some processes running in their own gnome-terminal and don't want to show the scrollbar. Is there something like xterm +sb to turn the scrollbar off for that particular window?
Mark Harrison
  • 297,451
  • 125
  • 333
  • 465
6
votes
1 answer

How to prevent inputs being flushed into output?

I'm on Ubuntu. When I run ghci on Terminal and do this: Prelude Control.Monad System.IO> forever $ getChar >>= print The result is something like this: a'a' b'b' C'C' %'%' \'\\' 1'1' ''\'' "'"' ^X'\CAN' ^?'\DEL' ^CInterrupted. That is, the…
Dannyu NDos
  • 2,458
  • 13
  • 32
6
votes
3 answers

ANSI escape code weird behavior at end of line

Steps to reproduce Consider the following shell command: echo -e "\e[41mTest\nTest2\e[0mTest3" It prints Test and in the next line Test2 with a red background (using an ANSI escape code). Test2 is followed directly by Test3 which is…
Scindix
  • 1,254
  • 2
  • 15
  • 32
1 2
3
37 38