Questions tagged [terminal]

A terminal is an environment for text input/output. Inside the terminal, one runs command-line and text mode programs (including shells).

617 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
9
votes
1answer
715 views

Is it possible to send data to the the shell of another pseudo-terminal?

This image shows how pseudo-terminals work: If I have two terminal emulators open, I can send the string "Hello" from the first terminal emulator to the second terminal emulator: echo "Hello" > /...
5
votes
0answers
92 views

Pasting into terminal including comments issue

This is somehow a follow-up to my last question: Pasting multiple commands into terminal stops at user input Pasting the following to the terminal works as expected: ( echo test1 # some comment echo ...
5
votes
0answers
501 views

How to change secondary font used by gnome terminal?

Some environment infos: Arch Linux KDE Plasma 5.10.4 GNOME Terminal 3.24.2 Using VTE version 0.48.3 +GNUTLS I set to use Ubuntu Mono Regular font in gnome terminal profile. And Latin characters do ...
5
votes
0answers
850 views

How to make fontconfig fallback work?

I'm trying to use powerline fonts, but most of the powerline fonts don't look too good in my terminal. Instead I'd like to use a regular non-Powerline font, and specify a fallback Powerline font for ...
5
votes
1answer
894 views

how to make less -S not take up the entire screen

suppose I have this: cat new_file.txt | less -FRSX Then suppose I press the right button in order to scroll to the right This will cause the contents of new_file.txt to move to the top of the ...
4
votes
0answers
107 views

For a process, what are the differences between a controlling terminal and non-controlling terminal?

For a process, what are the differences between a controlling terminal and non-controlling terminal? If a process calls open() on a terminal's device file, will the terminal become the controlling ...
4
votes
1answer
313 views

Switching between two framebuffer programs

I have two programs (mplayer and a custom java application) which both present GUI using framebuffers. They run in separate processes. I want to be able to switch from one program to the other without ...
4
votes
0answers
459 views

Getting Alt to Work in the Terminal with Tmux and Vim

I'm trying to make Alt + h/j/k/l switch tmux panes and vim windows. Yet for some reason my terminal (xfce4-terminal) and and Alt do not play nicely with each other. I got Alt + h/j/k/l to switch ...
4
votes
1answer
523 views

Eliminating trailing space on wrapped lines in a terminal

In some terminal sessions, a space is inserted where long lines wrap. When copying multiple lines with a mouse, the inserted trailing space on each line is included. When pasted, one must manually ...
4
votes
1answer
93 views

Parent restarted by child doesn't respond to CTRL-C

I wrote a program. It starts a process (call it A) that spawns a child process (call it D) that shutdowns and restarts A. Problem is, now I can't kill A nicely from the terminal (ie. CTRL-C isn't ...
4
votes
1answer
1k views

Use Scroll Lock key for terminal flow control

So, my Scroll Lock key doesn't have much use, while I keep hitting Ctrl+S with no intention of stopping control flow. I know how to disable Ctrl+S from locking scroll (stty -ixon), but can I use ...
4
votes
0answers
159 views

Is it possible to save the state of open terminals?

When working on certain projects, I routinely open a number of terminals, navigate each of them to various directories and resize and position them on my desktop. Is there any way to save this ...
4
votes
0answers
920 views

Slow terminal print out

Just installed (netinstall) debian wheezy on a second machine newer machine however the terminal print out is noticeable slower than on the old machine although the new have faster CPU, RAM and HDD (...
4
votes
1answer
418 views

vi setting for new window

I'm using Terminator for my terminal emulator. Whenever I open it, the initial workspace comes with the setting I defined in the config file. But whenever I split the workspace, the new workspace ...
3
votes
2answers
39 views

Is there a way to make vim run the “make” command in another terminal window?

I mainly use vim as an editor for C/C++ programming. Unfortunately, I'm not quite satisfied with the way my build process works. I know that it's possible to type in (or map to a key) :make to run the ...
3
votes
3answers
20 views

Avoid .desktop terminal starter to be in same group as other terminal windows in (gnome and other) window managers

I made a custom .desktop file and put it into .local/share/applications. Now I can run it from desktop menus like gnome shell. The content is: [Desktop Entry] Name=Todovim GenericName=Todovim Comment=...
3
votes
2answers
35 views

Logging shell sessions encrypted?

I log all my shell activity using script, but am worried that there are quite a few passwords and other secret stuff in these log files. Does anybody know of any way of logging the shell sessions in ...
3
votes
0answers
53 views

How to avoid bash from accepting non-printable characters at the prompt?

I recently ran a command at my shell: # yum whatprovides xdotool Error: No Matches found However, my package manager actually has this package: # yum whatprovides xdotool xdotool-1:3.20150503.1-7....
3
votes
1answer
440 views

What exactly tty line discipline does with input from pty slave device?

I know that tty line discipline processes special characters (such as ^C, ^? and etc), but it is only about input from pty master device. But what about input from pty slave device? What tty line ...
3
votes
1answer
140 views

Lock Virtual Terminals when resuming

Many screen lockers (mine is i3lock) do not block access to other Virtual Terminals. This means that, if I leave a session opened in some VT, then even when the desktop is locked (for example when ...
3
votes
0answers
637 views

Detect terminal font

I am running Debian live XFCE, and I cannot seem to determine the font used by the Terminal. I went to Edit, Preferences, Appearance and it just says "Monospace Regular". Then I did cat /etc/default/...
3
votes
0answers
40 views

Printing the screen (text-mode) to paper without drivers?

I am currently working on a machine that has entered Emergency Mode for CentOS 7.6. To give myself a hard copy of logs and messages that appear on the screen (which are not from a file), I will take ...
3
votes
0answers
157 views

Show colors from child shell in parent shell

I solved this once, but I cannot remember how I did! In my child process, I have this: echo -e "some control chars" In my parent process, it will show the plain string, without any terminal styling....
3
votes
0answers
238 views

Hang applications when pasting from terminal

I am encountering a very weird bug. Sometimes, when I copy contents from the terminal and paste them elsewhere (e.g. in a text editor, in a browser tab) it hangs that application or browser tab. I try ...
3
votes
0answers
936 views

Open Google Chrome URLs from terminal

I was trying to open chrome://version/ from terminal using /opt/google/chrome/chrome chrome://version/ command. While it worked for /opt/google/chrome/chrome google.com it just open a new window for ...
3
votes
0answers
103 views

Detecting intervals of inactivity in the tty? (to simulate setterm --blank in fbterm)

setterm --blank n allows me to configure the virtual terminal to automatically shut the display off after n minutes of inactivity. Unfortunately, I spend all my time in fbterm, where setterm does not ...
3
votes
0answers
91 views

Mac Command + Up arrow functionality in Linux terminals?

I really like the the Command + Up/Down arrow keyboard shortcut in Mac terminal. It jumps between user commands typed in the terminal. Is there a similar function in linux terminals (like the GNOME ...
3
votes
0answers
353 views

Key combo to Abort accidental massive paste-into-terminal mistake

Due to the vagaries of virtualbox's clipboard I ended up pasting a huge logfile into the terminal instead of a small snippet of text. At this point, as the log file contains many newlines etc. it ...
3
votes
0answers
347 views

Control characters in a terminal with an active foreground process

Say I have a process running in a terminal in the foreground. While it is active I can type commands, hit return, and those will be executed once the process is done. Now say furthermore I would like ...
3
votes
0answers
508 views

What TERM types are still in common usage?

I want to support 95% of terminals on modern desktop machines (and terminal emulators on phones). Would supporting: xterm xterm-256color linux be sufficient? If not, which am I missing and where ...
3
votes
1answer
95 views

New (login) shells (window) opens at $HOME rather than $PWD (like they used to) on macOS. What gives?

Every time I open a new shell window, I'm brought to my home directory rather than the current directory I was in when I gave the command to open a new Terminal.app window. I am under the impression ...
3
votes
0answers
91 views

apt-get update updates every time

I just got Linux Mint 17.02 Cinnamon on my desktop, and the first time I ran sudo apt-get update it asked me something about interfering with files, but I told it to skip over some for whatever reason....
3
votes
3answers
378 views

Is there a terminal emulator available on Linux with a feature like “instant replay” in iterm2?

Or there any other way to do it? Googling brings up nothing ( I tried for years ). If you don't what iterm2 means by "instant replay": https://www.iterm2.com/features.html - basically like desktop ...
3
votes
0answers
493 views

reverse-i-search not showing all results compared to grep

I have always used reverse-i-search to grab my old commands, however for some reason its not returning all the results, at least the results I am expecting. desired command cat ~/.bash_history | ...
3
votes
0answers
548 views

ERROR Conterface Interface up or insufficient permissions: Too many open files in system

What does this mean 'Too many open files in system'. I have set ulimit -n 70000 so there isn't a limitation... [ERROR] Could not change MAC: interface up or insufficient permissions: Too many open ...
3
votes
0answers
7k views

Console: Can't type special characters (Ubuntu 14.04)

We have linux-based computers (Ubuntu 14.04.4) prepared by other company to use their software. We have root password. Those computers has no X Window System. Just consoles. There is a problem with ...
3
votes
0answers
705 views

Trying to download new Yakuake skins on my Arch/Gnome installation, but cannot

Currently I am using Arch Linux with a Gnome Desktop Environment. Now I have chosen to use Yakuake as my terminal. I'd like to use other skins that other people have put up online for my terminal. ...
3
votes
1answer
1k views

Changing fonts in the Mate terminal application

How would I change the font of my terminal in FreeBSD to the Noto Sans font? I am interested in Noto's support for a wide variety of Unicode characters. I downloaded the font using the package manager ...
3
votes
3answers
1k views

How do I remap newline and carriage return regardless of the terminal used to connect?

All my configuration is stored in my github account (https://github.com/mnebuerquo/dotfiles) so I can just clone my repo and run my install script and my home is configured to use all my tools. I ...
3
votes
0answers
334 views

Terminal pty name according to the source IP address

Is possible to have some Unix (either just in Linux) 'engine' mounting the pts'es (terminals) names according to their IP (socket) source ? In the past we could map each physical ports to its tty ...
3
votes
1answer
508 views

How should look script that launches program on startup

I want program rescuetime to be launched when computer loads. I've found that for this task script should be created in /etc/init.d/my_script and this lines to be entered to console chmod 755 /etc/...
3
votes
1answer
541 views

Add a static text layer/bar in terminal

I have a script that I use to automatically generate port forwards for SSH, since I am working in several terminal windows across different servers all day, and this checks whether or not the port has ...
3
votes
1answer
832 views

How to display a BASH X terminal and graphics in split view window?

I created a simple education tool using BASH script which runs in an X terminal. It displays a prompt, at which users can enter choices, as described in the Bash Guide for Beginners' Catching user ...
3
votes
1answer
2k views

Run vsim from dmenu — it only works when directly invoked in the terminal

Works: vsim, sh -c vsim Doesn't work: echo "vsim" | sh, echo "vsim" | xargs -I {} sh -c "{}" I want to run ModelSim (vsim) with dmenu, which is triggered using xbindkeys. Details vsim is a ...
3
votes
1answer
1k views

set tab color in a tabbed terminal emulator

I would like to set in my terminal emulator (i.e. gnome-terminal) the color of the tabs like in the osx's terminal emulator. Is there this feature in any of the linux terminal emulator plethora? EDIT:...
3
votes
1answer
206 views

Specify rows/columns of a fullscreen X terminal?

For presentations it would be convenient to have a X terminal which supports following workflow: make it fullscreen specify how many columns/rows should be displayed -> the terminal then ...
3
votes
0answers
153 views

No Login on created on tty2 to 6

On my Debian Linux no Login is possible on terminals 2 to 6. Login on 1 works fine, xorg-session with XDM and awesome wm works, too. The Error Message shown on these 5 screens is: systemd-logind[...]...
3
votes
0answers
2k views

How to change colors of all running urxvt instances?

I'm used to black background and light green text when working on my urxvt terminals. But sometimes, when I take my laptop outside, it becomes hard to read and I'd like to change the colors of all my ...
3
votes
0answers
457 views

Best way to view scripted session logs

I have aliases set up for SSH and minicom to call simple wrapper scripts which just ensure that I get a log of the session. The logs are stored in a specified directory, and named with a tag and a ...
3
votes
1answer
338 views

Coloring terminal commands (like LS and CD)

I do know I can color my terminal using the PS1 variable. Now, I would like to discover if there is a way to put some color on the bash commands I often use. I'd like to type, something like, "$ ls /...

1
2 3 4 5
13