Shift key has unexpected behavior in the terminal The Next CEO of Stack OverflowVim - how to...

What is the point of a new vote on May's deal when the indicative votes suggest she will not win?

Failed to fetch jessie backports repository

How to be diplomatic in refusing to write code that breaches the privacy of our users

WOW air has ceased operation, can I get my tickets refunded?

Trouble understanding the speech of overseas colleagues

How to use tikz in fbox?

Rotate a column

Need some help with wall behind rangetop

I believe this to be a fraud - hired, then asked to cash check and send cash as Bitcoin

MAZDA 3 2006 (UK) - poor acceleration then takes off at 3250 revs

How do I go from 300 unfinished/half written blog posts, to published posts?

Inappropriate reference requests from Journal reviewers

How long to clear the 'suck zone' of a turbofan after start is initiated?

Robert Sheckley short story about vacation spots being overwhelmed

Was a professor correct to chastise me for writing "Prof. X" rather than "Professor X"?

How can I open an app using Terminal?

How do I construct this japanese bowl?

Grabbing quick drinks

Whats the best way to handle refactoring a big file?

How to start emacs in "nothing" mode (`fundamental-mode`)

What happens if you roll doubles 3 times then land on "Go to jail?"

Why does standard notation not preserve intervals (visually)

Is it safe to use c_str() on a temporary string?

How to make a software documentation "officially" citable?



Shift key has unexpected behavior in the terminal



The Next CEO of Stack OverflowVim - how to substitute a word in-place?Shift key pops up a menuVim completion - always suppress the newline after I select a suggestion with the Enter keyShift+Alt key combination blocks input in terminal (Ubuntu 10.04)Odd behavior on Shift-{Esc,Fx}Shift not working with certain keys, even in “on-screen keyboard”, caps lock works, safe mode works (Windows 7)two-key alternative to ctrl+shift+cWhat does Shift+Enter do in a terminal, and can I disable it in Vim?Cursor in gvim changes very slowly between insert and normal modeDisable shift key capitalisation












1















I'm running macOS Mojave, and I'm getting strange behavior from my Shift key.



After I've typed in any text in the terminal, if I press and release the Shift key, it will add ;2D;10D to the end of that string. For example, if I type hello and immediately press and release Shift after, it will become hello;2D;10D, and it will add that additional string as many times as I press and release Shift, e.g. pressing Shift twice at the end of hello would create hello;2D;10D;2D;10D, etc. If I have not typed in any text yet and press and release Shift nothing happens.



When I am in Vim Insert Mode, or in colon command mode, if I have typed anything, pressing and releasing the Shift key moves my cursor to right after the first character of that recently created string of characters. For example, I press i to enter Insert Mode. | represents my cursor. If I type in hello and press and release Shift immediately after, my cursor ends up here h|ello. I noticed that in Normal Mode, when I press and release Shift, the bottom right corner that displays your key press combinations quickly flashes ~@#.



To debug, I have removed all my plugins and commented out my .vimrc file, and I am still getting the same behavior. This behavior occurs in any terminal emulator I've used (the standard Mac terminal, iTerm2, VSCode command line, etc.) I don't get this behavior outside of the command line, e.g. when I use Microsoft Word, or even typing this now, pressing and releasing the Shift key has no effect. Any feedback on why this may be occurring would help!










share|improve this question









New contributor




Nathan Ong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    1















    I'm running macOS Mojave, and I'm getting strange behavior from my Shift key.



    After I've typed in any text in the terminal, if I press and release the Shift key, it will add ;2D;10D to the end of that string. For example, if I type hello and immediately press and release Shift after, it will become hello;2D;10D, and it will add that additional string as many times as I press and release Shift, e.g. pressing Shift twice at the end of hello would create hello;2D;10D;2D;10D, etc. If I have not typed in any text yet and press and release Shift nothing happens.



    When I am in Vim Insert Mode, or in colon command mode, if I have typed anything, pressing and releasing the Shift key moves my cursor to right after the first character of that recently created string of characters. For example, I press i to enter Insert Mode. | represents my cursor. If I type in hello and press and release Shift immediately after, my cursor ends up here h|ello. I noticed that in Normal Mode, when I press and release Shift, the bottom right corner that displays your key press combinations quickly flashes ~@#.



    To debug, I have removed all my plugins and commented out my .vimrc file, and I am still getting the same behavior. This behavior occurs in any terminal emulator I've used (the standard Mac terminal, iTerm2, VSCode command line, etc.) I don't get this behavior outside of the command line, e.g. when I use Microsoft Word, or even typing this now, pressing and releasing the Shift key has no effect. Any feedback on why this may be occurring would help!










    share|improve this question









    New contributor




    Nathan Ong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      1












      1








      1








      I'm running macOS Mojave, and I'm getting strange behavior from my Shift key.



      After I've typed in any text in the terminal, if I press and release the Shift key, it will add ;2D;10D to the end of that string. For example, if I type hello and immediately press and release Shift after, it will become hello;2D;10D, and it will add that additional string as many times as I press and release Shift, e.g. pressing Shift twice at the end of hello would create hello;2D;10D;2D;10D, etc. If I have not typed in any text yet and press and release Shift nothing happens.



      When I am in Vim Insert Mode, or in colon command mode, if I have typed anything, pressing and releasing the Shift key moves my cursor to right after the first character of that recently created string of characters. For example, I press i to enter Insert Mode. | represents my cursor. If I type in hello and press and release Shift immediately after, my cursor ends up here h|ello. I noticed that in Normal Mode, when I press and release Shift, the bottom right corner that displays your key press combinations quickly flashes ~@#.



      To debug, I have removed all my plugins and commented out my .vimrc file, and I am still getting the same behavior. This behavior occurs in any terminal emulator I've used (the standard Mac terminal, iTerm2, VSCode command line, etc.) I don't get this behavior outside of the command line, e.g. when I use Microsoft Word, or even typing this now, pressing and releasing the Shift key has no effect. Any feedback on why this may be occurring would help!










      share|improve this question









      New contributor




      Nathan Ong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      I'm running macOS Mojave, and I'm getting strange behavior from my Shift key.



      After I've typed in any text in the terminal, if I press and release the Shift key, it will add ;2D;10D to the end of that string. For example, if I type hello and immediately press and release Shift after, it will become hello;2D;10D, and it will add that additional string as many times as I press and release Shift, e.g. pressing Shift twice at the end of hello would create hello;2D;10D;2D;10D, etc. If I have not typed in any text yet and press and release Shift nothing happens.



      When I am in Vim Insert Mode, or in colon command mode, if I have typed anything, pressing and releasing the Shift key moves my cursor to right after the first character of that recently created string of characters. For example, I press i to enter Insert Mode. | represents my cursor. If I type in hello and press and release Shift immediately after, my cursor ends up here h|ello. I noticed that in Normal Mode, when I press and release Shift, the bottom right corner that displays your key press combinations quickly flashes ~@#.



      To debug, I have removed all my plugins and commented out my .vimrc file, and I am still getting the same behavior. This behavior occurs in any terminal emulator I've used (the standard Mac terminal, iTerm2, VSCode command line, etc.) I don't get this behavior outside of the command line, e.g. when I use Microsoft Word, or even typing this now, pressing and releasing the Shift key has no effect. Any feedback on why this may be occurring would help!







      terminal vim shift






      share|improve this question









      New contributor




      Nathan Ong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question









      New contributor




      Nathan Ong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question








      edited 5 mins ago









      karel

      9,32993239




      9,32993239






      New contributor




      Nathan Ong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 3 hours ago









      Nathan OngNathan Ong

      62




      62




      New contributor




      Nathan Ong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Nathan Ong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Nathan Ong is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes












          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
          });


          }
          });






          Nathan Ong is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1418865%2fshift-key-has-unexpected-behavior-in-the-terminal%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Nathan Ong is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Nathan Ong is a new contributor. Be nice, and check out our Code of Conduct.













          Nathan Ong is a new contributor. Be nice, and check out our Code of Conduct.












          Nathan Ong is a new contributor. Be nice, and check out our Code of Conduct.
















          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%2f1418865%2fshift-key-has-unexpected-behavior-in-the-terminal%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

          VNC viewer RFB protocol error: bad desktop size 0x0I Cannot Type the Key 'd' (lowercase) in VNC Viewer...

          Tribunal Administrativo e Fiscal de Mirandela Referências Menu de...

          looking for continuous Screen Capture for retroactivly reproducing errors, timeback machineRolling desktop...