Terminal key mapping for control-arrow, home, end, etc.

This isn't exactly an "I need it now" kind of question, but in brief, what was Apple thinking when they set up the default behavior of ctrl-left-arrow, ctrl-right-arrow, home and end in Terminal?
I'm using OS X 10.4, with the default bash shell. I would like the above-mentioned keystrokes to act like they do in Windows, moving to the beginning and end of words and lines, respectively. I know a couple of ways to do this:
(1) use the Terminal -> Window Settings -> Keyboard window to remap these keys to send the strings (Esc,b), (Esc,f), ctrl-a and ctrl-e; or
(2) add entries to ~/.inputrc to remap Terminal's default strings for these keys to perform the desired action (see http://koorb.co.uk/scrapbook/ or http://www.macosxhints.com/article.php?story=20050525040921189 ).
So, I'm pretty happy now. But I want to make sure I choose the "right" approach, so I want to know which of these approaches is more "normal." Or in other words, why didn't this work in the first place? Where did Terminal's default keystrokes (e.g., Esc,[5C for ctrl-right-arrow) come from? They just produce annoying beeps in bash. Are they standard sequences for some shell that I don't know about? If not, why did Apple pick these keystrokes, instead of using something like "ctrl-E" which would do something useful in bash, which is after all the default shell? I'm basically trying to decide whether I should fix Terminal or fix the shell to work the way I want.
On a related note, does anyone have any idea how I can get command-right-arrow and command-left-arrow to go to the beginning and end of a line in Terminal, instead of switching between Terminal windows?
Thanks for your help!

... Where
did Terminal's default keystrokes (e.g., Esc,[5C for
ctrl-right-arrow) come from? They just produce
annoying beeps in bash. Are they standard sequences
for some shell that I don't know about? I
Somewhere deep in the bowels of computer history....for example
http://vt100.net/docs/vt100-ug/table3-6.html
http://www.termsys.demon.co.uk/vtansi.htm#cursor
that is to say, these codes date back to early hardware terminals such as the VT100. I believe. And that is why Terminal is a member of a class of software called "terminal emulators".

Similar Messages

  • Keyboard arrows, Home, End keys

    In a edit box, such as a search box, my keyboard arrows, Home, End keys do not work since I upgraded to FireFox 8

    ''my keyboard arrows, Home, End keys do not work...''
    That problem is caused by "caret cursor" and the way that Mozilla works with it. Press "F7" reply "No" to turn if off. F7 toggles the setting and you may or may not see the warning but if you do see "No" that would mean you have it on and "No" would turn it off. For a more complete resolution see
    * [http://dmcritchie.mvps.org/firefox/firefox-problems.htm#caret Caret Browsing] in<br>http://dmcritchie.mvps.org/firefox/firefox-problems.htm#caret
    See how you do with Adobe PDF files after fixing the above. You can have PDF files open by default without Firefox involved except to download them, but I expect you chose to view in your browser. You have a lot more control of reading PDF files outside of Firefox. The plug-in is what allows you to open them in a browser.

  • Question about key mapping for bank data in SP3 standard Vendor Repository

    Hello Colleagues:
    The situation is the following:
    1) MDM Standard vendor repository does not use Key Mapping for the qualified table data "Bank Details". This makes sense because normally you would pay a vendor in the same account and bank regardless of the company or R/3 system you are paying him from.
    2) However, here in my project customer don't have the same bank data for all of the 3 R/3 Systems. Furthermore, they would like to pay a vendor in a diferent bank and account number; depending on where the payment is generated (Company or R/3 system).
    Because of this, I though about creating a lookup table for the banks which would use key mapping. I did this and I had no trouble importing bank data in to it.
    Now I have this tables:
    1) Banks: Lookup Flat:
    Country and Bank Key as display fields.
    2) Bank Details: Qualified Flat:
    2.a) Field "Bank" as a non-qualifier display lookup field which points to a record on "Banks" table (Described in number 1).
    2.b) The rest of the fields (Account number, Account holder, Reference, etc.) as qualifier non-display fields.
    This aproach works well in data manager.
    However, when I try to import vendors from R/3, I'm not being able to map the bank details, not even with "compound field" functionality, because I cannot map the display fields in the "Banks" lookup table (Described in number 1); in the "Map Fields/Values" tab in the Destination fields pane, it won't show any fields from this table.
    Also, I'm not very sure if I will be able to syndicate this data back to the R/3 systems correctly, this is; replicate only the banks which exist on each R/3 client system.
    Any ideas on how to solve this problem? Please help.
    Best Regards,
    Jorge.

    ... Where
    did Terminal's default keystrokes (e.g., Esc,[5C for
    ctrl-right-arrow) come from? They just produce
    annoying beeps in bash. Are they standard sequences
    for some shell that I don't know about? I
    Somewhere deep in the bowels of computer history....for example
    http://vt100.net/docs/vt100-ug/table3-6.html
    http://www.termsys.demon.co.uk/vtansi.htm#cursor
    that is to say, these codes date back to early hardware terminals such as the VT100. I believe. And that is why Terminal is a member of a class of software called "terminal emulators".

  • Key mapping for forms on web

    Presently we are using forms 4.5. We have got costomise key
    mapping for operating through forms. Now we want to start forms
    on web (Intranet). Earlier we use to change key mapping through
    oracle*terminal. I require help in knowing how to customise key
    mapping in forms 6i / oracle 8.1.7.

    Hi,
    Boy, I have some good news to you: Oracle*Terminal is no longer
    needed.
    WordPad (or your favorite text editor) is your tool from now on.
    Keyboard files are located in $ORACLE_HOME\FORMS60.
    Simply ignore the binary file fmrusw.res when you run Forms on
    the Web. FMRWEB.RES is the one that is used, and it's pure ASCII.
    There are some comments in the file itself.
    The keys are the same as the Motif version of Forms.
    If you prefer the Windows keys, simply use FMRPCWEB.RES instead.
    How? Check under $ORACLE_HOME\FORMS60\SERVER for your
    formsweb.cfg, go to User Parameters and replace the
    otherparams=
    line with
    otherparams=term=%forms60%\fmrpcweb.res
    Now, anyone can define the Function-0 till Function-9 key
    combinations, in order to use KEY-F0 till KEY-F9 triggers.
    Hope this helps,
    Pedro das Neves
    [email protected]

  • Change Key Mapping for RWMS handheld application

    Dear Experts,
    When we login to handheld in rwms
    http://hostname:9001/forms/frmservlet?config=rwms1324inst_hh
    we are login with USERID: PAR3214
                               PASSWD:PAR3214
                              FACILITY ID : PR
    Now, if we press CTRL+F4, it is login
    My requirment is to change the login option.  Instead of CTRL+F4, it should be mapped to something else like "SHIFT+F4" particularly for RWMS hand held applications.
    Regards,
    Ratnesh

    Hi Ratnesh
    RWMS 14.1 Install Guide ( http://docs.oracle.com/cd/E12456_01/rwms/pdf/141/rwms-141-ig-05.pdf ) has good details on this:
    Update fmrweb.res for Keymapping
    The fmrweb.res file is used to specify key-mapping for the radio frequency devices that are set up in the formsweb.cfg file.
    1. Depending upon device this file may need to be updated.
    2. The installer places a copy in the directory specified in the formsweb.cfg file for each radio frequency URL that is created
    3. The fmrweb.res file comes with key-mapping of CTRL+<number> to work for function keys by default.
    This fmrweb.res is passed as a parameter in formsweb.cfg as otherparams variable.
    Thanks
    Amod

  • Terminal key bindings for Home and End

    I am recording this here in the hope of savings others some time.
    It is often stated that the following Terminal key bindings have to be asserted to get Home and End keys working as intended:
    \033OH
    \033OF
    I find this misleading as it is neither what most people would type nor what they would see.
    I type:
    escape O H
    escape O F
    This results in:
    \033oh
    \033of
    which works as intended but using 'shift' to produce the capitals depicted in most notes about this will not work.

    My default bindings did not work for home and end but page up and page down inexplicably worked with shift. The image below shows the keys and their bindings (eg \033[5~ and \033[6~ stated here for Google!) I applied to Terminal to make home, end, page up and page down behave in the same way as many other applications including iTerm. Remember to type 'esc' to get '\033'.
    I started out trying to improve the readability of large manual pages (eg man bash). Whilst the changes above improved things considerably I have now found better alternatives.
    I tried iTerm - the keys worked correctly but inconsistencies between the various window size settings did not inspire confidence.
    I now use ManOpen.app which I have configured to open when I type eg 'm chmod' in Terminal - I changed the name of openman to m and put it together with openman.1 in /usr/bin. The pages scroll normally and have hot links to other manual items. This is a simple way to vastly improve manual reading. The only slight negatives I have found are:
    1 - two preference panes will not open - defaults OK for me
    2 - window positions not remembered - since size can be set I can live with this
    3 - text cannot be set to soft wrap to window width (misnamed zoom by some applications).
    I would be interested to hear if others have found better ways of viewing manuals.
    Here are some interesting pages:
    http://en.wikipedia.org/wiki/Tableof_keyboard_shortcuts#Command_lineshortcuts
    http://www.tuaw.com/2008/03/07/here-comes-your-man-viewer/

  • ThinkPad Compact USB Keyboard with TrackPoint: Suggestion: Fn+Arrow keys as Page Up/Down/Home/End

    As it is now, Fn + up/down/left/right do not send any keys to the OS. Would it be possible to update the keyboard firmware to send the following:
    Fn-Up: Page up
    Fn-Down: Page down
    Fn-Left: Home
    Fn-Right: End
    I think this is common in laptop keyboards, i know my macbook air does this, and my logitech K760 does it as well. It is a lot more convenient than accessing the home/end keys on top of the keyboard (the page up/down placement is easily accessible already).
    If it is not possible in the current version, at least consider it for the next revision - i would buy a new keyboard for it :-)

    Yes, i realize it could be confusing for some to have two ways of accessing the same keys.
    The issue i have with the thinkpad layout is that the keys are split apart - i like having page up/down and home/end clustered together for navigating - with the thinkpad layout, half the keys are in the lower half of the keyboard, and the other half in the top.
    Also, since arrow keys are also often used for navigating, it makes sense to me to keep them together - for example, "go to the end of the line and select the last word" can be accomplished without moving the right hand from the arrow keys, and the left hand using Shift/Fn/Control

  • Possible to create Fn + Arrow key combos to emulate Home, End, etc.?

    Hey all,
    Lenovo puts the Fn key on the lower-left corner of the keyboard. Apple also does this, and pressing Fn + the arrow keys emulate various page nav keys like Home, End, Page Down, and Page Up. I have always found these features to be very helpful because these key combos are much easier to reach than the small or non-existent Home, etc. keys on smaller keyboards.
    I was wondering if anyone knew of a way to assign Fn arrow key combos on the Lenovo W500 line of Thinkpads. They currently seem unassigned although some documentation says they are used to advance track, etc. in Windows Media Player. I wonder if AutoHotKey would permit this functionality.
    Anyway, I'd appreciate any advice that anyone can provide. Thanks.

    AFAIK, Fn doesn't show up as a modifier to the system; it's handled by the keyboard/BIOS directly.
    AutoHotkey might work if you can intercept media commands and replace it with a key combination of your choosing. It's probably your best bet.
    W520: i7-2720QM, Q2000M at 1080/688/1376, 21GB RAM, 500GB + 750GB HDD, FHD screen
    X61T: L7500, 3GB RAM, 500GB HDD, XGA screen, Ultrabase
    Y3P: 5Y70, 8GB RAM, 256GB SSD, QHD+ screen

  • Keyboard shortcuts for text editing [Home-End]

    Greetings.
    Is there a way for me to change the text navigations keys
    in OSX for mapings that would react like any other Linux/windows system ?
    for example pressing the end button brings me to the end of the document instead of the end of the line... home brings me at the begening of the document...
    instead i have to use the CTL -> and CTL <-
    wich is a bit weird for me being an old windows programmer.
    i'd love to change that setting system wide, is that possible ?
    thank you
    Sandro.

    Amy~ Yep the lasso tool was what I verified with another user. 'L' seems to be bound indefinitely to loop through different types of lasso tools and it was annoying them because they just wanted L to be the regular freehand lasso. I removed 'L' from being an option on the polygon lasso and even set it explicitly to SHIFT+L as well as set the lasso tool to a completely different keyboard combo. 'L' still cycled through lassos haha. It needs some fixes.
    fertolg~ At least you have a workaround for now. I'd go nuts if I couldn't use keyboard text selection writing code, oy! You're welcome and if you're all set please mark correct so we can filter unanswered. Good luck!

  • Key Mapping for Flat lookup tables

    Hi,
    How do we decide if we need to make Key Mapping "Yes" for flat look-up tables?
    Can anyone plz explain with an eg on where to make key mapping yes or no for Flat Tables.
    Thanks,
    Ketan

    Hi,
    Can anyone plz explain with an eg on where to make key mapping yes or no for Flat Tables.
    1. A remote system’s objects are mapped to master data objects within MDM using key mapping. A key mapping maintains the relationship between the remote system’s identifier (or key) for an object and the corresponding master data object in MDM.
    2. in the data manger based upon some strategy, you found that 4 records are duplicate, and then you merged into single record.
    the merged record is having 4 records inside it with respective remote keys.
    if you want to edit those records, key mapping should be enabled for that particular table.
    3. while harmonizing the records to the respective client systems, you can use edit key mapping functionality for merged records.
    if you enabled key mapping functionality in the console for the particular table, then only you can aceess EDIT KEY MAPPINGS functionality in data manager & syndicator.
    hope this may help you,
    Regards,
    Srinivas

  • [Zen Micro] Road map for firmware 1.x / end of life

    Hi all,
    does anyone (hint, hint, moderators) know what's the supposed road map for the Micro firmwares. Ok, I know that Creative doesn't comment on the functionalities and releases .
    But my essential question is this:
    <FONT color=#cc0000>Is the firmware .x (driver-based, with MediaSource support) end of life, or will it continue to be developed? Will all new, generic features of the 2.x (PlayForSure...) line also be integrated in a continuing .x line of firmware? Or not?
    I found out in <A target=_blank href="http://forums.creative.com/creativelabs/board/message?board.id=dap&message.id=9892">this thread about firmware 2.x[/url] that the new 2.x beta firmware has new features, not being promoted on the download site (or forum). For the moment, I prefer MediaSource over WMP to manage my collection, and for that reason I want to stick with .x firmware.
    <A target=_blank href="http://forums.creative.com/creativelabs/board/message?board.id=dap&message.id=9892">[/url]I really expect a customer-oriented company (and I recently filled in a Creative survey on quality of support services after getting an invitation email, so they do suggest they care) to share a roadmap - even for just some months - with their users.
    Thanks.

    Creative very rarely share this kind of information, so I think it unlikely they will.

  • FCP pre-created key mapping for other NLE's?

    The key mapping feature of FCP is handy because you can set up
    a custom keyboard that emulates another NLE editing system that you
    might be more familiar with while learning FCP (i.e. Avid).
    Does anybody know if anyone has created keyboard mapping
    file presets for download or purchase? I'm interested in emulating
    Pinnacle key mapping in FCP. I realize I can manually create it but thought
    perhaps there was a source you could go to where it was already done
    for you.
    Any input would be appreciated.
    Thanks.

    I don't think there's any place to buy them.. you might find a user on here who has emulated something like that and could email it to you. I use a keyboard mapping similar to Avid but it really is the best of both keyboards in one IMHO.
    it's easy to map so with the time spent searching you could probably make it to your liking.

  • Maxdb  xuser Key "c" for "control"  not exist

    Hello everyone,
    a colleagues had a problem on a MaxDB 7.7 with NW 7.01 Java only Systems.
    He said, that there is no xuser key "c" for the user "control".
    <xuser list>
    Ok, I can create the key with
    xuser -U c -u control,<pass> -d <DBSID> -n <host> set
    I this real ?
    It's a bug ?
    It' a new feature ?
    Thanks,
    Rainer

    > we make backups with the xuser-key  "c"
    >                   " dbmcli -d $sid -U c -uUTL -c ... "
    Why do you put the SID again into the dbmcli call?
    It's already included in the XUSER data.
    > In the old Version the XUser Key stand for user  control.
    It's still like this.
    > In the new Version NW7.01on MaxDB 7.7 there in no default  xuser Key  "c" .
    >
    > XUSER Entry  1
    > -
    > Key              :DEFAULT
    > Username    :SAPDBJ2EE
    > -
    > XUSER Entry  2
    > -
    > Key              :c_J2EE
    > Username    :CONTROL
    > -
    > XUSER Entry  3
    > -
    > Key         :w
    > Username    :SUPERDBA
    Hmm... actually I never came across that.
    Anyhow, since you can trigger backups with the 'w' key (SUPERDBA) as well there's no problem here.
    > It's typical for all new Version from Database  Maxdb   > 7.7 ?
    > It's typical for all new Version from NW   >  7.01 ?
    > It's typycal for Java only Systems ?
    As I said - I never realized that the key should be generally missing.
    Maybe somebody deleted the key on your system?
    Or maybe it was not created in the first place for the user you're working with.
    regards,
    Lars

  • Satellite A200 - Inactive keys: CTRL, SHIFT, PGUP, PGDN, HOME, END

    Hi,
    I have a Satellite A200 and about a week ago, some of my keys simply stopped working.
    All CTRL and SHIFT (left and right), PGUP, PGDN, HOME, END, are inactive.
    I uninstalled the keyboard from Device Manager and autoreinstalled it at system startup, but nothing happened.
    Is there a keyboard combination to reactivate these keys?
    Thanks.

    Hey,
    There is no special button activate these keys. Usually all these keys work always and there is nothing to disable/enable them.
    If the keyboard is malfunctioning you can test with an external keyboard as Paolo30 wrote.
    If you need help from an authorized service provider you can find a list here:
    http://eu.computers.toshiba-europe.com > Support & Downloads > Find an authorized service provider
    Good luck! :)<

  • Arrows /home/end keys don't scroll

    As said barmalutka at this post:
    http://discussions.apple.com/thread.jspa?messageID=2888131&#2888131
    the problem is Acid Search, but I love this plugin, and have tried to deactivate the "find as you tipe" option, and the problem goes!
    No more problems, and AcidSearch runing

    Hi
    Welcome to Apple Discussions
    Strange. I use AcidSearch and my scroll arrows on my G4 iBook work as intended for page scrolling (I'm traveling, so I don't have access to my G5 iMac/Keyboard.) I'm wondering if the problem is specific to Intel machines, since you and the referenced thread are both using this type of machine?
    In my AcidSearch options, only the "enabled" box is selected in the "Find as you type" section.
    Post back

Maybe you are looking for