Terminal description & keyboard layout and font

Terminal description & keyboard layout and font

I know that there is a term variable pointing to the appropriate terminfo description describing current terminal settings. My question is where in the terminfo descriptor (displaying by just terminfo cmd) are the current keyboard layout & font defined (which we can be set by loadkeys & setfont).

答え1

terminfo doesn't define keyboard layout, but does list the values of special keys (function-keys, cursor-keys and some keypad-keys) which are commonly found on terminal keyboards.

The key names (shown in the output of infocmp as names beginning with k) are not the same as those used for loadkeys. Some are similar, e.g., F11 for kf11, but not all.

Finally, terminfo doesn't help (much) with the font, since it only tells (sometimes...) how to switch between fonts, e.g., rarely-used selections on the Linux console.

関連情報