Unix: what modifier key does “M-” refer to (e.g. M-C)

后端 未结 3 1467
长情又很酷
长情又很酷 2020-12-29 01:06

I\'m trying to do a case-sensitive search in Nano. The help menu at the bottom of the screen says I can toggle case-sensitivity by typing M-C.

         


        
相关标签:
3条回答
  • 2020-12-29 01:26

    I do not know for nano, but for emacs, M- stands for the Meta key, which can mean pressing the Alt key simultaneously with the letter key or by pressing Esc key before the letter key. Alt generally only works when using an X version of the application, so when using a dumb terminal, only Esc will work.

    0 讨论(0)
  • 2020-12-29 01:41

    Esc

    For instance, if you wanted to go to the end of the file press

    Esc then /

    You don't need to hold down Esc as if it were Shift.

    0 讨论(0)
  • 2020-12-29 01:43

    M refers to the meta key, which is not present on most keyboards. (Its use in software is for primarily historical reasons.) Usually, the meta key is emulated by another key on your keyboard. On Windows and Linux, it is usually the Alt key. On Mac OS X, that key (aka Option) already has other uses, and so Escape is used instead.

    0 讨论(0)
提交回复
热议问题