Linked Questions

1442
votes
10answers
424k views

What is the exact difference between a 'terminal', a 'shell', a 'tty' and a 'console'?

I think these terms almost refer to the same thing, when used loosely: terminal shell tty console What exactly does each of these terms refer to?
78
votes
4answers
20k views

What are the responsibilities of each Pseudo-Terminal (PTY) component (software, master side, slave side)?

I am trying to figure out how a tty works1 (the work-flow and responsibilities of each elements). I have read several interesting articles about it, but there are still some blurry areas. This is ...
56
votes
2answers
16k views

Documentation on LESS_TERMCAP_* variables?

I see these pretty colors in manpages viewed with less when setting a bunch of these variables. What do they mean, where is the documentation? Is this interpreted by less or termcap? screenshot
28
votes
2answers
33k views

How do mouse events work in linux?

This is mostly out of curiosity, I'm trying to understand how event handling works on a low level, so please don't reference me to a software that'll do it for me. If for example I want to write a ...
26
votes
10answers
46k views

How to stop cursor from blinking

How do I make the cursor stop blinking when in a TTY? (or anywhere else). BONUS Points for one universal setting that stops the cursor blinking almost everywhere.
24
votes
6answers
31k views

key bindings table?

Do we have a key bindings table that translates all the various ways of referring to a key press? I'm using zsh, but I presume that if there was such a table it would work for any shell. The reason I ...
23
votes
3answers
2k views

What does the ^ character mean in sequences like ^X^I?

I was reading this message from the zsh mailing list about key bindings and I'd like to know which key I need to press: ^X^I (I think Ctrl-X Ctrl-I, the capital X and I) ^[^@ (I think Ctrl-Esc-@ ??) ^...
19
votes
3answers
17k views

How does keyboard mapping work in Linux? [duplicate]

I have always had trouble with understanding the way keyboard mapping and related things are put together in Linux. When things break, it makes my blood boil if I have to sift through endless ...
18
votes
1answer
27k views

How to get all my keys to send keycodes

I'm using Gentoo with XFCE. I have a logitech K350 keyboard, all but a few of the keys work as expected but there is one specific key that I want to use but when I run showkey no key codes are being ...
15
votes
2answers
23k views

/dev/input - What exactly is this?

I was curious about how hardware interacted with the OS and came across this post: How do keyboard input and text output work? It seems like a lot of the magic happens in the /dev/input directory. I ...
13
votes
1answer
4k views

Relationship of keyboard layout and xmodmap

I'm using Xubuntu. Before login I can choose a keyboard layout. I'm using xmodmap for remapping some keys. I'm interested in two things: How the state of keyboard mapping changes (a) when I turn the ...
10
votes
5answers
13k views

Why is Terminal automatically executing my command after pasting text?

This happens whether I use ctrl+shift+v or paste from the right-click menu. What could be done to prevent this behavior?
9
votes
2answers
3k views

Why can't Emacs running in a terminal distinguish Ctrl+; from ";"?

This question arose from my previous question on emacs beta. In short I want to bind C-; to an Emacs functions in a terminal, but it seems that something captures this key before it reaches Emacs: ...
9
votes
3answers
4k views

Detecting shift + keyup/down in the terminal

How do I do this? I want a terminal menu where shift+up or shift+down selects multiple lines. ncurses seems to have problems. I don't necessarily need an advanced terminal library. I just want to ...
8
votes
1answer
9k views

How does the Linux kernel handle keyboards inputs/outputs?

I don't understand virtual terminal devices (eg. /dev/tty1), but I know I can "switch" to tty1 if I press ctrl + alt + f1. I've got a custom keyboard layout, which is in /usr/share/X11/xkb/symbols/us ...

15 30 50 per page
1
2 3 4 5