← Back to team overview

maria-developers team mailing list archive

FYI: usage of F1-F12 keys in mysql client

 

By adding something like this in your .inputrc:

$if MYSQL
"\033OP": "use information_schema; show tables;\n"
"\033OQ": "use test;\n"
"\033OR": "select * from "
"\033OS": "show columns from "
"\033[15~":
"\033[17~":
"\033[18~":
"\033[19~":
"\033[20~":
"\033[21~":
"\033[23~":
"\033[24~":
$endif

you may have F1-F12 keys utilized. Different terminals have different
codes (.inputrc doesn't support capability names unfortunately), so
you'll have to find out your own codes via tack utiity. With strong
will and enough patience it is possible to add Ctrl+, Alt+, Shift+ and
their combinations as well.

This works only with MDEV-17609 patch.

-- 
All the best,

Aleksey Midenkov
@midenok