Hacker News new | ask | show | jobs
by akira2501 753 days ago
> The vast majority of terminals will send the same sequences.

Not for function keys in particular not for the modifiers. Just take a look at the output of 'infocmp' between your favorite terminal and your favorite terminal with tmux running in it or even just a different terminal itself.

Another issue is knowing capabilities, total number of colors, allowed attributes, default state of attributes, allowed actions when certain attributes are enabled or disabled.

There's about half of the definitions which are common across almost all modern terminals, and the other half are unique and describe unique implementation details of the emulator.

1 comments

There aren't that many conflicts, really. Is the up arrow escOA or esc[A? Doesn't matter. If you're reading from terminal, just map both to up.