<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Fixing the Home/End keys on OS X</title>
	<atom:link href="http://www.n8gray.org/blog/2004/05/07/fixing-the-homeend-keys-on-os-x/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.n8gray.org/blog/2004/05/07/fixing-the-homeend-keys-on-os-x/</link>
	<description>distraction in action</description>
	<pubDate>Fri,  5 Dec 2008 08:18:09 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Richard Hornsby</title>
		<link>http://www.n8gray.org/blog/2004/05/07/fixing-the-homeend-keys-on-os-x/#comment-211</link>
		<dc:creator>Richard Hornsby</dc:creator>
		<pubDate>Wed, 06 Jul 2005 18:30:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/sandbox/wordpress/?p=80#comment-211</guid>
		<description>This thread is of great use ... it really should be in a FAQ somewhere.  Having come from Linux, some of the default keybindings on OSX seem completely inane.

Anyways, I believe that the correct binding for the end key is

ESC[F  and not  ESC[f

This should appear as 33[F

The binding for the home key is 33[H

(If you look through the list of defaults, Shift+Home and Shift+End give you the behavior you want, but that seems kind of a dumb default, imo.)</description>
		<content:encoded><![CDATA[<p>This thread is of great use &#8230; it really should be in a FAQ somewhere.  Having come from Linux, some of the default keybindings on OSX seem completely inane.</p>
<p>Anyways, I believe that the correct binding for the end key is</p>
<p>ESC[F  and not  ESC[f</p>
<p>This should appear as 33[F</p>
<p>The binding for the home key is 33[H</p>
<p>(If you look through the list of defaults, Shift+Home and Shift+End give you the behavior you want, but that seems kind of a dumb default, imo.)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: n8</title>
		<link>http://www.n8gray.org/blog/2004/05/07/fixing-the-homeend-keys-on-os-x/#comment-210</link>
		<dc:creator>n8</dc:creator>
		<pubDate>Mon, 06 Dec 2004 20:10:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/sandbox/wordpress/?p=80#comment-210</guid>
		<description>Well, the "numeric codes" for keys in OS X are kind of hard to define.  There are a variety of different levels at which codes get assigned to keys -- the driver level, the OS level, the UI level, X11, etc.  If you're not able to use the home/end keys in your terminal program it may be due to the keyboard settings of the terminal.  If you're using Terminal.app you should check the "Window Settings..." context menu under "Keyboard" to see what's assigned to those keys.  In mine, end is assigned to Esc[f and I don't have any problems.



It may also be due to the "terminal emulation" part of the equation.  In the Preferences dialog for Terminal.app, try selecting "xterm-color" for the terminal type.  Some programs and libraries use this information when deciding how to react to keystrokes.  If xterm-color doesn't work, try plain xterm and/or a few other settings (be aware that these settings only take effect in terminal windows opened after you change them).



Hope that helps.  This terminal emulation business is a messy, messy aspect of computing -- an unfortunate legacy of days when lots of people were trying to solve the same problem in mutually incompatible ways.  One would hope that by now it all would have been settled, but alas, we are not so lucky.</description>
		<content:encoded><![CDATA[<p>Well, the &#8220;numeric codes&#8221; for keys in OS X are kind of hard to define.  There are a variety of different levels at which codes get assigned to keys &#8212; the driver level, the OS level, the UI level, X11, etc.  If you&#8217;re not able to use the home/end keys in your terminal program it may be due to the keyboard settings of the terminal.  If you&#8217;re using Terminal.app you should check the &#8220;Window Settings&#8230;&#8221; context menu under &#8220;Keyboard&#8221; to see what&#8217;s assigned to those keys.  In mine, end is assigned to Esc[f and I don&#8217;t have any problems.</p>
<p>It may also be due to the &#8220;terminal emulation&#8221; part of the equation.  In the Preferences dialog for Terminal.app, try selecting &#8220;xterm-color&#8221; for the terminal type.  Some programs and libraries use this information when deciding how to react to keystrokes.  If xterm-color doesn&#8217;t work, try plain xterm and/or a few other settings (be aware that these settings only take effect in terminal windows opened after you change them).</p>
<p>Hope that helps.  This terminal emulation business is a messy, messy aspect of computing &#8212; an unfortunate legacy of days when lots of people were trying to solve the same problem in mutually incompatible ways.  One would hope that by now it all would have been settled, but alas, we are not so lucky.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Danny Abesdris</title>
		<link>http://www.n8gray.org/blog/2004/05/07/fixing-the-homeend-keys-on-os-x/#comment-209</link>
		<dc:creator>Danny Abesdris</dc:creator>
		<pubDate>Mon, 06 Dec 2004 07:27:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.n8gray.org/sandbox/wordpress/?p=80#comment-209</guid>
		<description>Hello,

Thank you for posting this help article on fixing the
home and end keys on the mac.
Much appreciated.
I was wondering how to determine the actual numeric keycodes
for these keys?
You see, I use a handy unix-based editor called "nled"
and would like to have the end/home keys work the same
way when I edit a file from the command line.
The end key seems unresponsive when editing a file within
a terminal window.
I tried capturing the keycode using getch( ); in ,
but nothing happens.
Is the "end" key only available for cocoa-based apps?

Thanks for any help/feedback.
...Danny</description>
		<content:encoded><![CDATA[<p>Hello,</p>
<p>Thank you for posting this help article on fixing the<br />
home and end keys on the mac.<br />
Much appreciated.<br />
I was wondering how to determine the actual numeric keycodes<br />
for these keys?<br />
You see, I use a handy unix-based editor called &#8220;nled&#8221;<br />
and would like to have the end/home keys work the same<br />
way when I edit a file from the command line.<br />
The end key seems unresponsive when editing a file within<br />
a terminal window.<br />
I tried capturing the keycode using getch( ); in ,<br />
but nothing happens.<br />
Is the &#8220;end&#8221; key only available for cocoa-based apps?</p>
<p>Thanks for any help/feedback.<br />
&#8230;Danny</p>
]]></content:encoded>
	</item>
</channel>
</rss>
