![]() Select your profile on the left, and then open the Keyboard tab. Q: How do I make the option/alt key act like Meta or send escape codes?Ī: Go to Preferences > Profiles tab. Q: I'm a Chinese, Japanese, or Korean user and some characters don't line up because they are not rendered in double-width.Ī: Go to Preferences > Profiles > Text and change the setting of "Treat ambiguous-width characters as double-width." Q: Why can't I set my session's shortcut key to Ctrl-Cmd-D?Ī: That key is used by macOS's Dictionary program. Q: Some characters appear to be twice as wide as others, and things aren't lining up correctly. You need to make sure the size (height) of two fonts do not differ greatly, so iTerm2 won't display a mess of mixed glyphs. For other languages, you need to specify a font that works with your language as the Non-ASCII font. If you only use English or western european languages, you probably only need to set the font for ASCII characters. What should I do?Ī: iTerm2 lets you to specify two fonts. For example, to delete all settings, run: defaults delete 2 To modify it, use the "defaults" command. Q: Where does iTerm2 store its settings?Ī: Preferences, including profiles, are stored in ~/Library/Preferences/. Disabling Preferences > Profiles > Keys > Allow application keypad mode will prevent your terminal from getting stuck in application keypad mode, which often has the effect of breaking keys that normally work. Make sure you do not have custom key bindings in Preferences > Keys or Preferences > Profiles > Keys for these keys. Q: Why my arrow/HOME/END keys are not working?Ī: Check that the $TERM variable is correct. If you are on 3.2 or later, ensure the GPU renderer is enabled and that it can be used per the restrictions described at Metal Renderer. ![]() Use a solid background color rather than an image. Q: How can I improve iTerm2's performance?Ī: Make sure you are running the latest version. Try running this command in bash to see the difference between the two behaviors: printf '\e[0 31mplain\n\e[1 31mbold\n'\ Q: I don't like the way that iTerm2 renders bold fonts.Ī: Go to Preferences->Profiles->Text and change the "Draw bold text in bold font" and "Draw bold text in bright colors" settings. ![]() See the downloads page for which OS versions are supported by each version of the app. Now these keys should work the way your muscle memory (or at least my muscle memory) expects them to.A: iTerm2 is for macOS only. On OSX, I bind this to ⌘← ( Command-Left). Use Send Hex Code 0x01 for "move to beginning of line".On OSX, I bind this to ⌘→ ( Command-Right) as that seems to be the convention other apps follow. Use Send Hex Code 0x05 for "move to end of line". ![]() On OSX, I bind this to ⌥← ( Option-Left). Use Send Escape Sequence b for "move backward one word".On OSX, I bind this to ⌥→ ( Option-Right) as that seems to be the convention other apps follow. Use Send Escape Sequence f for "move forward one word".For the global keys go to Preferences > Keys and look for the symbols in (and remove them from) the "Global Shortcut Keys".Ģ) In either the profile or global shortcut settings (your choice) add the shortcuts back in, with the following bindings:.For the profile keys go to Preferences > Profiles > Keys and look for the ⌘←, ⌘→, ⌥← and ⌥→ shortcuts (and delete them if found.).There two different places to check-in the "global" keys and in the "profile" keys. Here's how to set them up (based on build 2.1.4):ġ) Clear out any per-existing bindings for these short-cuts. ITerm2 is a nice, customizable terminal emulator for OSX, but the typical cursor movement keys (such as ⌘← ( Command-Left) for "move to beginning of line and ⌥→ ( Option-Right) for "move forward one word") never seem to work for me out of the box. Setting up the cursor movement keys in iTerm2 on OSX
0 Comments
Leave a Reply. |