Linked Questions
72 questions linked to/from How do keyboard input and text output work?
7
votes
2
answers
3k
views
Can I set my local machine's terminal colors to use those of the machine I ssh into?
I have a color scheme that I like for when I'm in a terminal, but I ssh into the machine I work on from multiple sources (locally, PuTTY, my netbook, etc.) and I want to maintain the same color scheme ...
4
votes
2
answers
4k
views
Why does "shift-tab" result in "Escape" in the terminal?
I just noticed this by accident.
I use the vi readline mode (run set -o vi in bash) so it is particularly noticeable; in emacs readline mode I don't think Esc does anything, but in vi mode it exits ...
5
votes
3
answers
6k
views
Why I can't send escape sequences from keyboard, but can do it from another tty?
I am trying to understand how terminal works by doing different tricks, like writing from one tty to another, changing settings tty1 from tty2, etc. Also, I am trying to change a color by sending ...
3
votes
1
answer
3k
views
Does keyboard input always go through a controlling terminal?
Am I right that all input typed from the keyboard goes through a controlling terminal? That means that if a program is run without a controlling terminal, it won't be able to receive any user input. ...
4
votes
2
answers
5k
views
How to bind Ctrl+arrows/backspace/del to the Readline commands
I'm trying to make the following bindings in my ~/.inputrc:
(Ctrl+Del): kill-word
(Ctrl+Backspace): backward-kill-word
(Ctrl+forward arrow): forward-word
(Ctrl+back arrow): backward-word
(Home): ...
1
vote
2
answers
4k
views
Keyboard input encoding
I am trying to learn the basics of Unicode and UTF-8, and it so going very smoothly so far. I know that it is possible to chose the encoding of a file when opening it.
When I type text using the ...
4
votes
2
answers
2k
views
how is a keyboard shortcut given to the correct program?
in Ubuntu (or for that matter most other linux distros), I could use the shortcut ctrl+t to open a new tab (in firefox or similar), or I could use alt+tab to make unity switch highlighted window, or I ...
4
votes
2
answers
4k
views
bash - wrong key sequence bindings with control+alt+space
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 ...
4
votes
2
answers
3k
views
Can I duplicate an input file descriptor and use it for writing data?
The below command makes a copy of the input file descriptor and use the duplicate file descriptor for writing data from the echo command on to the terminal.
sh-4.2$ exec 6<&0
sh-4.2$ echo "...
4
votes
2
answers
1k
views
How terminal emulators handle Shift+FKeys?
This question is inspired by another question on vi.SE. There, OP has issues with the Shift+F8 key combination when running vim inside urxvt. That key combination will never work in vim because the ...
5
votes
1
answer
2k
views
how to proxy key presses
How can I build a component that sits between the keyboard and applications that captures all key presses and emits it's own key press signals. The emitted signals won't necessarily be 1-to-1 with ...
2
votes
1
answer
2k
views
Why Alt+Backspace is bound to delete-word in Debian's gnome-terminal?
I am used to ctrl+backspace in Ubuntu and OS X.
I want to understand this because it helps me how the system is designed and built. Still, you have the emacs keybindings like ctrl+u, ... in Terminal. ...
7
votes
1
answer
1k
views
Does gnome-terminal have an equivalent for xterm's modifyOtherKeys?
xterm has a modifyOtherKeys option that tells it to construct an escape sequence for various key combinations that are normally not available. That option can be enabled in .Xdefaults, or with a ...
1
vote
1
answer
1k
views
What part(s) of the TTY subsystem control the active /dev/ttyN (TTY device driver N)? [closed]
The TTY subsystem contains the TTY driver, line discipline(s) and hardware drivers (keyboard driver, display driver). Let's say I use a virtual terminal/console. So, my current session uses /dev/...
6
votes
1
answer
443
views
How to make a comprehensive set of possibilities for defining GNU-screen "command characters"?
I want to somehow generate a comprehensive "menu" of all possible ways to set up the GNU-screen "command characters" for a standard, off-the-shelf "US keyboard" and a specific terminal emulator, say ...