date int64 1,220B 1,719B | question_description stringlengths 28 29.9k | accepted_answer stringlengths 12 26.4k | question_title stringlengths 14 159 |
|---|---|---|---|
1,424,268,416,000 |
Editing text file using Emacs will make Emacs make a companion file for its own purpose.
For example, after first editing a file called test.c, Emacs will leave a file called test.c~ in the same directory. This can be a little annoying when visualizing all files cluttered with the ~ files in a console
Any way to get r... |
Use ls -B to hide the ~ files when displaying file names. The command line switches, -B or --ignore-backups, do not list implied entries ending with ~.
| Gnome Terminal---hide the tilde files produced by Emacs |
1,424,268,416,000 |
I have a script that starts my vagrant machine, opens up multiple terminals and connects to the vagrant machine via ssh in every newly opened terminal. My problem is that I need about five terminals, and I don't want to type in the password for each terminal manually. Is there a way to get prompted for the password on... |
In general (ignoring vagrant or other system-specific details) your best bet is to set up authentication with SSH keys, and run ssh-agent. Then open the ssh sessions with something like:
# load the key to the agent with a 10 s timeout
# this asks for the key passphrase
ssh-add -t10 ~/.ssh/id_rsa
for x in 1 2 3 ; do... | How to type in password for multiple windows? |
1,424,268,416,000 |
openSUSE Leap 42.2
Gnome Terminal 3.20.2
I have a terminal window open. If I type the following command:
gnome-terminal
as a non-root user it successfully launches a new terminal.
However if I run the command as root I get the following error message:
Error constructing proxy for
org.gnome.Terminal:/org/gnome/Term... |
Remember how Windows applications mainly worked back in the Win16 days before Win32 came along and did away with it: where there were hInstance and hPrevInstance, attempting to run a second instance of many applications simply handed things over to the first instance, and this made things difficult for command scripti... | "error constructing proxy..." when trying to launch gnome-terminal as root |
1,424,268,416,000 |
While investigating a problem described in a question at stackoverflow I simplified it down to a test case demonstrating that in non-interactive mode bash seems to clear the X system clipboard before exiting. The test opens a gnome terminal and runs a bash script in it that places (via xclip) some text in the X system... |
The author of the original question on Stackoverflow has identified this to be a problem in xclip. Using xsel instead of xclip for manipulating the X clipboard eliminates the issue (note that xclip was replaced with xsel only when placing data into the clipboard, and not when reading from the clipboard):
$ cat xclip_... | xclip works differently in interactive and non-interactive shells |
1,424,268,416,000 |
I start a new process from GNOME Terminal and then this process fork a child.
But when I killed the parent process the orphaned process's parent id became something other than 1 which represent init --user pid.
When I do this in virtual terminals, the parent pid is 1 which represent init process.
How can I execute ne... |
I already answered a similar question a few months ago. So see that first for technical details. Here, I shall just show you how your situation is covered by that answer.
As I explained, I and other writers of various dæmon supervision utilities take advantage of how Linux now works, and what you are seeing is that ... | Orphan process's parent id is not 1 when parent process executed from GNOME Terminal |
1,424,268,416,000 |
I'm looking to use the terminal more and more, and I'd like to find a terminal calendar app that can sync with Google calendar.
I'm running ubuntu 14.04
|
Take a look at:
gcalcli,
and also:
remind , which has PHP scripts to convert iCAL entries to Remind format.
| Google calendar in the terminal |
1,424,268,416,000 |
I am running ubuntu 12.04.5 lts.
When I do a mouse double click selection I would like to select only a current word. For example in a line like:
/home/xx/asdf
right now the whole line gets selected when I doulble click on "xx". Also in a line like:
$asdf=
I would like to select the 1st five characters - include $ ... |
For gnome-terminal:
In the menu bar, under Edit : Profile Preferences, tab General you will find Select-by-word chatacters. If you want the terminal to consider / to be a word boundary for selection purposes, remove / from the list of characters.
| gnome classic terminal mouse double click selection |
1,466,555,813,000 |
I recently started using Ranger as my default file manager, and I'm really enjoying it. Right now, I've managed to change rifle.conf so that when I play audio or video from Ranger, mpv opens in a new xterm window and the media starts to play.
However, if possible, I would like Ranger to open the gnome-terminal instead... |
As of 2017, the source-code (runner.py) did this:
term = os.environ.get('TERMCMD', os.environ.get('TERM'))
if term not in get_executables():
term = 'x-terminal-emulator'
if term not in get_executables():
term = 'xterm'
if isinstance(action, str):
acti... | Ranger file manager - Open gnome-terminal instead of xterm |
1,466,555,813,000 |
If I execute the following command in LXTerminal:
gnome-terminal &
gnome-terminal gets opened. But as soon as I close the LXTerminal, gnome-terminal will be closed as well because it's a child process. Is there any way to open the second process independently?
|
It's not possible to start a process without it being the child. When you execute an external command, under the hood the shell calls fork() followed by execvp(). You can prevent it from getting killed when the parent shell dies.
One way is to use nohup:
nohup gnome-terminal &
Another option if you are using bash is ... | How to open a process from terminal without becoming child process? [duplicate] |
1,466,555,813,000 |
I use the gnome-terminal and most of my editors with a white on black theme as I find its easier on the eyes. One of my labs requires screenshots of the terminal (with the process) to be submitted along with program code.
So, is there a way to temporarily change the terminal to a black on white colour scheme, preferab... |
You can use gconftool-2 - GNOME configuration tool. First, you can list all your gnome profiles with:
$ gconftool-2 --get /apps/gnome-terminal/global/profile_list
[Default,Profile0]
Now you can print values for selected profile:
$ gconftool-2 -a "/apps/gnome-terminal/profiles/Default"
Store value of foreground and ... | Is there a way to temporarily change the terminal colour? |
1,466,555,813,000 |
I have a line in my .bashrc that sets a color-scheme:
eval $(dircolors colorfile)
This works as expected, setting LS_COLORS with the right string generated from 'colorfile'.
When I use screen, the bashrc file is read again, but I lose my colors. Testing, I ran dircolors colorfile in the commandline in screen, and g... |
The value of $TERM is different inside screen. Accordingly your colorfile file should probably begin with
TERM screen*
TERM xterm*
| dircolors myfile sets LS_COLORS to empty string in screen |
1,466,555,813,000 |
In Emacs no window mode, the background is automatically the same as the terminal (gnome-terminal). When I look at (frame-parameters) I see that (background-color . "unspecified-bg"). Well, for me, the background happens to be black. Is there a way to find out what the actual background color is for an Emacs session?
|
If you know how to find out from the terminal, you can use that selfsame command to find out from Emacs.
In my case, I'd make a script like this:
#!/bin/zsh
cat .Xresources | grep 'URxvt\*background\:' | cut -d" " -f2
(Note: -d is to set the field delimiter, -f is to set what field is to be shown: the first field is... | How to get background color in Emacs? |
1,466,555,813,000 |
xterm:
$ echo $TERM
xterm-256color
$ stty -a
speed 38400 baud; rows 52; columns 91; line = 0;
intr = ^C; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = <undef>; eol2 = <undef>;
swtch = <undef>; start = ^Q; stop = ^S; susp = ^Z; rprnt = ^R; werase = ^W; lnext = ^V;
flush = ^O; min = 1; time = 0;
-parenb -parodd -cms... |
The reason is that in your xterm, ^H is the erase character, and tmux apparently translates the erase character to the corresponding control character (^?) for the terminal it emulates, so that erasing works as expected in cooked mode (for instance, what happens when you just type cat). The translation is needed in ca... | Why pressing Ctrl-h in xterm + tmux sends "^?"? |
1,466,555,813,000 |
I find useful the gnome-terminal feature of editing (and creating) profiles with the option of holding the terminal open after the command exists.
(I like to use context menu file manager to run commands to display info about a file in a terminal, to show info in a terminal while processing, etc.)
I wasn't able to fi... |
You can achieve this in any terminal emulator by the simple expedient of arranging for the program not to exit without user confirmation. Tell the terminal to run terminal_shell_wrapper which is a script containing something like
#!/bin/sh
if [ $# -eq 0 ]; then "${SHELL:-sh}"; else "$@"; fi
echo "The command exited wi... | How to hold terminal open (excepting gnome-terminal)? |
1,466,555,813,000 |
The picture on top you can see my xterm, the picture under is the gnome-terminal.
Ok This is what I want to get:
I use the same font in both but looks different:
Xterm*faceName: DejaVu Sans Mono Bold:size=11:antialias=true
how can I fix this?
//EDIT
add more info of my xterm:
ldd `which xterm` | grep -E '(freetype|f... |
I believe it's just a typo. Try changing
Xterm*faceName: DejaVu Sans Mono Bold:size=11
to
XTerm*faceName: DejaVu Sans Mono Bold:size=11
(XTerm rather than Xterm)
| Can I make text in xterm looks and feels like gnome-terminal? |
1,466,555,813,000 |
In Linux Mint (Debian-based) how can I edit what the shortcut Ctrl+Alt+t launches?
For example, I would like to issue gnome-terminal with the --maximize option, and to have it launch tmux instantly.
|
You can modify the /desktop/gnome/applications/terminal/exec key in GConf (using gconf-editor), which is described as "the default terminal application to use for applications that require a terminal".
Alternatively, I propose a little more flexible solution: if you use Compiz, you can use the Commands plugin to defin... | How do I edit the terminal launch command in Linux Mint? |
1,466,555,813,000 |
When I try and open the gnome terminal, by clicking the 'terminal' icon in apps, I get a loading and then nothing happens. Is there some way of seeing the background output of trying to open it to try an ddebug it?
UPDATE 1:
So I was able to open xterminal and tried starting the gnome terminal like this: gnome-termina... |
As Ipor Sircer suggests, if you can open another terminal, you can run gnome-terminal from there.
Alternatively, you can dump gnome-terminal's output to a file: assuming you're running GNOME, press AltF2 and enter
sh -c "gnome-terminal > ~/gnome-terminal.log 2>&1"
Then you'll find all the output in ~/gnome-terminal.l... | Gnome Terminal not opening |
1,466,555,813,000 |
I have got a strange problem with gnome-terminal after upgrading from Linux Mint 17.3 to 18.3. Now, --working-directory does not work anymore. Eg:
gnome-terminal --working-directory=/home/user/Desktop/
instead opens in my home directory. This also means that "Open in terminal" from Nautilus file manager does not work... |
This is a known bug, and unfortunately has yet to be fixed.
If you have specified a custom command rather than your default shell to be run upon Gnome Terminal's startup, a potential fix is disabling the custom command:
Open the Gnome Terminal settings window and uncheck "Run custom command instead of my shell" to dis... | Gnome-terminal cannot open in working directory |
1,466,555,813,000 |
Input file: output of Tower of Hanoi in Brainfuck (some codepoints may not render properly in your browser). The file basically uses escape codes (more specifically ^[[m;nH) to rewrite lines.
Running the command (you may need to do sudo apt-get install pv or equivalent)
cat hanoi.b.out | pv -l -L 10 -q
gives output ... |
Not all of the output is cursor-addressing. Some of it is line-feeds, which will (when the cursor happens to be on the bottom row) cause the terminal to scroll up. Here's a visible rendering using unmap of the beginning of the output: look for the \n (newlines are "line-feeds");
\E[H
\E[2J
\E[2;27HTowers of Hanoi in... | Animation inside terminal with escape codes |
1,466,555,813,000 |
This is kind of a followup to another question.
I use a custom command in my gnome-terminal profile (/usr/bin/fish). When using Ubuntu 14.04 a Ctrl-Shift-N opened a new gnome-terminal window in the same directory as the current terminal. With 16.04 this changed and now it always opens in $HOME. I want the old behavior... |
As Gilles mentioned in a comment, setting the SHELL variable works as well. It does not have downside of my other answer. Here are the details:
Create .xsessionrc in your home directory with contents:
SHELL=/usr/bin/fish
Disable custom command in gnome-terminal profile options.
Log out and in again.
Gnome-terminal ... | Gnome-terminal custom command and dynamic working directory |
1,466,555,813,000 |
I am trying to install some key sequence bindings but I have trouble.
My shell is bash, my terminal is gnome-terminal, and my system is Ubuntu 14.04 in graphic mode.
Edit : my keyboard is french azerty with the numeric pad and ctrl,fn,super,alt.
Edit: a bash guide, readline chapter
I want to add contol+alt+space, but ... |
Your gnome-terminal (actually the underlying vte-0.34) emits the wrong sequence for ctrl+Alt+space. The bug (https://bugzilla.gnome.org/show_bug.cgi?id=710349) was fixed in vte-0.36.
If you're not afraid of hacking a little bit and you're able to safely revert things in case of trouble, you can try to install vte-0.36... | bash - wrong key sequence bindings with control+alt+space |
1,466,555,813,000 |
I am connecting to an embedded Linux board using screen over a serial link and trying to change the terminal type, as the default vt100 is pretty restrictive in terms of colours and scrolling etc.
The screen manual suggests the configuration option termcapinfo but using that doesn't fix the issue.
On the host machine,... |
It's the remote machine that sets $TERM to vt100, because it cannot know what terminal emulator your connecting with. vt100 is a safe value as the majority of modern terminals and terminal emulators (including screen) are compatible.
To tell the applications over there what your terminal actually is, you have to set $... | Change terminal type for screen over a serial connection |
1,466,555,813,000 |
When I hit the <s-f2> key to execute my nnoremap <s-f2> :set number! mapping Vim opens its "Insert" mode above (O) and types the 1;2Q string. In order to see the entire terminal key code – not eaten up half-way by the "Normal" mode – I hit <c-v><s-f2> in "Insert" mode and get ^[O1;2Q, where ^[ is the <esc> character.
... |
You can use a special wildcard syntax with :set <Key> to let Vim automatically recognize xterm-style modified keys:
if &term =~ '^gnome'
execute "set <xUp>=\e[1;*A"
execute "set <xDown>=\e[1;*B"
execute "set <xRight>=\e[1;*C"
execute "set <xLeft>=\e[1;*D"
execute "set <xHome>=\e[1;*H"
execute "set <xEnd>=\e[1;*F"
exec... | How to fix the shifted function keys in vim in xterm in gnome-terminal? |
1,466,555,813,000 |
I am on Linux Mint 19.03
First of all, I can assure you that I have read most of the possible questions you might think this question of mine is a duplicate of.
Now, I basically want to type something in my terminal window to open a new terminal window and execute the commands.
Something like this:
[the part I am aski... |
x-terminal-emulator doesn't start a shell by itself. This leafs just executables to be started with the -e option.
While echo is available as an executable (/bin/echo), read as a bash internal command will fail without bash. Therefore the output in the new window is done faster than it takes to open the window and as ... | What is the command structure to open a new terminal and execute the given set on commands on this new terminal? |
1,466,555,813,000 |
I have a script that I want to monitor its results and write them to a log file. I run the following:
gnome-terminal -x bash -c "script logfile.log; ssh user@IP"
But this command execute first the first command and after that the 2nd. Can I do them like in series without any input from me? to execute first the script ... |
Have you tried having script be the outer part
gnome-terminal -x script -c "ssh user@IP" logfile.log
| Open a new terminal, monitor it and execute a script |
1,466,555,813,000 |
I am using Debian Linux and I am setting some shortcuts on it. So in keyboard window I went to shortcut, added gnome-terminal, and set Ctrl + t as the keys.
But in Debian we also have "Root Terminal" so we can open a terminal session as root. I want to set a shortcut for this. What command I should allocate to it?
|
Go to Keyboard window and in the Custom Shortcut part the command is:
gksu gnome-terminal
| Openning root terminal by keyboard shortcut |
1,466,555,813,000 |
I'm in gnome-terminal on Linux Mint 13. (Mate)
Whatever color scheme I set for the terminal overrides the color scheme i have set for Vim.
How can i stop that from happening?
I have read this: http://vim.wikia.com/wiki/256_colors_setup_for_console_Vim
at 'Overriding the terminal's default terminfo', but it's very fuzz... |
The important part of that wikia link is:
:set t_Co=256
Entering this in normal mode (or putting it in your ~/.vimrc) will force vim to try to use 256 colors, which should override gnome-terminal's color scheme.
Apparently, while gnome-terminal is capable to 256 colors, it doesn't advertise that fact in a way that v... | gnome-terminal overrides Vim color setting |
1,466,555,813,000 |
To the disappointment of many, tab/window title can't be set anymore with --title
I use bash. I have had a few aliases I have used to connect to remote servers with.
alias c:prod='gnome-terminal --hide-menubar --profile=Production \
--title="Production Server" -e "ssh <url>" &'
I found a workaround for GNOME 3.14+ to... |
Append set-title function to ~/.bashrc:
function set-title() {
if [[ -z "$ORIG" ]]; then
ORIG=$PS1
fi
TITLE="\[\e]2;$@\a\]"
PS1=${ORIG}${TITLE}
}
Install expect, if you don't have it:
sudo apt-get install expect
Create ProductionServer.sh with content:
#!/usr/bin/env expect
spawn bash
expect -re $ {sen... | GNOME 3.14+ launch new gnome-terminal and set title |
1,466,555,813,000 |
I am using a fairly recent version of Cinnamon (5.4.12), with desktop theme Adwaita-dark (and Adwaita sometimes).
When I start a gnome-terminal window, it has a very thin (1px?) white border all around it. But as I like black terminals, I configured a black background to it, but now, I cannot see the window borders an... |
What worked for me is adding this to the gtk.css file (which for me is located in ~/.config/gtk-3.0)
decoration {
border: 1px solid grey;
background : grey;
}
It makes the border of the windows grey (or any color you want) instead of black. It applies to all GTK 3 apps, not just the terminal, but it does solv... | Change border color around window (edit GTK theme) |
1,466,555,813,000 |
I am using tmux, and recently found out that the same vim colorshemes inside and outside of tmux have different colors
Left is tmux in gnome-terminal, right is plain gnome-terminal, gnome-terminal has default colors:
EDIT: At closer look, the style does change too (look at bold etc).
Both terminals are 256-colored on... |
For some reason, it was just a Vim issue: when started in tmux, it loaded default colorsheme, but when started from plain terminal, it loaded desert colorscheme but still calling it default when asked via :colorsheme. Forcing :colorsheme default resolved an issue, so I added colorsheme line in my ~/.vimrc and now it's... | Different vim colors and styles in Tmux and Gnome |
1,466,555,813,000 |
Vim scripts sometimes resize the whole shell (in my case the Taglist plugin).
I don't want this behavior, which is possible with the shell command resize, too.
Is there a way to suppress the whole resizing in shell windows? Any .*rc files to tune?
I'm using gnome-terminal.
|
To fix your Taglist issue, add the following somewhere in your .vimrc:
let Tlist_Inc_Winwidth=0
From the VIM documentation:
Window resizing with xterm only works if the allowWindowOps resource is
enabled. On some systems and versions of xterm it's disabled by default
because someone thought it would be a security is... | How can I disable terminal resizing |
1,466,555,813,000 |
I would like to have a command or script that opens a new gnome-terminal window with bash and loads a history file and stays open.
I searched for how to open a terminal and execute a command without it closing, and the answers I found are essentially summarized in this stackoverflow answer.
Based on these methods, I t... |
I managed to find a workaround using the PROMPT_COMMAND variable and the rcfile.txt file mentioned in the question. You can run the command
gnome-terminal -e "bash --rcfile rcfile.txt"
Where the contents of rcfile.txt are the following:
FILE=~/.bashrc && test -f $FILE && source $FILE
my_init_func() {
# Insert de... | How do I open a terminal window and execute a command after the shell has opened? |
1,466,555,813,000 |
I suddenly cannot open a gnome-terminal window in Linux Mint. I installed xterm and guake too now looking for a replacement, but none of them will open either.
When I do try to open gnome-terminal by any method, the window will flash on the screen, but then it instantly closes before I can really see anything. My .xse... |
I eventually found the answer on my own. I had done something to my /etc/passwd/ file, without really understanding what I was doing. Restoring that seems to have fixed the problem.
| Suddenly cannot open any terminal on Linux Mint |
1,466,555,813,000 |
I want to be able to name a terminal tab so I can keep track of which one is which. I found this function (here) and put it in my .bashrc:
function set-title() {
if [[ -z "$ORIG" ]]; then
ORIG=$PS1
fi
TITLE="\[\e]2;$*\a\]"
PS1=${ORIG}${TITLE}
}
and now when I call set-title my new tab name the tab name is... |
Instant of using function set-title you can create command with this functionality, so remove function set-title() that you add from ~/.bashrc and create a file /usr/local/bin/set-title:
#!/bin/bash
echo -ne "\033]0;$1\007"
Add chmod: chmod +x /usr/local/bin/set-title.
And after you re-open terminal you can use this ... | Call a .bashrc function from a bash shell script |
1,466,555,813,000 |
I'm trying to have transparency working for Gnome Terminal.
However this is what I get when I try to edit the profile of gnome-temrinal: there's no background tab where I can set the opacity !?
I am using NixOs, this is what I have in my pkgs.nix file:
environment.systemPackages = with pkgs; [
# ...
gnome3.gn... |
The GNOME terminal FAQ states:
How can I make the terminal transparent?
Since version 3.7 (NixOS master currently contains version 3.26) this option has been removed from the Preferences
dialogue. You can however still get the same effect by setting the
_NET_WM_WINDOW_OPACITY X property, for example with the Devil's ... | Background transparency for Gnome Terminal |
1,466,555,813,000 |
I use neovim in tmux in gnome-terminal on Fedora 25. Here I found out, that I do not have true color support because terminal is not linked to some libvte of correct version. Since many nvim color schemes need true color support (and also I want this from a general perspective) I'd like to activate it!
However, the po... |
Those instructions do not actually provide the correct test for the version of libvte used on Fedora, since our gnome-terminal-server is in /usr/libexec. Instead, I'd suggest
$ rpm -qR gnome-terminal|grep vte
libvte-2.91.so.0()(64bit)
vte291(x86-64) >= 0.46.0
Here, we see that 0.46.0 is greater than the 0.36 your tu... | Enable true color for neovim in Fedora 25 |
1,466,555,813,000 |
I'm new to Linux and so far,I have come to understand that if we open a new process through a gnome-terminal eg: gedit & "& for running it in background", then if we close the terminal, gedit exits as well. So, to avoid this ,we disown the process from the parent terminal by giving the process id of gedit.
But, I've c... |
When you close a GNOME Terminal window, the shell process (or the process of whatever command you instructed Terminal to run) is sent the SIGHUP signal. A process can catch SIGHUP, which means a specified function gets called, and most shells do catch it. Bash will react to a SIGHUP by sending SIGHUP to each of its ba... | closing parent process(terminal) doesn't close a specific child process |
1,397,869,062,000 |
I am starting a process in a tmux window in a terminal window. When I close the terminal window, the process not killing automatically but If I kill tmux window before close terminal window, the process killing. How can I kill related tmux window when the terminal window closed ?
Can we bind commands the close event o... |
This is a bit of a hack but you could add this to your interactive shell configuration:
alias tmuxn='tmux new-session -s $$'
_trap_exit() { tmux kill-session -t $$; }
trap _trap_exit EXIT
Then you can use tmuxn to start a new session. The session will be named as your shell's PID. When your shell exits, the session w... | How to kill tmux window automatically when terminal window closed? |
1,397,869,062,000 |
When running an interactive shell application, how can I send it a key (or key combination) which would normally be intercepted by GNOME Terminal? In this particular instance it's the F10 key which is intercepted.
Bonus points for a general-purpose solution which would work for things like Alt, PgUp and Alt-Tab (might... |
You can try disable the gnome shortcuts in Edit -> Keyboard shortcuts, so the window won't eat up the function keys.
There seems to be a known gnome-terminal bug relating to this.
Alternatively if this doesn't work, you will have to use another terminal that explicitly sends function keys as control codes to the termi... | How to bypass GNOME Terminal when sending keyboard input? |
1,397,869,062,000 |
I use ZSH and after I type cd command and press Tab I get '@' symbol after some particular entries
Why is it so?
|
What you're seeing is the effect of the LIST_TYPES shell option. From the Completion section of man zshoptions:
LIST_TYPES (-X) <D>
When listing files that are possible completions, show the type
of each file with a trailing identifying mark.
The "trailing identifying mark" appears to follow ... | In ZSH @ symbol appears during autocompletion of cd command |
1,397,869,062,000 |
I have several reasons to think that my terminal behaves like a console.
I use GNOME Terminal 3.18.3.
When I open vim from my terminal on fedora 23, the following warning is emitted: "Vim: Warning: Output is not to a terminal".
When I open the manual for a command, it does not switch the terminal in "reading" mode.
Wh... |
You are likely (attempting) to redirect the output of your shell to a file, e.g., something like
bash -i | tee foo
$ vim
Vim: Warning: Output is not to a terminal
While you can read (most) commands from the keyboard via that approach, the output is no longer a terminal. You can recover by closing that shell and capt... | Vim in Gnome-terminal says “Output is not to a terminal” |
1,397,869,062,000 |
I forked an open source project to work on but one of the folder names I want to cd into starts with an emoji. How can I enter into it? I know I can use the GUI to look through the folder but I rather prefer using the terminal.
I'm using Ubuntu 18.04.4 LTS
|
Option 1: type the emoji
Simple typing cd '🔥 100 DISTRICT ATTORNEYS 🔥' will suffice. Searching up "how to insert emoji in X" is usually more than enough to get you started on typing emojis in your environment.
If you don't want to set up emoji insertion, you can always copy-paste from the web (searching "fire em... | cd into folder name that starts with an emoji |
1,397,869,062,000 |
I wrote this script to create multiple tabs in the same terminal window and run commands in them:
#!/bin/bash
#Use the commands as:
#--tab-with-profile=Default --title=<SPECIFY THE TAB TITLE HERE> -e "bash -ic \"<SPECIFY THE COMMAND YOU WANT TO RUN HERE>; bash\"" \
#The ampersand in the end of this file makes sure t... |
There are two problems;
The first one is that inside each bash -ic command (which by the way doesn't spawn an interactive shell because -c overrides -i, so -i it's safe to be dropped) you're calling bash disown instead of bash, which means nothing and immediately exits on error; so there's no interactive shell keep ru... | Run commands in a terminal, then let me type more commands |
1,397,869,062,000 |
When I enter a command with a long output such as locate linux, the output is too long to show on the current terminal screen, and so the terminal will scroll right to the end of the output. How can I disable this behavior, such that window stays on the first line of the output?
Alternatively, is there a way to get th... |
Short answer: you can't, at least not exactly the way you want.
More useful answer: you can achieve what you want by piping the output to something like more or less , for example :
locate linux | less
This will pause the output scroll at the end of each page, where the page length is defined as the terminal height.
| How can I disable auto scrolling in gnome terminal? |
1,397,869,062,000 |
I tried using crontab -l from my terminal as root, it showed no crontab for root. So I tried crontab -e, it returns the following
no crontab for root - using an empty one
888
and then the cursor starts blinking. I am not able to quit or save the file.
|
When you run the command crontab -e it typically defaults to the vi or vim editors. If you type the command Shift+Z+Z you can save any changes in this editor and exit.
To add entries to your crontab using this method you'll need to learn how to use this editor more extensively, which is beyond the scope of this questi... | Crontab suspicious activity |
1,397,869,062,000 |
I am on arch-linux and just upgraded to the latest version of gnome-terminal. I used to have both the terminal colour and theme set by gnome-tweak-tool having Global Dark Theme turned on. Does anyone know how to change this back without downgrading my terminal. You can see here what the terminal now looks like, and a ... |
Have you set gnome-terminal to use dark theme in the preferences of it?
| Why did an update to gnome-terminal break my system-colours and how do I fix it? |
1,397,869,062,000 |
Is it possible to set a custom icon for gnome-terminal, maybe dependent on the profile. I often have many terminal windows open and it gets a bit tricky to distinguish between them.
|
No. The icon for gnome-terminal is set at the C level and does not provide for any customization. You will need to use xseticon to change it externally.
| Set a custom icon for gnome-terminal |
1,397,869,062,000 |
I use the vim-mark plugin, which allows me to make multiple highlights of different colours. It has some default key maps that uses the numeric keypad (<k1> ... <k9> and <C-k1> ... <C-k9>), which allows me to jump back and forth among occurrences of highlights.
Currently, the key maps only work in gvim, but gvim comes... |
GNOME Terminal, as every terminal emulator maps the keysyms it receives from X (or whatever display server you are using) into characters or escape sequences. Unfortunately it has a fixed mapping with no space for configuration.
The keypad can work in two modes: when it is in normal mode it sends the same characters a... | Make GNOME Terminal send correct numeric keypad keycodes to vim |
1,397,869,062,000 |
When I use a link in my terminal emulator (I am using Gnome Terminal), it's being highlighted as link and if I click it it is opened in the browser.
Is it possible to have a text (e.g. Hello World) and when I click it to open an url (e.g. http://example.com)?
Is it possible to do this with some ANSI black magic?
|
No.
Those links are created by Gnome Terminal when it notices certain patterns in the terminal buffer - e.g. patterns for http:// or ftp:// etc URLs.
| Does ANSI support links on text? |
1,397,869,062,000 |
Here is what I am trying to do:
open Gnome terminal
launches with my command prompt
ssh into work via VPN
launch screen
create two screen windows
try to use F3 and F4 as "prev" and "next" with no luck.
try to use F6 and F7 as "prev" and "next" works fine.
Here is my .screenrc
hardstatus on
hardstatus alwayslast... |
I think I know what it is.
xterm used to send different escape sequences for the F1 to F4 keys.
From the xterm documentation:
Older versions of xterm implement different escape sequences for F1
through F4. These can be activated by setting the oldXtermFKeys
resource. However, since they do not correspond to any... | How do I fix this strange behavior with ssh, gnome terminal and gnu screen where function keys F1 through F4 are not accepted? |
1,397,869,062,000 |
I find the manuals very difficult to read using the terminal. Is there a way to highlight specific text on the terminal? I tried piping to gedit using man man | gedit, but it opens a blank file instead.
Perhaps there's some way to find text within a man page and have it highlighted?
|
Dumping to clear text
You can use this technique to dump a man page out to a text file.
$ man -P cat ls > manpg_ls.txt
The above technique is just changing what pager man uses. Here we're telling it to use the cat command instead. We then get the man page for the ls command dumped to a file in clear text.
Example
Her... | How to highlight some text on a man page? [duplicate] |
1,397,869,062,000 |
I have a zip base.zip and inside the file there is 2 subdirectory.
base.zip
├── subA
│ └── fileA1.txt
│
├── subB
│ └── fileB2.jpg
│
└── k.jpg
I want to add a file in the subA without extract the base.zip and create a new one zip file, i need to do in the terminal.
I read that I can update a zip file with the co... |
Create a subdirectory named subA in your current directory. Put the file you want to add in that subdirectory.
mkdir subA
cp -p file-to-add.txt subA
Then execute:
zip base.zip subA/file-to-add.txt
| Add file in a sub directory of a zip |
1,397,869,062,000 |
I just installed a fresh copy of Debian 8.4 in VirtualBox 5.0.20.
I am now attempting to install the "Guest Additions" CD. To do so I had to change my fstab so I am able to execute things from the CD, so this is already fixed.
But now I get the following error:
root@debian:/media/cdrom# ./autorun.sh
Error constructing... |
Change the permissions in fstab back to the default. As a normal user:
sudo apt-get update && sudo apt-get upgrade && sudo apt-get install build-essential module-assistant
sudo m-a prepare
Mount the Guest Additions CD using the VirtualBox Menu (sudo mount /media/cdrom)
sudo sh /media/cdrom/VBoxLinuxAdditions.run
If... | "Error constructing proxy" on gnome terminal |
1,397,869,062,000 |
On Ubuntu 14.04, in bash under gnome terminal, Why are files especially directories colored in different ways?
The green colors hide the text to me (How about to you?). Is it done by terminal or bash? Is it a design for some purpose?
Can we change the color that hide the text?
|
The colours are set by ls, using the LS_COLORS environment variable. To change the colours, you can use dircolors.
dircolors --print-database
outputs the current source settings, which you can store in a file and adapt; then
dircolors ${file}
will output the processed LS_COLORS value for you using the settings in ${... | Why are files and directories colored in different ways? [duplicate] |
1,397,869,062,000 |
I source vte.sh in my .bashrc. One thing this does is it causes Bash to echo "\033]7;file://$HOSTNAME$PWD\007" as part of PROMPT_COMMAND. This uses the escape sequence "OSC 7" to send a value like file://mylocalbox/home/kerrick to the terminal, telling it what the current hostname and directory are. When you open a ne... |
It doesn't support this feature, you'd need to modify its source code. It's probably a reasonably straightforward task, if you're somewhat used to touching foreign C++ code.
Note:
While you can certainly come up with a patch that works in a significant amount of cases, there will always be cases that cannot be handle... | How can I configure GNOME Terminal to launch new tabs with the same SSH host and directory as the current tab? |
1,397,869,062,000 |
I'm working in a remote server that uses Scientific Linux (version=7.6 (Nitrogen)). I did a simple web application in Python3, and I found myself constantly opening a Mate Terminal (though, any terminal works), and writing
bash
python3 my_app.py
So, I can check if my app works locally in my browser.
I want a way to ... |
The terminal will close after the command is completed. To leave the terminal open, I generally prevent the script from completing, e.g. with a prompt as follows:
while [[ \$response != q ]]; do read -n 1 -p [q]uit? response; echo; done
Hence, for your script, append this to the end of the bash -c command.
gnome-term... | How can I make a script that opens terminal window, executes commands in it and remains open on Scientific Linux? |
1,397,869,062,000 |
I have some binaries and some .c extension files in my directory.
Here the output using ls
arrays.c basic0 basic0.c fromfb fromfb.c oute oute.c segmen.c
simp simp.c
Here i want to filter binary files only , so I use
ls |grep -v .c
This command list all files, Then using grep I get files, except those f... |
As per man grep
The period . matches any single character.
thus grep .c match any character followed by c
You might be looking for grep -v \.c or better grep -v '\.c$'
where
\. escape special meaning of .
c
$ end of line (when piped to ls output one file name par line)
as suggested by wildcard, you can also use gr... | grep with special expressions [duplicate] |
1,397,869,062,000 |
After I add the following command to my ~/.tcshrc:
echo "\033]0;${PROJECT_NAME}\007"
The less command in a new gnome-terminal stops working properly.
But more command is not affected.
This is what I see when trying to run less command:
less log
ESC]0;MYPROJ^G
log (END)
|
Your less is probably configured to pipe its output through lesspipe or a similar script. This happens if environment variable LESSOPEN and/or LESSCLOSE is set, or an equivalent setting is used in the ~/.lesskey file. The output from your ~/.tcshrc is mixing in with the piped data and causing confusion.
Your ~/.tcshr... | less command stops working after setting terminal title in .tcshrc |
1,495,801,914,000 |
Why would a file show up surrounded by double quotes with a character surrounded by single quotes within it?
"insight_automation.log'.'2024-03-13"
I am using Ubuntu Server 22.04.3 LTS. A service desk management program (Atlassian Jira Data Center 9.12.4 if that is relevant) installed on the server writes to various l... |
(I'll just answer this here so you don't need to read all the whining about that feature in the linked answer.)
Recent versions of GNU ls by default wrap filenames with special characters in quotes, when printing to a terminal, for the purpose of making the output unambiguous, and e.g. making any trailing spaces visib... | Why is a filename surrounded by double quotes with single quotes around a character when displayed in terminal? |
1,495,801,914,000 |
I am trying to use variables to construct the --command arg for gnome-terminal.
My shell script look like this:
buildId="aa-bb-cc"
versionCode="123456"
daily="daily"
gnome-terminal -e 'sh -c "while true; do
python acra.py $versionCode $buildId 0 $daily
sleep 600 # 10 mins
done"'
But when I run th... |
Assuming that gnome-terminal behaves like xterm:
gnome-terminal -e sh -c 'some commands here' sh "$variable1" "$variable2" "etc."
The strings at the end of the command line will be available inside the sh -c script as $1, $2, $3, etc. The first argument to the script, the string sh, will be placed in $0 and used in ... | How to pass variables to gnome-terminal command |
1,495,801,914,000 |
Given a text message, I need to programmatically generate a bash command to open terminal emulator and show this text in it.
For example, for HelloWorld input string I need to return the following output string:
gnome-terminal -e "$SHELL -c echo\ HelloWorld;exec\ $SHELL"
The problem is that my input messages may consi... |
Quote the string, and you'll only have to backslash the quotes. If you quote twice, you need to escape both quote types.
Update: Gnome terminal needs triple quoting. Just escape the single quotes twice in the string, and use quoted single quotes around the inserted string. You need to backslash the backslashes in the ... | Escaping in bash |
1,495,801,914,000 |
I'm looking to run two independent parallel gnome-terminal windows with some parameters, from one shell script.
So far I've got this:
#!/bin/sh
gnome-terminal -e window1.sh &
gnome-terminal -e window2.sh &
exit
However, upon running this, the screens flash up and disappear. I was expecting both to appear, wait for ke... |
Run the script on its own.
./window1.sh
You will get this output.
window
press any key to continue./window1.sh: 3: read: arg count
This is because read is a bash command, but not a sh command.
| How to run two parallel gnome-terminal windows? |
1,495,801,914,000 |
For closing terminal without killing script/command we use & operator at last while calling command. Like:
gedit &
Here I used gedit as an example command
Same thing I want to do on another terminal (from current terminal). I am using following command(s) to run script/command onto another terminal:
gnome-terminal -... |
Combining nohup & screen, Al last I achieved what I want.
By kirill-a, the command : gnome-terminal -e "nohup bash gedit" is suggested.
However by using above command, I can run command and can close new opened gnome-terminal without killing running command, BUT I've to manually close new opened gnome-terminal window.... | Execute command in another terminal and closing it without killing command |
1,495,801,914,000 |
When I insert, for example, unix.stackexchange.com followed by Enter in terminal, I get the following error:
unix.stackexchange.com: command not found
This is ok and as I expected. But when I insert http://unix.stackexchange.com, I get another error message:
bash: http://unix.stackexchange.com: No such file or directo... |
As also ewhac pointed out, the error messages differ because the latter command line contains forward slashes (/), which causes your shell to interpret it as a file path.
Both errors originate from your shell, which in this case is bash (which is evident from the second error message).
More specifically, the first err... | Different error messages when using different strings in terminal |
1,495,801,914,000 |
I'm trying to get gnome-terminal to run on my system.
I've tried various installation methods...
Unfortunately, all of them come up BLANK.
They also don't accept input.
Wondering if anyone has any knowledge or ideas about this?
Here is a screenshot:
|
I had the same problem this morning. Chances are good that your profile is displaying black text on a black background.
Edit -> Profile Preferences -> (change color scheme.)
| gnome-terminal comes up blank |
1,495,801,914,000 |
I'm new to dwm (suckless.org) and also to GNU/Linux. I know a bit of the C language but don't really understand the config.h file.
SYS-CONFIG
I use Ubuntu 18.04 (installed with netinstaller + vanilla gnome...) and recently I wanted to try dwm 6.2.
HOW I INSTALLED IT
I downloaded the tar.gz file from the suckless.org w... |
Here is the problem:
static const char *termcmd[] = { "st", NULL };
The dwm build from suckless.org uses st as default terminal emulator therefore Alt+Shift+Enter is mapped to st which is not installed on your system. You need to change st to gnome-terminal or whatever other terminal emulator you want (and which i... | The default keybinding for opening a terminal in dwm does not work |
1,495,801,914,000 |
Some how, gnome-terminal able to get some environment which are not set in any of shell init files(sytem-wide/user-level)
env -i DISPLAY=":1.0" /usr/bin/gnome-terminal
$> env gives many other variables, where as xterm only give a few as below
env -i DISPLAY=":1.0" /usr/bin/xterm
$> env
DISPLAY=:1.0
TERM=xterm
WINDOWI... |
After debugging, got to know that
gnome-terminal inherits environment from it's parent Xvnc process
Xvnc in-turn gets environment from terminal on which vncserver was executed to create VNC.
So, to ensure VNC with clean environment. I have created it with command
env -i PATH="/usr/bin:/bin" HOME="/home/bkatkam" vncser... | gnome-terminal inherits some environment even with 'env -i' on a vnc session |
1,495,801,914,000 |
I fiddled with this for a couple of hours and couldn't find a solution...
Lets say I print this to a terminal (tested with bash and zsh in a genome-terminal in a VM running a fresh Linux Mint):
python3
print("\033[41mFOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO\033[0m BAR")
\033[41m enables a red background for th... |
iTerm2 on Mac OS X also does this when the colored text wraps past the available columns. One workaround may be to erase to the end-of-the-line after writing BAR via the CSI Ps K Erase in Line (EL) control sequence, e.g.
$ perl -e 'print "\e[41m".("a"x120)."\e[0mBAR\e[K"'
| Colored terminal output ignores reset sequence. Color continues |
1,495,801,914,000 |
In gnome-terminal, lxterminal and mlterm under Lubuntu 16.04, when pressing PgUp nothing happens, and the symbol ~ appears when PgDn is pressed, but the information won't scroll up or down. This is not the case for navigators and text editors, where they behave as expected. How can this be changed for a terminal?
|
It's a problem that has to be solved for each particular terminal. In the case of mlterm you add these lines to the shortcuts file ~/.mlterm/key:
Prior=PAGE_UP
Next=PAGE_DOWN
As for gnome-terminal and lxterminal, the preferences window does not allow to change this.
| How to scroll up and down in a terminal with PgUp and PgDn keys? |
1,495,801,914,000 |
I would like to add a command to my .bashrc file (or corresponding) in such a way that the command, in this case setterm --foreground red, is only read when I start the virtual terminal ctrl + alt + F1 - 6 and not the Gnome Terminal et al.
Is this possible?
If so, how?
|
if [ "$TERM" = "linux" ]; then
# Stuff to do only if running in a virtual console
setterm --foreground red
fi
| Bashrc for Virtual Terminal |
1,495,801,914,000 |
I gather all my local ip using arp-scan , Then filter particular system ip by mac address, And connect automatically to that particular system using ssh. I tried the following commands through piping
sudo arp-scan --localnet|grep 10|cut -c1-12|xargs ssh myuser@
Here 1c in grep is the mac address starting letter of ... |
Use xargs Replacement String Flag
You need to use the replacement string flag for xargs. For example, assuming the rest of your pipeline works as intended:
sudo arp-scan --localnet | grep 10 | cut -c1-12 | xargs -I{} -n1 ssh -tt myuser@{}
Note that both the xargs and ssh commands need some additional flags to work pr... | How to ip throught piping? |
1,495,801,914,000 |
I'm on an atom-powered (read: under-powered) netbook, which is nevertheless sufficient for most of my needs (it has good graphical acceleration for videos and 2D graphics such as the browser, and terminal operations with sh are inherently quite fast).
The biggest pain point of the setup is that all gtk-based terminal ... |
It depends on how terminal works, really. Some terminals aim to be lightweight, others do not. Some features require more overhead which can have visible impact(this is what you've encountered).
You may want to look for lightweight terminal emulators, try out few and pick the one that fits you best. I've personally us... | Slow gtk-based terminal emulators vs konsole and xterm |
1,495,801,914,000 |
I had installed a proxy software (cntlm) on my machine. It sets the environment variable http_proxy to 127.0.0.1:3128. Now I've uninstalled the program using apt-get remove cntlm.
However I'm able to see the http_proxy variable:
env | grep proxy
Gives me:
http_proxy=http://127.0.0.1:3128/
https_proxy=http://127.0.0... |
Running gsettings reset-recursively org.gnome.system.proxy fixed the problem.
There are two ways to define proxy settings:
Manually set the http_proxy environment variable in /etc/environment or your bash profile.
Define it in gnome system settings.
I had not set the environment variable manually which is why recurs... | Magic environment variables in gnome-terminal |
1,495,801,914,000 |
I've installed and run virtuarenvwrapper.sh to try to configure an alternate version of python on my system. This script has placed somewhere a series of commands that are now executed whenever I open gnome-terminal. Now, when I open a terminal I see:
bash: which: command not found...
bash: -m: command not found...
... |
The culprit was a symlink at /etc/profile.d/virtualenvwrapper.sh
The solution was to either remove that symlink or, better, uninstall the package:
yum remove python-virtualenvwrapper
| How do I remove the new environment commands that were created by the virtualenvwrapper script? |
1,495,801,914,000 |
If I am in a Linux virtual terminal (pressing Control-Alt-F1 on Ubuntu), and I use the command cacafire, I get the flames inside the actual terminal.
However, if I am in the gnome environment, and I start a terminal and run cacafire, I get a separate window popping up that displays the fire.
How can I force it to disp... |
It's man doesn't seem to have a option to control it. But you can use DISPLAY= cacafire and cacafire wouldn't know how to connect to your X server; then fallback to running in the current terminal.
| How can I get `cacafire` to show up in the original gnome-terminal, instead of a separate window? |
1,495,801,914,000 |
I wrote the following
#!/bin/bash
cd ~/bin/red5-1.0.0
gnome-terminal --working-directory=. -x red5.sh
red5.sh is the script to run (this is java written media server).
My script above opens new terminal but with error message
There was an error creating the child process for this terminal
Failed to execute child pro... |
The working directory does not affect your $PATH1, thus I guess what's happening can be understood if you do the same thing in a terminal, i.e.
$ cd ~/bin/red5-1.0.0
$ red5.sh
will not work either; what does work is one of the following:
$ cd ~/bin/red5-1.0.0
$ ./red5.sh # note the relative path to the scr... | How to create a script, which runs another script in separate terminal window and does not wait? |
1,495,801,914,000 |
I'm setting up XMonad within Linux Mint, and I've been able to remove the menubar and the scrollbar from my terminal windows, but I can't get rid of the small resizing nub in the bottom right corner. Here's a screenshot:
I think it's feature of Linux Mint (maybe?), but it serves no purpose because of the nature of XM... |
The gnome-terminal program sticks that nub there itself. It started doing that sometime during the transition to Gnome3, and when I realized it wasn't my window manager or desktop environment but the program itself, I was annoyed enough that I looked for an alternative.
Roxterm is currently my terminal emulator of ch... | How do I get rid of the small nub in the bottom right corner of my terminal? |
1,495,801,914,000 |
Some times when I am compiling a script the parameters are so long that they cover many lines in the terminal. When I resize the terminal in order to read more clearly, the content does not automatically re-adjust to the size of the terminal.
Is there a way of telling the terminal to re-format its output depending on ... |
There is no way to "tell a terminal" to "reformat" the scrollback buffer. The buffer is past. That said, you've got several possible scenarios:
The text you want to re-adjust is not being controlled by any application and is, in fact, in the buffer. In this case, like @SuperBOB mentioned above, several terminal emula... | How to re-adjust content while resizing gnome-terminal? |
1,495,801,914,000 |
Hi I am trying to direct output of my script to a file
My script is
gnome-terminal -- ./program +config
I have consulted some post and have tried
gnome-terminal -- "./program +config 2>&1 | tee output.txt"
or
gnome-terminal -- 'bash -c "./program +config 2>&1 | tee output.txt"'
and many other variations but they d... |
Correct Answer
It's very likely you don't need to use gnome-terminal to achieve whatever you're doing. There most likely is a better way to capture the output of ./program than running it in gnome-terminal.
You still want to use gnome-terminal
Unlike other terminals (like Konsole or xterm) I couldn't find any option t... | Direct output from gnome-terminal to text file |
1,495,801,914,000 |
With the mouse, terminal tabs can be detached by highlighting a tab, right-clicking and selecting the said option. I'm more or less a keyboard-only user and thus this feature is inaccessible to me at the time.
|
Depends on which gnome-terminal version you're using and what settings you use but Detach Current Tab doesn't have a bound keyboard shortcut.
However, you can bind one manually in
Rocky 9: Settings > Configure Keyboard Shortcuts > Detach Current Tab
Ubuntu: Edit > Preferences > Shortcuts > Detach Tab
The actual locati... | How to detach a session in Gnome terminal with keyboard? |
1,495,801,914,000 |
I’m running Atom on Manjaro Linux. And I installed Platformio Ide Terminal. Everything is working fine, except the Zsh shell icons. None of the icons is getting displayed. Only boxes like you can see in the screenshot. I’m running Gnome Desktop Environment. Everything is fine in Zsh shell I get in the gnome-terminal
... |
You need to use a font that contains all the icons you want. If in doubt, gnome-terminal's profile settings show you the font it uses.
Use that same font in your IDE. (I don't know Atom Platformia IDE, but I bet the terminal font either configurable through some dialogue or just a setting in a CSS file somewhere.)
| Why Zsh terminal icons are not getting displayed in Atom Platformio Ide Terminal? |
1,495,801,914,000 |
I'm in Ubuntu 20.04LTS with GNOME Terminal 3.36.2. I would like to run two commands, executing the second only if the first succeeds:
proc.sh && results.sh
I would like to run this in a separate terminal window so I say:
gnome-terminal -e 'proc.sh && results.sh'
This works. But I get a warning that -e is deprecated,... |
The hint is in the manual:
--command, -e=COMMAND
Split the argument to this option into a program and arguments in the same way a shell would, and execute the resulting command-line inside the terminal.
This option is deprecated. Instead, use -- to terminate the options, and put the program and arguments to execute a... | How to open gnome-terminal and run a compound command |
1,495,801,914,000 |
I am learning how to use ncurses, and I have noticed that for some reason, in gnome-terminal (on arch) ncurses window borders are not being displayed properly. It seems to work fine in xterm.
Not sure what could be causing this, and I haven't had any luck googling. Any ideas?
|
Fixed it, changing $TERM to "gnome" solved the problem. See https://bbs.archlinux.org/viewtopic.php?pid=1738655#p1738655
| Ncurses not displaying window border correctly in gnome-terminal |
1,495,801,914,000 |
We have following script (in CentoS 6) in our lab to execute our applications with its output one-by-one.
cd A/
sleep 1
gnome-terminal -t A --tab -e "./app1"
cd ../B/
sleep 1
gnome-terminal -t b --tab -e "./app2"
sleep 2
gnome-terminal -t c --tab -e "./app3"
This is working perfect.
Now what we want is to generate c... |
There are three ways of doing this.
Use a proper chain-loading command.
Instead of using the shell built-in command ulimit, use commands that were developed for this purpose, from the various daemontools-family toolsets:
softlimit from daemontools
softlimit from freedt
softlimit from daemontools-encore
softlimit from... | How to run ulimit in a script with other application |
1,495,801,914,000 |
If I start a terminal (any terminal, for example urxvt) like urxvt -e sleep 5, then a new terminal is launched but after 5 seconds the terminal closes, because the sleep program has ended. How can I start a terminal with a program on the command line, but have the terminal stay alive after that process has ended?
In ... |
The terminal (tmux) closes when it's executed the command you told it to execute. If you want to execute top and then an interactive shell, you need to tell it to do that. Combining commands is the job of the shell, so run an intermediate shell (which isn't interactive) and tell it to run the two commands in successio... | How to prevent the terminal from closing when the program it was started with ends? [duplicate] |
1,495,801,914,000 |
Trying here to set a c++ application to run on gnome-terminal instead of eclipse console from within eclipse itself.
Already done it with Java, but with c++ the menus are different.
|
That's it, finally managed to enable it, took 6 hours researching. Got it with help from https://www.eclipse.org/forums/index.php/t/305157/.
Entered in Run Configuration, in perspective and set:
At Main tab:
Project: nameofproject
C/C++ Application: /usr/bin/gnome-terminal
Arguments tab:
Program arguments: -e ./name... | How can I run a c++ application on gnome-terminal directly from Eclipse instead of its console? |
1,495,801,914,000 |
I've got this file:
0 1 2 3 4 5 6 7 8 9 a b c d e f
__________________________________
20 | ! " # $ % & ' ( ) * + , - . / |
30 |0 1 2 3 4 5 6 7 8 9 : ; < = > ? |
40 |@ A B C D E F G H I J K L M N O |
50 |P Q R S T U V W X Y Z [ \ ] ^ _ |
60 |` a b c d e f g h i j k l m n o |
70 |p q r s t u v w x y z { | } ~ ... |
That is not "ASCII", but appears to be ISO-8859-1 (also referred to as Latin-1). You can either
set your locale to something with that encoding, e.g., en_US (depending on what your locale support is), or
convert the file into UTF-8
You can use iconv to do this conversion, e.g., one of these:
iconv -f ISO-8859-1 -t ... | GNOME Terminal extended ascii support |
1,495,801,914,000 |
I am trying to made a program to experiment bitwise operators. The name of the program is bitwise.c
Before compiling the program, I decided to look at the directory just in case I don't get the name wrong.
alexander@debian:~/Dropbox/src_code/C$ ls
bitwise bitwise.c bitwise.c~
What is bitwise.c~ and why is it hidden... |
This file is most likely created by the editor in which you have bitwise.c file open. Some editors create a temporary file while you are editing one, to track all the changes in case the program would crash without saving the file. The file should be gone once you stop editing the file.
| What is bitwise.c~? [duplicate] |
1,495,801,914,000 |
I've been trying to port my Windows .vimrc to Linux, to use on the command line (on gnome-terminal). Everything works fine, except for the colorscheme. It looks like it's loaded (:colorscheme returns solarized; :set t_Co returns t_Co=256 and :set background returns background=light), but it looks ugly on my terminal. ... |
I'm hazarding a guess that given the number of plugins you have related to colors that one is interfering. I'd comment these out and see if that resolves the issue:
" Bundle 'altercation/vim-colors-solarized'
" Bundle 'spf13/vim-colors'
" Bundle 'gorodinskiy/vim-coloresque'
" Bundle 'flazz/vim-colorschemes'
" Bundle '... | vim colors not automatically loaded (probable Vundle conflict) |
1,495,801,914,000 |
I enter a namespace with unshare --net --mount. When I run xterm in it, the shell in the windows that opens iherits the stuff from the namespace. When I run gnome-terminal it runs like I opened it from the desktop. Is there a way to run it "inside" the namespace?
|
As stated in this answer, running gnome-terminal --disable-factory makes it inherit the environment.
| Run gnome-terminal in namespace |
1,483,602,912,000 |
I have customized my command prompt to display current directory with some color and full path. Now I want to set title of my window to only directory name (not full path).
Can you please advise how to achieve that in korn shell. Thanks.
|
The way I found to achieve this is by creating an alias to the cd.
I put the following code inside the .profile file which did the trick
xcd() { cd $*; echo -ne "\033]0;$(basename $PWD)\007"; }
alias cd='xcd'
Thanks a lot to Kusalananda for the solution which I was actually looking for:
cd() { command cd "$@"; echo -... | How to change terminal title without changing the prompt string? |
1,483,602,912,000 |
I'm viewing a log file with "tail -f" using GNOME Terminal. The log has a lot of input constantly coming into it, and what I find happens is that I scroll up to a previous section, and I'm reading it, and then the screen goes black, or gets replaced with text which is further down the file.
I don't know if this is t... |
GNOME-Terminal's scrollback setting is under Edit->Preferences->Profiles->Edit->Scrolling. The default value appears to be 8,192 lines on my install, but you can set it to what you want or disable the limit entirely.
You can also use a pager such as less for the same purpose:
tail -f file | less
Note that storing unl... | "tail -f" in GNOME Terminal - scrolling to previous lines breaks if there's been lots of subsequent output |
1,483,602,912,000 |
I do run reset quite frequently while using GNOME Terminal. I've been trying to find a way to do (exactly) that using a shortcut. Reset and Clear (Ctrl + K) "resets" the terminal in a similar fashion, but I have to press Enter to get a prompt back.
Is there a way to get the behavior I'm describing?
I've tried iTerm 2... |
Add to your .bashrc:
bind -x '"\C-k":reset xterm'
Source the file:
$ . .bashrc
Now when you press Ctrl+k you should get the desired result.
| Obtain prompt right away after "reset and clear" in GNOME Terminal |
1,483,602,912,000 |
I made some animations and a game that are to be played in the terminal and they rely on the terminal only having 8 colors available. When I run them on a Terminal that has 16 colors available (particularly obvious when you run neofetch and see the colors available) they do not render properly at all.
Is there a quick... |
The problem was related to my frequent use of standend() to revert the drawing functions back to white on black text. For some reason this was not doing what I expected it to do on some distros. By explictly telling it to attron() a color pair that was defined explictly as black and white I solved the problem. This is... | Force Bash to use 8 colors |
1,483,602,912,000 |
Background: I SSH into my Linux machine via Putty on my Windows machine. I am running VcXsrv on Windows and forwarding X over SSH. This is all working as expected.
I am running into issues opening gnome-terminal on the new display when executing the commands through a bash script.
When I execute these commands direc... |
As discussed above: timing issue; introduce a sleep between the start of the terminal server and opening the new terminal. :)
| Unable to start new gnome terminals from shell script when remotely logging in through ssh |
1,483,602,912,000 |
I want to use a nautilus script to open a (gnome-) terminal with a tmux session (or start one) at a specific location and then execute some commands in this terminal (e.g. nvim $file).
I've encountered 2 problems however:
1: I have "Run a custom command instead of my shell" at "tmux", such that every terminal starts i... |
I've found solution relying heavily on tmux. Since tmux is working independently of the shell and prevails even after closing the windows, one can prepare a tmux session and then attach to it. The thing won't instantly exit, since the attachment command does not return unless you exit it.
This and the fact that you ca... | Bash script to start tmux and issue commands |
1,483,602,912,000 |
I just installed centos7.2 and am trying to set it up somewhat nicely.
I found an answer on here that shows how to set up some colours in the prompt. I am finding that, once dropped into the .bashrc, it works fine when using putty to ssh in and when I use the Konsole app. But, when I use Terminal (which is gnome ter... |
No, gnome-terminal is not meant to behave differently than the others, although the exact shade of the 16 base colors is somewhat different across all the terminal emulators. (Update based on JdeBP's comment below: in some palettes, e.g. Solarized, these colors are deliberately totally different.)
You should look arou... | gnome terminal colors |
1,483,602,912,000 |
This isn't so much a request for help as a curiosity of mine.
I wrote this script to quickly pop up four terminal sessions and fill my screen, since so many of my current systems have things that come in fours, and I'm a bit OC about terminal positioning if I'll be using them all heavily.
#!/bin/bash
#launch 4 termina... |
Tip: fire up all your gnome-terminals (all four), set them up just the way you want them, and then run:
gnome-terminal --save-config=$HOME/my4.term
Then modify your script to run:
#!/bin/bash
gnome-terminal --load-config=$HOME/my4.term
And use that to launch the four terminals. It will also save the working directo... | issue with how newly made gnome launchers work vs launchers rebuilt after a system boot. (title change for clarity) |
1,483,602,912,000 |
I use gnome-terminal on Ubuntu, and when the window is small (not maximized or fullscreen), my tmux statusline and the ZSH right prompt both stretch to the extreme right of the window, which is perfect.
However, when maximized or fullscreen, there is a small but annoying gap at the right edge of the screen.
Is there... |
First of all check if setting variable ZLE_RPROMPT_INDENT to 0 helps. The default is 1.
From zsh manual:
ZLE_RPROMPT_INDENT
If set, used to give the indentation between the right hand side of the right prompt in the line editor as given by RPS1 or RPROMPT and the right hand side of the screen. If not set, the value ... | gnome-terminal : small gap at right side of screen (Ubuntu) |
1,483,602,912,000 |
If I ssh to a machine and:
man df
I see this:
I'm using GNOME-terminal/Ubuntu 10.04 LTS.
So somehow the terminal is messed up, when I want to see the ex.: man pages..
How can I fix this?
|
It's failing to show underlined and bold text. This is sometimes related to the color scheme in use, as it's inherited from the system theme by default. In gnome-terminal, go to Edit -> Profile Preferences -> Colors. Uncheck "Use colors from system theme" and pick one of the built-in schemes instead. Works for me!... | GNOME-TERMINAL messed up |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.