Cannot make function key bindings (F1-F12) to work in byobu with tmux backend












4















I use Ubuntu 14.04 and have the latest version of byobu installed via apt-get. It has always worked flawlessly but started showing some weird behaviour just recently with no obvious reason. I use it with bash and tmux as the backend.



$ byobu --version
byobu version 5.74
tmux 1.8


First, byobu's function keys (F1-F12) stopped working.
Second, creating a new window (F2) or split (CTRL+F2), or leaving the opened session (CTRL+F6) also stopped working.



My $TERM environment variable is reset to screen every time I create a new window, split or similar. This causes errors when trying to open vim or even running clear, for example. Setting the variable manually (export TERM=xterm-color) and sourcing my .bashrc temporarily fixes the issue.



I deleted the byobu config dir (rm -rf ~/.byobu) following this question, ran byobu-config and changed the escape sequence to CTRL+A (the default), but when I open a new window or split the $TERM variable is still set to screen.



Possibly unrelated issue that appeared at the same time: when I type the up key in bash to scroll through the list of previous commands and try to edit the command line, it shows me as if what I type in replaces the existing characters (which is the expected behaviour when the insert key is active). Nevertheless, it just appears to do that: what actually happens in the background is the expected (it's just inserting whatever I am typing in where the cursor is).
This does not happen if I don't go to a previous command with the up key.



Still, I can't create a new window by typing F2 but I can create a new split with SHIFT+F2 or CTRL+F2.
I can create a new window, though, by typing CTRL+A c (I got the idea from this question).



How to make the keybindings for function keys (F1-F12) work as it used to (default when you press F1)?










share|improve this question





























    4















    I use Ubuntu 14.04 and have the latest version of byobu installed via apt-get. It has always worked flawlessly but started showing some weird behaviour just recently with no obvious reason. I use it with bash and tmux as the backend.



    $ byobu --version
    byobu version 5.74
    tmux 1.8


    First, byobu's function keys (F1-F12) stopped working.
    Second, creating a new window (F2) or split (CTRL+F2), or leaving the opened session (CTRL+F6) also stopped working.



    My $TERM environment variable is reset to screen every time I create a new window, split or similar. This causes errors when trying to open vim or even running clear, for example. Setting the variable manually (export TERM=xterm-color) and sourcing my .bashrc temporarily fixes the issue.



    I deleted the byobu config dir (rm -rf ~/.byobu) following this question, ran byobu-config and changed the escape sequence to CTRL+A (the default), but when I open a new window or split the $TERM variable is still set to screen.



    Possibly unrelated issue that appeared at the same time: when I type the up key in bash to scroll through the list of previous commands and try to edit the command line, it shows me as if what I type in replaces the existing characters (which is the expected behaviour when the insert key is active). Nevertheless, it just appears to do that: what actually happens in the background is the expected (it's just inserting whatever I am typing in where the cursor is).
    This does not happen if I don't go to a previous command with the up key.



    Still, I can't create a new window by typing F2 but I can create a new split with SHIFT+F2 or CTRL+F2.
    I can create a new window, though, by typing CTRL+A c (I got the idea from this question).



    How to make the keybindings for function keys (F1-F12) work as it used to (default when you press F1)?










    share|improve this question



























      4












      4








      4


      1






      I use Ubuntu 14.04 and have the latest version of byobu installed via apt-get. It has always worked flawlessly but started showing some weird behaviour just recently with no obvious reason. I use it with bash and tmux as the backend.



      $ byobu --version
      byobu version 5.74
      tmux 1.8


      First, byobu's function keys (F1-F12) stopped working.
      Second, creating a new window (F2) or split (CTRL+F2), or leaving the opened session (CTRL+F6) also stopped working.



      My $TERM environment variable is reset to screen every time I create a new window, split or similar. This causes errors when trying to open vim or even running clear, for example. Setting the variable manually (export TERM=xterm-color) and sourcing my .bashrc temporarily fixes the issue.



      I deleted the byobu config dir (rm -rf ~/.byobu) following this question, ran byobu-config and changed the escape sequence to CTRL+A (the default), but when I open a new window or split the $TERM variable is still set to screen.



      Possibly unrelated issue that appeared at the same time: when I type the up key in bash to scroll through the list of previous commands and try to edit the command line, it shows me as if what I type in replaces the existing characters (which is the expected behaviour when the insert key is active). Nevertheless, it just appears to do that: what actually happens in the background is the expected (it's just inserting whatever I am typing in where the cursor is).
      This does not happen if I don't go to a previous command with the up key.



      Still, I can't create a new window by typing F2 but I can create a new split with SHIFT+F2 or CTRL+F2.
      I can create a new window, though, by typing CTRL+A c (I got the idea from this question).



      How to make the keybindings for function keys (F1-F12) work as it used to (default when you press F1)?










      share|improve this question
















      I use Ubuntu 14.04 and have the latest version of byobu installed via apt-get. It has always worked flawlessly but started showing some weird behaviour just recently with no obvious reason. I use it with bash and tmux as the backend.



      $ byobu --version
      byobu version 5.74
      tmux 1.8


      First, byobu's function keys (F1-F12) stopped working.
      Second, creating a new window (F2) or split (CTRL+F2), or leaving the opened session (CTRL+F6) also stopped working.



      My $TERM environment variable is reset to screen every time I create a new window, split or similar. This causes errors when trying to open vim or even running clear, for example. Setting the variable manually (export TERM=xterm-color) and sourcing my .bashrc temporarily fixes the issue.



      I deleted the byobu config dir (rm -rf ~/.byobu) following this question, ran byobu-config and changed the escape sequence to CTRL+A (the default), but when I open a new window or split the $TERM variable is still set to screen.



      Possibly unrelated issue that appeared at the same time: when I type the up key in bash to scroll through the list of previous commands and try to edit the command line, it shows me as if what I type in replaces the existing characters (which is the expected behaviour when the insert key is active). Nevertheless, it just appears to do that: what actually happens in the background is the expected (it's just inserting whatever I am typing in where the cursor is).
      This does not happen if I don't go to a previous command with the up key.



      Still, I can't create a new window by typing F2 but I can create a new split with SHIFT+F2 or CTRL+F2.
      I can create a new window, though, by typing CTRL+A c (I got the idea from this question).



      How to make the keybindings for function keys (F1-F12) work as it used to (default when you press F1)?







      bash tmux key-binding byobu






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 20 '17 at 10:17









      Community

      1




      1










      asked Jul 8 '16 at 16:57









      I. CalixtoI. Calixto

      214




      214






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Since some keybindings work in your byobu and some do not, I think it could be an issue with your terminal emulator program.



          I just had that case:




          • When running byobu inside qterminal, it would not detect the F1 to F5 keybindings. F6 would work fine, though.


          • When running byobu inside gnome-terminal, everything was fine again.







          share|improve this answer
























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1098535%2fcannot-make-function-key-bindings-f1-f12-to-work-in-byobu-with-tmux-backend%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            Since some keybindings work in your byobu and some do not, I think it could be an issue with your terminal emulator program.



            I just had that case:




            • When running byobu inside qterminal, it would not detect the F1 to F5 keybindings. F6 would work fine, though.


            • When running byobu inside gnome-terminal, everything was fine again.







            share|improve this answer




























              0














              Since some keybindings work in your byobu and some do not, I think it could be an issue with your terminal emulator program.



              I just had that case:




              • When running byobu inside qterminal, it would not detect the F1 to F5 keybindings. F6 would work fine, though.


              • When running byobu inside gnome-terminal, everything was fine again.







              share|improve this answer


























                0












                0








                0







                Since some keybindings work in your byobu and some do not, I think it could be an issue with your terminal emulator program.



                I just had that case:




                • When running byobu inside qterminal, it would not detect the F1 to F5 keybindings. F6 would work fine, though.


                • When running byobu inside gnome-terminal, everything was fine again.







                share|improve this answer













                Since some keybindings work in your byobu and some do not, I think it could be an issue with your terminal emulator program.



                I just had that case:




                • When running byobu inside qterminal, it would not detect the F1 to F5 keybindings. F6 would work fine, though.


                • When running byobu inside gnome-terminal, everything was fine again.








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Feb 1 at 2:14









                taniustanius

                4501615




                4501615






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1098535%2fcannot-make-function-key-bindings-f1-f12-to-work-in-byobu-with-tmux-backend%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Сан-Квентин

                    Алькесар

                    Josef Freinademetz