on 10.5 I got this from infocmp (good old terminfo utility):
$ infocmp -L|grep cursor cursor_address=\E[%i%p1%d;%p2%dH, cursor_down=^J, cursor_home=\E[H, cursor_left=^H, cursor_right=\E[C, cursor_up=\E[A, delete_character=\E[P, parm_down_cursor=\E[%p1%dB, parm_left_cursor=\E[%p1%dD, parm_right_cursor=\E[%p1%dC, parm_up_cursor=\E[%p1%dA, restore_cursor=\E8, save_cursor=\E7, scroll_forward=^J, $
which means: use \E[H for home key
Don’t ask me why the end key is missing in terminfo.
Submitted by Jürgen Jatzkowski (not verified) on 2008.03.24 @ 03:34. |
[code]
[blockcode]
[applescript]
[bash]
[c]
[cpp]
[css]
[diff]
[drupal5]
[drupal6]
[html4]
[java]
[javascript]
[latex]
[lisp]
[lua]
[m68k]
[make]
[mysql]
[objc]
[pascal]
[perl]
[php]
[python]
[ruby]
[sql]
[xml]
More information about formatting options
on 10.5 I got this from infocmp (good old terminfo utility):
$ infocmp -L|grep cursor cursor_address=\E[%i%p1%d;%p2%dH, cursor_down=^J, cursor_home=\E[H, cursor_left=^H, cursor_right=\E[C, cursor_up=\E[A, delete_character=\E[P, parm_down_cursor=\E[%p1%dB, parm_left_cursor=\E[%p1%dD, parm_right_cursor=\E[%p1%dC, parm_up_cursor=\E[%p1%dA, restore_cursor=\E8, save_cursor=\E7, scroll_forward=^J, $
which means: use \E[H for home key
Don’t ask me why the end key is missing in terminfo.
Submitted by Jürgen Jatzkowski (not verified) on 2008.03.24 @ 03:34. |