0

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

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.

2
  • "(arg: 3)" 5 more to go... – Dev Feb 8 '17 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 '17 at 14:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.