The Mac Terminal.app is one of the best Terminals I have used, but it has some annoying quirks like not supporting standard key definitions out of the box. The most frustrating ones are Home and End.
In nearly every OS, Home has meant “go to the beginning of the line” and End has meant “go to the end of the line,” but on the Mac, the default has always been for Home to scroll a document up to the top and for End to scroll the document down to the bottom.
However, since most Terminal applications aim for the Unixy world, they don’t care about scrolling through documents as much as dealing with the line you are on.
Luckily, the Mac Terminal has the ability to let the intrepid user customize it’s keybindings. If you want to make your Terminal operate like a standard Unix-like terminal, follow these simple steps:
VB Main GUI Virtualbox Preferences Input lets me modify the HOST key, which is a VB-defined key - not the HOME key, which is a physical key on.most. Macintosh keyboards. Ted and I are talking about the HOME key, not the HOST key. My question is if VB will let me re-map the HOME key function to some other key on the keyboard. If your Mac doesn’t have a Home or End button then you can replicate their functionality by holding Fn (bottom left) and using Left and Right arrow keys. Home: Fn and Left arrow. If you are anything like me, you love using the home and end key to quickly move to the start/end of a line of text. But, in Apple MacBook Pro, there is no default home/end key! I searched the internet and found Command + Left/Right to the rescue on OS X.
- Open the Terminal app.
- Select Preferences from the Terminal Menu.
- Under Settings, select a Profile you want to change.
- In the right pane, select the Keyboard button to see keyboard settings.
- Select the line that has the word “home” in the “Key” column.
- Click the Edit Button at the bottom.
- Make it look like this:
- To enter the right key code, clear the box and type these keys in order: ESCAPE O H (that’s a capital letter o, not a zero)
- The right key code for “end” is exactly like “home” but you replace the “H” with an “F”.
Some Linux/Unix Friendly Keycodes (submit your own in the comments):
- home ::
033OH
- end ::
033OF
- F1 ::
033[11~
- F2 ::
033[12~
- F3 ::
033[13~
- F4 ::
033[14~
Other links that worked but had problems:
The main problem with each solution below is that they only work part of the time. My solution above is compatible with the latest version of Mac OS X (Mountain Lion), and is also the default key binding for xterm, remote shells (ssh), vi(m), and also GNU screen. Each of the solutions below only work in a few of the cases for me.
The Home key among other keys.
The Home key is commonly found on desktop and laptopkeyboards. The key has the opposite effect of the End key. In limited-size keyboards where the Home key is missing the same functionality can be reached via the key combination of Fn+←.
Its standard symbol ⇱ from ISO/IEC 9995-7, ie. U+21F1⇱NORTH WEST ARROW TO CORNER, is used on some full-size keyboards instead of a possibly localized text label.
Microsoft Windows[edit]
In modern Microsoft Windows text editing applications, it is primarily used to return the cursor to the beginning of the line where the cursor is located. When the text is not editable, the Home key is used to return to the beginning of the document; this can also be done in editable text if the key is pressed along with Control.
Home Key For Mac
The Home key can also be used to select all the characters before the cursor in a certain line if pressed along with ⇧ Shift in selectable text.
macOS[edit]
Only full-sized Apple keyboards have a Home key. On most macOS applications, the key works like the original on UNIX in the days of dumb-terminals, where Home moves to the start of a document. When the key is pressed, the window scrolls to the top, while the caret position does not change at all; that is, the Home key is tied to the current window, not the text box being edited.[1][2] On Apple keyboards that do not have a Home key, one can press Fn+← for the Home key functionality described above. To get the same result as the Windows platform (that is, moving the insertion point to the beginning of the current line of text), one can press ⌘ Command+←. An application can also be used to change this behaviour.[3]
Linux[edit]
In Linux, the Home key has basically the same functionality as it does on Windows. It returns the cursor to the beginning of the line in editable text, and otherwise scrolls a scrollable document to the beginning. Also, like Windows, the Home key can be used to select all the characters before the cursor in a certain line if pressed along with ⇧ Shift in editable text.
How To: Where Is Control+Home For Excel On A Mac Update ...
Non-GUI applications[edit]
In older screen-oriented, text-based (non-GUI) applications, the user often accessed the 'screen' they wanted through a series of menu screens with numbered options. The Home key took the user to the 'top' menu screen.
Home Key On Macbook Air Keyboard
References[edit]
What Is The Home Key For Mac
- ^'Archived copy'. Archived from the original on 2010-06-03. Retrieved 2010-06-06.CS1 maint: archived copy as title (link)
- ^'Archived copy'. Archived from the original on 2006-11-06. Retrieved 2006-10-09.CS1 maint: archived copy as title (link)
- ^http://apple.stackexchange.com/a/63972/104745
IBM PC keyboard (Windows, ANSI US layout) | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Esc | F1 | F2 | F3 | F4 | F5 | F6 | F7 | F8 | F9 | F10 | F11 | F12 | PrtScn/ SysRq | Scroll Lock | Pause/ Break | |||||||||
Insert | Home | PgUp | Num Lock | ∕ | ∗ | − | ||||||||||||||||||
Delete | End | PgDn | 7 | 8 | 9 | + | ||||||||||||||||||
4 | 5 | 6 | ||||||||||||||||||||||
↑ | 1 | 2 | 3 | Enter | ||||||||||||||||||||
← | ↓ | → | 0 Ins | . Del |
Control Home On Mac
Retrieved from 'https://en.wikipedia.org/w/index.php?title=Home_key&oldid=936048203'