Through the Windows Command Prompt, pressing a function key just sends an odd string of characters to the bash prompt. But I need to send the actual function key to bash, so I can navigate byobu. How do I do this?

1 Answer 1


That odd series of characters typically is the function key, but you can also fake it with Meta shortcuts and the fact that an escape prefix makes the next key meta. Press Esc, and then 1 to send M-1 which is generally parsed as F1 in many commandline tools, including byobu.

  • "(arg: 3)" 5 more to go...
    – Dev
    Feb 8, 2017 at 18:38
  • "Faking it" should be entirely unnecessary if TERM is set correctly. Setting TERM correctly is the right course of action.
    – JdeBP
    Feb 9, 2017 at 14:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .