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.

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <img> <blockquote> <pre> <div> <span> <b> <i> <br> <table> <tr> <td> <th> <small> <sub> <tex> <equation> <equations> <s>
  • You can enable syntax highlighting of source code with the following tags: [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].
  • You may insert videos with [video:URL]
  • You can use Markdown syntax to format and style the text. Also see Markdown Extra for tables, footnotes, and more.
  • Adds typographic refinements.
  • LaTex commands embedded in text will be interpreted and rendered. Additional information can be found at DruTex Documentation Pages
    • Allowed commands include: \atop \binom \cdot \cfrac \choose \frac \int \ln \over \sum \to
      Allowed environments include: align array equation equations gather matrix split
    • Provides different environments to create rendered images (especially maths).
    • Assists automatic numbering of tex, equation, and equations environments.

    More information about formatting options