Нужно назначить определённой клавише (сканкоду или что на него назначено в раскладке) выполнение какой-то команды. Без иксов, в чистой консоли. Как это сделать?
>> Troubles begin as soon as there's one binding for a char
>> sequence, that gets even worse with "-x".
> Thanks, that worked.
> Now I need to re-read 'man bash' very carefully
> to try to understand why.
That's just a two step mapping.
First "clear" is mapped to the single character \201 (a
non-valid character in iso-8859-***, so there are few chances
that you may type it on keyboard) in the -x keymap, then <F1> is
mapped to that character.
The bug it works around is not described in the man page. There
are many others