![]() ![]() However, iTerm2 emulates (like Terminal.app) most of the VT100 control sequences. ![]() iTerm2s preferences and menu do not show any direct way to clear half of the screen. That does not include the scrollback (it is a similar question, but different). If the above still doesn't work and you are using OS X 10.9 (Mavericks) or there abouts, you probably need to disable the global Mission Control shortcuts which prevent Control+arrow keys from reaching iTerm, even if Mission Control itself is disabled. cmd+K maps to the menu item for clearing the visible screen (the screen buffer). There should be bonus points for cute phrasing. This is why you'll need to "catch" this sequence and tell readline what to do. Use the - button to delete the arrangement (see the screen shot). Add a new key binding with the little + icon. Here is the key binding you need to setup : Go to iTerm2 > Preferences > Profiles > Keys. Why is this? You've set up your profile to use the Xterm defaults: This is a known issue in iTerm2 that when pressing Alt+left/right arrow, you can’t jump words as you do in your text editor. See this documentation for more about the built-in zsh line editor (zle). To get the same functionality, you could add the following to your ~/.zshrc to use ctrl: bindkey -e Zsh by default does not use the readline library and therefore won't read ~/.inputrc. If you want to use the alt key instead for word-to-word movement (like default OS X behavior), use: "\e[1 9D": backward-word See this archived Wiki post for some more explanation. It works with iTerm version 3.3.12 Edit: In version 3.4, there's a slight UI change. ![]() Just add the following to ~/.inputrc: "\e[1 5D": backward-word 4 Answers Sorted by: 145 Go to your iTerm preferences select 'profiles' then 'key' and change your presets in 'Natural Text Editing' It should work immediately after. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |