Use command key as meta key in terminal?

I love my new mac pro, but there are some things that I don't want to deal with.
Both the shell (tcsh) and editor (emacs) that I use rely heavily on the 'meta' key. I have found the option in the settings to use the "alt" as meta, but I would really prefer to use the command key as meta.
Is there any way to configure 'terminal' to use the command key as meta, rather than the alt key?
Thanks,
-jamie

Some more info-
I only want to change the behavior of this key in terminal, if possible-
I don't want to re-map the keys globally.

Similar Messages

  • Making "apple" key the meta-key in terminal

    howdy,
    does anyone know how to assign "meta" functionality to the the "apple" button in the terminal?
    cocoa emacs does it by default and i know there's a preference pane to set the option key to meta ...
    i'd be much obliged if anyone could offer a solution.
    cheers!
    -ld

    Ah you mean the ESC key posting? That's what I've been using all these years as a workaround, but that is not a real solution.
    The ESC solution is different and more awkward to type than a real meta key. For one it is in an inconvenient location, and more importantly it's not used like a modifier key because you have to press and release it before typing the combination character. So instead of pressing and holding Meta, then typing the dot key, then releasing both (to get the last argument of the previous command line in bash for example), I have to press ESC, then release ESC and then type the dot. If I don’t do that, and hold the ESC key down, the repetition kicks in and that breaks key sequences.
    But I really want to press and hold meta, press the dot, and then release them both at once. Exactly like the combinations that you use with the Ctrl key, or the Mac keyboard commands you use with the Command key. I want to use the meta key like the Ctrl key, which is the natural way to use it. The ESC fallback is a less convenient substitute which we’re forced to use, unfortunately... But I hate it.
    So, if you know of a way to assign the meta role to some key other than the Option key in a way that allows me to use it like a real modifier key that can be held pressed without going into repetition, then that would be the solution I am looking for. And I guess the “other key” can pretty much only be Caps Lock or Fn.

  • Using Command-Option-P-R keys the screen is gone black

    I have used the Command-Option-P-R keys for resetting the PRAM but now the screen is black and can here the start up sound.
    Please help me to slve this probem. I have changed the battery of the logic board but did not find any joy.
    Thank you in advance for your assistance.
    Original OS:
    - Mac OS 10.6.7 Snow Leopard
    Model:
    - iMac (21.5-inch, Mid 2011)
    Codename:
    - No codename assigned.
    Build Country:
    - This unit was built in China
    Build Year:
    - This unit was built in the second half of 2012.
    Build Week
    - Week 5 (January) or week 32 (July)

    Read here  >  Resolve startup issues and perform disk maintenance with Disk Utility and fsck

  • Problem with meta key option in Terminal app!

    I used Terminal for awhile now with and without meta-key option but I like the meta-key to be turned on cause im familair with tabbing that way. But one thing I can't do in like irssi, is to make symbols with altkey1234567890.. I can do that without the meya-key option.. Anyone know how to solve this problem?

    This seems a [long-standing|http://www.entropy.ch/blog/MacOSX/2009/01/27/Mac-OS-X-Problem-Unsolved-for-Years-Terminal-Meta-Key-and-Internati onal-Keyboards.html|Mac OS X Problem Unsolved for Years: Terminal Meta Key and International Keyboards] issue.
    A possible solution could be to find how to specify an arbitrary alternate key as the META key, for example the Caps Lock or Fn key.
    Another solution could be to tweak the shell to print the requested characters, even with the "use Option as the META key" option enabled. For what I understand, this route for the Bash shell is explained [here|http://anders.janmyr.com/2009/01/making-mac-os-x-terminal-hum.html|Making the Mac OS X Terminal Hum]. However, I don't know enough of *nix and shells to really understand what's written in that article… moreover, I use the tcsh shell and those instructions seems to me very shell-specific.
    Any idea of what needs to be tweaked in a tcsh shell environment?

  • Meta-key in terminal

    I am using a Macbook with a norwegian keyboard. The keyboard doesn't have
    symbols such as | or ~, so I have to use the Option key to produce them.
    In terminals, I have the ability to set Option to behave as a meta-key which gives
    me the full functionality of Emacs as well as meta-key combinations on the shell
    (e.g. Option + d to delete a word in a line of text). However, when I enable the
    Option-key as Meta-key, I cannot use Option key to produce e.g. | or ~.
    What I would like is a way to set another key as Meta-key... Caps lock would be
    nice, since I never really use it. I have tried DoubleCommand, fKeys etc, but none
    of these applications allow me to set a Meta-key. Is there a way to force this behaviour?

    Ah you mean the ESC key posting? That's what I've been using all these years as a workaround, but that is not a real solution.
    The ESC solution is different and more awkward to type than a real meta key. For one it is in an inconvenient location, and more importantly it's not used like a modifier key because you have to press and release it before typing the combination character. So instead of pressing and holding Meta, then typing the dot key, then releasing both (to get the last argument of the previous command line in bash for example), I have to press ESC, then release ESC and then type the dot. If I don’t do that, and hold the ESC key down, the repetition kicks in and that breaks key sequences.
    But I really want to press and hold meta, press the dot, and then release them both at once. Exactly like the combinations that you use with the Ctrl key, or the Mac keyboard commands you use with the Command key. I want to use the meta key like the Ctrl key, which is the natural way to use it. The ESC fallback is a less convenient substitute which we’re forced to use, unfortunately... But I hate it.
    So, if you know of a way to assign the meta role to some key other than the Option key in a way that allows me to use it like a real modifier key that can be held pressed without going into repetition, then that would be the solution I am looking for. And I guess the “other key” can pretty much only be Caps Lock or Fn.

  • Meta key won't work in emacs

    When I run emacs in the terminal I have to use the escape key as the meta key, even though I have "use option key as meta key" selected in the terminal options. Any suggestions?

    I'm not an emacs user, but I think mac-command-key-is-meta is not supported by the console version of emacs pre-installed in MacOSX.
    But,
    When I run emacs in the terminal I have to use the escape key as the meta key, even though I have "use option key as meta key" selected in the terminal options.
    This is strange. It works for me. If "use option key as meta key" is On, then "hitting option and V simultaneously" is equivalent to "hitting ESC and then V sequentially". If ESC V (two key strokes) works in your emacs (scroll back 1 page), then option-V (single key storke) should also work.
    Are you sure you are using the option (not command) key?
    Are you hitting the option key simultaneously with the other key?
    PowerMacG4, PowerBookG4, iMac(C2D)   Mac OS X (10.4.8)  

  • Dwm - how to assign a second Meta key

    I'm using dwm and I'm trying to figure out how can I assign the Microsoft Menu key (or context menu key) as a second Meta key?
    I usually use ALT as the meta key. #define MODKEY Mod1Mask, however, I'm not sure if I can use as well the MS key. Thanks

    Head_on_a_Stick, that'd be for the "Windows" key, not the menu key.
    The menu key does not function as a modifier so it cannot be simply configured in dwm's config.h.  When a key is pressed dwm checks the key symbol sent from the x server, and the modifier mask of what modifiers were held while the key was pressed.  The menu key will never be included in the modifier mask, it will only be treated as a key in the eky symbol varaible for the event.  That is unless you make the X server treat is as a modifier with Xmodmap.
    You could map the menu key to one of the 'normal' mod keys, but others are are available that are generally not used (I'd suggest Mod5Mask).  Once mapped, you can just change your modkey in dwm's config.g to match.
    EDIT: I just reread you initial post - you say you want to use the menu key "as well".  Do you mean you'd like to switch between them, or have them both do the same thing?  If you want to switch, use Mod5 as suggested above.  If you want them to do the same thing, simply use Xmodmap to make the menu key a Mod1 key, then don't do anything to your config.h.
    Last edited by Trilby (2014-11-18 12:31:06)

  • Emacs Meta Key in Terminal

    I have gotten emacs to recognize my windows key as a Meta key by editing my xmodmap.
    But when i run emacs in terminal I dont have a meta key.
    Does anyone know a solution for this?
    Last edited by Jabrick (2011-08-31 01:25:54)

    I have lots of experience with various ways to map particular keyboards to emacs keys. I've been using emacs since around 1980. I understand emacs. I've been using emacs via tarantella for as long as Oracle has used tarantella to access remote hosts, something close to ten years. The way to type meta keys in emacs in a Windows environment is ALT-foo. It works both with SGD and running emacs locally on Windows. I would know if I had been typing ESC; I have not.
    Douglas

  • Adding key figures using commands in Web Application Designer?

    Hello, all.
    I have a query the contains several key figures.  From that query, I created a query view in which only one of the key figures is displayed.  I'm using this query view for one of the data providers in a web template.  In Web Applicaiton Designer, I would like to be able to hide the key figure from the data provider and show a different one.  How can I accomplish this using the built-in commands?
    I know I can hide all key figures using the CLEAR_SELECTION_STATE command, but I can't figure out how to use a command such as SET_SELECTION_STATE_SIMPLE to show a different key figure.  Any help would be great!  Thanks.

    I've tried that using the GUI to configure the command, but WAD crashes when I try to open the window where I choose the member name.  The error says:
    "4A6DM1A4LTXPJKA1BA3LD9TTD is not a valid characteristic for InfoProvider MQM_M01."
    I also tried entering the commands as you suggested in the XHTML editor, but that resulted in an error when I tried to execute the command.
    Maybe I can do what I'm trying to do using some method other than changing key figures.  Basically all I want do is change the date range of the data shown using offsets.
    The key figures that I'm trying to add and remove are restricted in Query Designer to different date ranges.  These date ranges use offsets to set the restriction.  For example, one key figure is restricted to display values for only the last 7 days and I'm trying to replace it with a key figure that's restricted to the last 14 days.
    If I knew how to set a filter with offsets using commands in WAD, then I'd use that method, instead.  Any suggestions would be appreciated.

  • Flash CC won't let me switch between open documents using command and tilde key ( ~ )

    In all previous versions of Flash, and most other Adobe software, you could change the active document using command and tilde key ( ~ ) on a Mac. However Flash CC won't let me do this. Is there a bug, or something I need to set up to get it to work? Or is this possibly just expected behavior in the new version of Flash?

    I'm on a 2012 desktop with OS X 10.8.4 using a bluetooth keyboard. Cmd + ~ works with all other Adobe programs I have installed including Flash CS5.5.

  • I just installed Adobe InDesign CC 2014 and now I can't scale objects/type using Command+Shift Key. Has anyone else had this problem and if so, any solution?

    I just installed Adobe InDesign CC 2014 and now I can't scale objects/type using Command+Shift Key. Has anyone else had this problem and if so, any solution?

    There is a conflict with third party software or your system keyboard shortcuts. Lately, there have been many postings about conflicts with Chrome extensions so check there first.
    It's not a new problem. I wrote about it on InDesignSecrets.com in 2006:
    The Missing Keystrokes Mystery | InDesignSecrets

  • Ok i get this error when hooking my dvd drive up and tring to use my windows 7 cdNo Bootable device. Insert boot disk and press any key. i have tried to use command key i see the cd icon and hit that and i get the error

    ok i get this error when hooking my dvd drive up and tring to use my windows 7 cdNo Bootable device. Insert boot disk and press any key. i have tried to use command key i see the cd icon and hit that and i get the error

    Wiley207 wrote:
    Believe it or not, it was the FireWire drive that was the problem! I managed to successfully install Windows 7 using an external USB DVD drive!
    Well I am truly staggered, I have tried this on two different MacBook Pros, with three different external USB optical drives. Don't know if you googled as I suggested but you would find hundreds of others who have found same thing. The exception is MacBook Air which works with the Apple writer, but I don't know much about this.
    Were you doing any of the special workarounds with refedit etc?
    What model USB DVD drive?

  • Terminal command to press a key

    I would like to execute a particular keystroke every 10 minutes (Alt1).
    I can handle the cron part, but how would I script the key sequence?

    Try the following:
    osascript -e 'tell application "yourapp"
    activate
    end tell
    tell application "System Events"
    tell process "yourapp"
    keystroke "1" using {command down, option down}
    end tell
    end tell'
    You may need to enable access for assistive devices in the Universal Access pane of System Preferences to use this command. If you choose to use CronniX to set it up, copy and paste the text between the single quote marks in the command above into the Script Editor in the /Applications/AppleScript/ folder.
    (19581)

  • Vim issues...meta keys and colorscheme not working correctly

    The first issue isn't really a vim problem, but it's related.  When running Vim in a terminal, my meta key bindings don't work.  I've tracked it down to a problem with Xfce's Terminal as noted here: http://vimdoc.sourceforge.net/htmldoc/m … p-alt-keys
    ...but I'm not sure exactly how to fix it.  I suppose I could always switch to another terminal, but I'd like to stick with Xfce's version if possible.
    The second issue is that my color scheme isn't being set when I first load up gVim.  As soon as I open a file, it properly displays, but the "splash" page doesn't show it.  I'm using desert (who doesn't) and this is what it looks like when I first load up gVim:
    I did stop using a separate <code>.gvimrc</code> in favor of putting everything in my <code>.vimrc</code> file under a conditional, and all the other settings work just fine.  Here's what that conditional looks like:
    if has( "gui_running" )
    set columns=84 " Set the window's width
    set lines=43 " Set the window's height
    set guioptions-=T " Remove the toolbar from the window
    set guifont=Terminus 12 " Use a clean monospaced font
    colorscheme desert
    else
    set background=dark
    colorscheme desert
    endif
    In case you're curious, here's my entire <code>.vimrc</code> file.

    phrakture wrote:IIRC this happens for because gvim does not find a ~/.gvimrc and reads /etc/gvimrc after ~/.vimrc (I think).
    Try symlinking ~/.vimrc to ~/.gvimrc
    That solved the problem for me. Thanks 

  • Meta key readline in aterm/Eterm

    I'm not certain if I can describe this.  I have the following in my ~/.inputrc:
    C-p: history-search-backward
    M-,: beginning-of-line
    That's Control-p and Alt-comma bound to two separate actions. When I use xterm, these keybindings (and others I have set -- these are just examples) work exactly the way they are supposed to (ie: as defined in the readline man page ).
    However, if I run them in aterm or Eterm, the first keybinding (using the control key) works fine, but the second one (using the Meta key) does not. I also tried it in rxvt on which these two terms are based. It seems like the alt key isn't being interpretted properly in these terms.
    However, the default readline keybindings that use alt (ie: Meta-f for word forward) seem to work fine. What the hell is up with this?
    I've tried setting various term variables, but didn't see any changes.
    Also, the HOME key, when pressed in aterm, just displays a ~, but it works fine in Eterm.
    I want a translucent terminal, but xterm is the only one that I can find that allows my preferred keybindings. :cry:
    Dusty

    i can confirm this in urxvt as well dusty,
    but strange is that my xterm doesn't work well either, it flipps out totally when trying out such things, weired,

Maybe you are looking for

  • Re: Tracking every return is over the top . . .

    i just experienced this exact situation. As the original post states Best Buy tracks every single return. This is is a ridiculous policy. I personally tried to return a Disney Infinity toy that i paid only $13.99 for. I had the orignal reciept and ev

  • Websites opens in Win7 IE8 - not Mac OS X Safari 5.1.1

    There are sites that I go to on my Macbook Pro (Lion) 10.7.2 and Safari (5.1.1) and upon inserting my username and password and clicking on enter it just sits there and does nothing. If I perform the same sequence on my Windows 7 IE8 computer it allo

  • Updating pattern swatch just got harder compared to CS5

    In CC (17.1) I find when I Option-drag artwork over an existing pattern swatch, the "hotspot" of the cursor has changed. Why? Instead of the hand being the hotspot, it's a little "+" sign to the right. It feels awkward and makes the update process le

  • How to restore google maps?

    I just installed ios 6 and I'm not happy with the new Maps application.  (I don't know whether to laugh or cry ... ).  I want to go back to Google Maps. Any other way to do this and get full functionality without going back to ios 5? Any compelling r

  • How do I open Photoshop Elements on a Mac?

    I have just downloaded Elements onto my Mac but cannot open it from the download file. What app is needed to open the program?