minicom keyboard macros: pmac1 to pmac9 work but pmac10 does not work
Adam Lackorzynski
adam at os.inf.tu-dresden.de
Fri Aug 14 17:49:50 UTC 2015
On Fri Aug 14, 2015 at 09:56:49 -0700, Brolin Empey wrote:
> Adam Lackorzynski wrote:
> > On Tue Aug 04, 2015 at 10:13:52 -0700, Brolin Empey wrote:
> >> Adam Lackorzynski wrote:
> >>> Same for me. Investigating a bit, I see that ncurses/termap does not
> >>> return anything for the F10 key. I suspect the output of "infocmp -C"
> >>> does not return an entry for 'k0' for you as well?
> >>
> >> Correct:
> >
> > Ok, really strange. I guess we can only hard-code it if cannot be
> > retrieved from the available infos.
>
> I wonder how the Midnight Commander (mc) is able to use F10 (for its
> command to exit the application)?
>
> I/We should (try to) ask Thomas E. Dickey <dickey at invisible-island.net>
> or the ncurses mailing list about using F10 and higher F(unction) keys.
Good question & idea. A quick look in mc:
/* Broken terminfo and termcap databases on xterminals */
static key_define_t xterm_key_defines[] = {
{KEY_F (1), ESC_STR "OP", MCKEY_NOACTION},
{KEY_F (2), ESC_STR "OQ", MCKEY_NOACTION},
{KEY_F (3), ESC_STR "OR", MCKEY_NOACTION},
{KEY_F (4), ESC_STR "OS", MCKEY_NOACTION},
{KEY_F (1), ESC_STR "[11~", MCKEY_NOACTION},
{KEY_F (2), ESC_STR "[12~", MCKEY_NOACTION},
{KEY_F (3), ESC_STR "[13~", MCKEY_NOACTION},
{KEY_F (4), ESC_STR "[14~", MCKEY_NOACTION},
{KEY_F (5), ESC_STR "[15~", MCKEY_NOACTION},
{KEY_F (6), ESC_STR "[17~", MCKEY_NOACTION},
{KEY_F (7), ESC_STR "[18~", MCKEY_NOACTION},
{KEY_F (8), ESC_STR "[19~", MCKEY_NOACTION},
{KEY_F (9), ESC_STR "[20~", MCKEY_NOACTION},
{KEY_F (10), ESC_STR "[21~", MCKEY_NOACTION},
.... a lot more ...
So looks like it needs to be copied...
Adam
--
Adam adam at os.inf.tu-dresden.de
Lackorzynski http://os.inf.tu-dresden.de/~adam/
More information about the minicom-devel
mailing list