Pasting “Foo” into LXterminal in XFCE produces “0~Foo1~”












2














I use LXTerminal 0.20. with XFCE 4.12.2 on Linux Mint 18.2 (upgraded from 18.1).



When I copy text in some desktop app and paste it into an LXTerminal session, I get 0~ and 1~ prepended and appended, respectively, to the text. So,



Hello world


becomes



0~Hello World1~


This doesn't happen with XFCE4's "native" terminal app (xfce4-terminal), so not the same issue as in this question - and not resolved by the answer there. It also doesn't happen if I copy the text to apps with GUI (i.e. the text itself, in the clipboard, is fine).



Why is this happening and what can I do to avoid it?










share|improve this question
























  • Something's enabled bracketed paste, but the shell (or whatever you're pasting into) doesn't understand it.
    – Thomas Dickey
    Jul 9 '17 at 20:36










  • @ThomasDickey: So, how can I disable it, or perhaps - how can I make my shell understand it? (I'm guessing only the first option is actually relevant).
    – einpoklum
    Jul 9 '17 at 20:53










  • @JeffSchaller: Not a dupe, since I don't see that problem with xfce4-terminal. Please read more carefully before marking as a dupe...
    – einpoklum
    Jul 9 '17 at 21:14










  • What software (shell?) is running in the terminal when the pasting happens?
    – thrig
    Jul 9 '17 at 21:19










  • Thought the other answer showed how to turn off bracketed paste.
    – Jeff Schaller
    Jul 9 '17 at 21:25
















2














I use LXTerminal 0.20. with XFCE 4.12.2 on Linux Mint 18.2 (upgraded from 18.1).



When I copy text in some desktop app and paste it into an LXTerminal session, I get 0~ and 1~ prepended and appended, respectively, to the text. So,



Hello world


becomes



0~Hello World1~


This doesn't happen with XFCE4's "native" terminal app (xfce4-terminal), so not the same issue as in this question - and not resolved by the answer there. It also doesn't happen if I copy the text to apps with GUI (i.e. the text itself, in the clipboard, is fine).



Why is this happening and what can I do to avoid it?










share|improve this question
























  • Something's enabled bracketed paste, but the shell (or whatever you're pasting into) doesn't understand it.
    – Thomas Dickey
    Jul 9 '17 at 20:36










  • @ThomasDickey: So, how can I disable it, or perhaps - how can I make my shell understand it? (I'm guessing only the first option is actually relevant).
    – einpoklum
    Jul 9 '17 at 20:53










  • @JeffSchaller: Not a dupe, since I don't see that problem with xfce4-terminal. Please read more carefully before marking as a dupe...
    – einpoklum
    Jul 9 '17 at 21:14










  • What software (shell?) is running in the terminal when the pasting happens?
    – thrig
    Jul 9 '17 at 21:19










  • Thought the other answer showed how to turn off bracketed paste.
    – Jeff Schaller
    Jul 9 '17 at 21:25














2












2








2







I use LXTerminal 0.20. with XFCE 4.12.2 on Linux Mint 18.2 (upgraded from 18.1).



When I copy text in some desktop app and paste it into an LXTerminal session, I get 0~ and 1~ prepended and appended, respectively, to the text. So,



Hello world


becomes



0~Hello World1~


This doesn't happen with XFCE4's "native" terminal app (xfce4-terminal), so not the same issue as in this question - and not resolved by the answer there. It also doesn't happen if I copy the text to apps with GUI (i.e. the text itself, in the clipboard, is fine).



Why is this happening and what can I do to avoid it?










share|improve this question















I use LXTerminal 0.20. with XFCE 4.12.2 on Linux Mint 18.2 (upgraded from 18.1).



When I copy text in some desktop app and paste it into an LXTerminal session, I get 0~ and 1~ prepended and appended, respectively, to the text. So,



Hello world


becomes



0~Hello World1~


This doesn't happen with XFCE4's "native" terminal app (xfce4-terminal), so not the same issue as in this question - and not resolved by the answer there. It also doesn't happen if I copy the text to apps with GUI (i.e. the text itself, in the clipboard, is fine).



Why is this happening and what can I do to avoid it?







xfce clipboard xfce4-terminal lxterminal






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 10 '17 at 12:35

























asked Jul 9 '17 at 20:21









einpoklum

2,05641952




2,05641952












  • Something's enabled bracketed paste, but the shell (or whatever you're pasting into) doesn't understand it.
    – Thomas Dickey
    Jul 9 '17 at 20:36










  • @ThomasDickey: So, how can I disable it, or perhaps - how can I make my shell understand it? (I'm guessing only the first option is actually relevant).
    – einpoklum
    Jul 9 '17 at 20:53










  • @JeffSchaller: Not a dupe, since I don't see that problem with xfce4-terminal. Please read more carefully before marking as a dupe...
    – einpoklum
    Jul 9 '17 at 21:14










  • What software (shell?) is running in the terminal when the pasting happens?
    – thrig
    Jul 9 '17 at 21:19










  • Thought the other answer showed how to turn off bracketed paste.
    – Jeff Schaller
    Jul 9 '17 at 21:25


















  • Something's enabled bracketed paste, but the shell (or whatever you're pasting into) doesn't understand it.
    – Thomas Dickey
    Jul 9 '17 at 20:36










  • @ThomasDickey: So, how can I disable it, or perhaps - how can I make my shell understand it? (I'm guessing only the first option is actually relevant).
    – einpoklum
    Jul 9 '17 at 20:53










  • @JeffSchaller: Not a dupe, since I don't see that problem with xfce4-terminal. Please read more carefully before marking as a dupe...
    – einpoklum
    Jul 9 '17 at 21:14










  • What software (shell?) is running in the terminal when the pasting happens?
    – thrig
    Jul 9 '17 at 21:19










  • Thought the other answer showed how to turn off bracketed paste.
    – Jeff Schaller
    Jul 9 '17 at 21:25
















Something's enabled bracketed paste, but the shell (or whatever you're pasting into) doesn't understand it.
– Thomas Dickey
Jul 9 '17 at 20:36




Something's enabled bracketed paste, but the shell (or whatever you're pasting into) doesn't understand it.
– Thomas Dickey
Jul 9 '17 at 20:36












@ThomasDickey: So, how can I disable it, or perhaps - how can I make my shell understand it? (I'm guessing only the first option is actually relevant).
– einpoklum
Jul 9 '17 at 20:53




@ThomasDickey: So, how can I disable it, or perhaps - how can I make my shell understand it? (I'm guessing only the first option is actually relevant).
– einpoklum
Jul 9 '17 at 20:53












@JeffSchaller: Not a dupe, since I don't see that problem with xfce4-terminal. Please read more carefully before marking as a dupe...
– einpoklum
Jul 9 '17 at 21:14




@JeffSchaller: Not a dupe, since I don't see that problem with xfce4-terminal. Please read more carefully before marking as a dupe...
– einpoklum
Jul 9 '17 at 21:14












What software (shell?) is running in the terminal when the pasting happens?
– thrig
Jul 9 '17 at 21:19




What software (shell?) is running in the terminal when the pasting happens?
– thrig
Jul 9 '17 at 21:19












Thought the other answer showed how to turn off bracketed paste.
– Jeff Schaller
Jul 9 '17 at 21:25




Thought the other answer showed how to turn off bracketed paste.
– Jeff Schaller
Jul 9 '17 at 21:25










3 Answers
3






active

oldest

votes


















0














This helped, not sure why:




  1. In XFCE4, open Preferences | Input Method | Language.

  2. Change your region to something else.

  3. Press "Apply to entire system".

  4. Change it back.

  5. Press "Apply to entire system".

  6. Close LXTerminal and re-start it.


That made the problem go away for me. I'm sure there's a better answer, but if it works, it works.






share|improve this answer

















  • 1




    I'm almost certain that 1-5 don't play any role here. Any newly opened terminal works correctly at the beginning, but due to a bug in older VTE versions, terminals "break" relatively easily during normal operation.
    – egmont
    Nov 25 '17 at 0:03



















0














I've just had this issue, I'm using zsh as shell and for me it was something I had to fix in my .zshrc by adding:



unset zle_bracketed_paste



This made new terminal windows not enter bracketed paste mode by default.






share|improve this answer





























    0














    Use "reset" command to reinitialize your terminal.






    share|improve this answer





















    • Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your answer, please edit your post to include additional context. How does this answer the question at hand? Thank you!
      – kemotep
      Dec 18 at 13:16











    Your Answer








    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "106"
    };
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2funix.stackexchange.com%2fquestions%2f377353%2fpasting-foo-into-lxterminal-in-xfce-produces-0foo1%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    0














    This helped, not sure why:




    1. In XFCE4, open Preferences | Input Method | Language.

    2. Change your region to something else.

    3. Press "Apply to entire system".

    4. Change it back.

    5. Press "Apply to entire system".

    6. Close LXTerminal and re-start it.


    That made the problem go away for me. I'm sure there's a better answer, but if it works, it works.






    share|improve this answer

















    • 1




      I'm almost certain that 1-5 don't play any role here. Any newly opened terminal works correctly at the beginning, but due to a bug in older VTE versions, terminals "break" relatively easily during normal operation.
      – egmont
      Nov 25 '17 at 0:03
















    0














    This helped, not sure why:




    1. In XFCE4, open Preferences | Input Method | Language.

    2. Change your region to something else.

    3. Press "Apply to entire system".

    4. Change it back.

    5. Press "Apply to entire system".

    6. Close LXTerminal and re-start it.


    That made the problem go away for me. I'm sure there's a better answer, but if it works, it works.






    share|improve this answer

















    • 1




      I'm almost certain that 1-5 don't play any role here. Any newly opened terminal works correctly at the beginning, but due to a bug in older VTE versions, terminals "break" relatively easily during normal operation.
      – egmont
      Nov 25 '17 at 0:03














    0












    0








    0






    This helped, not sure why:




    1. In XFCE4, open Preferences | Input Method | Language.

    2. Change your region to something else.

    3. Press "Apply to entire system".

    4. Change it back.

    5. Press "Apply to entire system".

    6. Close LXTerminal and re-start it.


    That made the problem go away for me. I'm sure there's a better answer, but if it works, it works.






    share|improve this answer












    This helped, not sure why:




    1. In XFCE4, open Preferences | Input Method | Language.

    2. Change your region to something else.

    3. Press "Apply to entire system".

    4. Change it back.

    5. Press "Apply to entire system".

    6. Close LXTerminal and re-start it.


    That made the problem go away for me. I'm sure there's a better answer, but if it works, it works.







    share|improve this answer












    share|improve this answer



    share|improve this answer










    answered Jul 9 '17 at 21:49









    einpoklum

    2,05641952




    2,05641952








    • 1




      I'm almost certain that 1-5 don't play any role here. Any newly opened terminal works correctly at the beginning, but due to a bug in older VTE versions, terminals "break" relatively easily during normal operation.
      – egmont
      Nov 25 '17 at 0:03














    • 1




      I'm almost certain that 1-5 don't play any role here. Any newly opened terminal works correctly at the beginning, but due to a bug in older VTE versions, terminals "break" relatively easily during normal operation.
      – egmont
      Nov 25 '17 at 0:03








    1




    1




    I'm almost certain that 1-5 don't play any role here. Any newly opened terminal works correctly at the beginning, but due to a bug in older VTE versions, terminals "break" relatively easily during normal operation.
    – egmont
    Nov 25 '17 at 0:03




    I'm almost certain that 1-5 don't play any role here. Any newly opened terminal works correctly at the beginning, but due to a bug in older VTE versions, terminals "break" relatively easily during normal operation.
    – egmont
    Nov 25 '17 at 0:03













    0














    I've just had this issue, I'm using zsh as shell and for me it was something I had to fix in my .zshrc by adding:



    unset zle_bracketed_paste



    This made new terminal windows not enter bracketed paste mode by default.






    share|improve this answer


























      0














      I've just had this issue, I'm using zsh as shell and for me it was something I had to fix in my .zshrc by adding:



      unset zle_bracketed_paste



      This made new terminal windows not enter bracketed paste mode by default.






      share|improve this answer
























        0












        0








        0






        I've just had this issue, I'm using zsh as shell and for me it was something I had to fix in my .zshrc by adding:



        unset zle_bracketed_paste



        This made new terminal windows not enter bracketed paste mode by default.






        share|improve this answer












        I've just had this issue, I'm using zsh as shell and for me it was something I had to fix in my .zshrc by adding:



        unset zle_bracketed_paste



        This made new terminal windows not enter bracketed paste mode by default.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 4 at 5:31









        Kralian

        11




        11























            0














            Use "reset" command to reinitialize your terminal.






            share|improve this answer





















            • Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your answer, please edit your post to include additional context. How does this answer the question at hand? Thank you!
              – kemotep
              Dec 18 at 13:16
















            0














            Use "reset" command to reinitialize your terminal.






            share|improve this answer





















            • Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your answer, please edit your post to include additional context. How does this answer the question at hand? Thank you!
              – kemotep
              Dec 18 at 13:16














            0












            0








            0






            Use "reset" command to reinitialize your terminal.






            share|improve this answer












            Use "reset" command to reinitialize your terminal.







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Dec 18 at 12:38









            Ram Kumar Vooda

            1




            1












            • Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your answer, please edit your post to include additional context. How does this answer the question at hand? Thank you!
              – kemotep
              Dec 18 at 13:16


















            • Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your answer, please edit your post to include additional context. How does this answer the question at hand? Thank you!
              – kemotep
              Dec 18 at 13:16
















            Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your answer, please edit your post to include additional context. How does this answer the question at hand? Thank you!
            – kemotep
            Dec 18 at 13:16




            Hello and welcome to the U&L stack exchange site! Please review the Help Center to get information on how to best post to this site. To get to your answer, please edit your post to include additional context. How does this answer the question at hand? Thank you!
            – kemotep
            Dec 18 at 13:16


















            draft saved

            draft discarded




















































            Thanks for contributing an answer to Unix & Linux Stack Exchange!


            • 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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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%2funix.stackexchange.com%2fquestions%2f377353%2fpasting-foo-into-lxterminal-in-xfce-produces-0foo1%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

            Morgemoulin

            Scott Moir

            Souastre