Simple Bash/keyboard (key mapping) question

If I log in at a virtual console, the home key moves the cursor to the start of the line, as root, or as a user.  If I'm in WindowMaker, and I open an Eterm, home key moves the cursor to the start of the line, just like in the VC, however, if I SU to root, the home key gives me a ~ at the current cursor position.
Where should I be looking to fix this, besides 45 minutes with Google?
Thank you for any help, ideas, etc...

Found the problem:
Some package install added this to my .bashrc
test -n "$DISPLAY" && export TERM=xterm-color
Bug?  Probably not, but annoying that the assumption is made that I am running xterm.
The fix was easy, delete the line, as I've been using a custom .bashrc that, among other things, handles TERM exporting properly.

Similar Messages

  • Key mapping question. (for mobile phones with PC-like keyboard)

    For phones with mini keyboard (one button per one character, like a PC keyboard).
    I'm trying to implement a form with few text boxes. The goal is to let user type the message like they're using a PC keyboard (unlike in traditional phones, where you need to press the 'numpad two' button three times in order to type the character 'C')
    I've successfully implemented this functionality. But it's an ugly implementation because I use a switch-cases for each and EVERY keycodes.
    Forexample:
    char inputChar;
    switch(keyCode)
    case 97: input = 'A' break;
    case 98: input = 'B' break;
    // go on until every keys are covered, including the lower case letters. T_T
    buffer.append(inputChar);
    Yes I know that my programming skill is real crap >_<, so I try google for some good implementation method. But I always found only the detail about the traditional numpad implementations.
    Ok, my real question is, can this keyboard implementation be done in a better way? The code should be able to look more beautiful than this, right?
    Thank you. =)

    I still don't get the problem here?
    A textbox in a form will work just fine with those mini keyboards. You don't need to do anything for it..
    Otherwise, this code can obviously be done better, a simple array where you just lookup your keycode will be much simpler and faster for instance.

  • UK PC Keyboard Key Mapping problem

    I've tried two UK PC Keyboards on my new mini. Both work fine apart from a few keys which are mapped incorrectly.
    The most annoying are that the @ (at sign) and " (double quotes) are the wrong way round.
    Is there a setting I can change (or some software I can install) to re-map these keys? I've tried changing the keyboard type in system preferences but it has no effect.
    Everything else on the device is superb!
    Thanks

    Incredibly, i found the easiest solution to this problem (no, not the solution of buying a Mac keyboard!) lay on Microsoft's website...
    I was using a Microsoft Natural Multimedia keyboard with my mini. I went there out of interest to see if there were drivers for it that would allow the use of some of the media keys (and there were incidentally, but that is off-topic!).
    I went to http://www.microsoft.com/mac and followed a link to hardware. I forget exactly what route i followed, but i besically tracked down the mac drivers for the natural multimedia keyboard. In addition to the drivers download there was a microsoft keyboard layout download as well. I suspect this layout would be available as a download whichever keyboard you picked.
    After installing this layout i then had an extra option in the international settings box called "British - Microsoft". Bingo! Job done.
    Now i still found it frustrating since everything you read and all the software you have still talks about keys that the MS keyboards simply don't have and you have to remember that the "command" key is the "windows" key, etc., etc. In the end i just gave in and bought one of the apple pro keyboards. It gave me two extra usb ports and is LOVELY to use.
    Bit of a learning curve mind since the @'s and "'s are in the "wrong" places if you come from the MS world, but i figured i may as well go through the entire learning curve and take that on board as well
    Martin.

  • Vim key mapping question, Xterm question

    Since i type Dvorak, I wish to have a mapping to allow me to move between windows in vim with Ctrl-W d/h/t/n instead of Ctrl-W h/j/k/l  . I have looked in the vim help files, and online, but can't find how to do it. I tried eg.
    :noremap <c-w>d<c-w> <c-w>h<c-w>
    in vimrc, and the same thing but with <Down> instead of 'h', but neither worked... i'm not sure how to do this.
    The second thing I want to ask is what the easiest way to bind middlemouse button to a keyboard combo is, so that I can paste stuff highlighted in eg. firefox into my terminal running screen - any ratpoison users will understand my desire to use the mouse as little as possible.. i use Screen's scrollback buffer mode to copy and paste everything within the terminal itself using only the keyboard, but I wish to be able to do the same thing from firefox to the terminal.
    The third thing is (and I'm aware I'm less likely to get a solution to this one    ) are there any obvious reasons why I wouldn't be able to switch to a tty from an X server? I've had this problem for several months now, and have still not resolved it (mainly because my own research alongside forum posts hasn't turned up any potential causes of the issue).
    I love you all   
    Komodo

    SleepyDog wrote:shift+insert
    Sadly I don't have an insert key on my keyboard...
    phrakture wrote:
    There's also a few apps that can be called to dump the X selection/clipboard buffers... xcutsel comes to mind.
    You can probably bind a key in screen to dump xcutsel to the tmp file screen can use as a copy/paste buffer, then use screen's paste functionality.
    I bring this up only because there's potential here to do wacky things with screen's paste-from-file setup, i.e.
    date > /tmp/screen-exchange
    bam, you can bind a key to "insert current date"
    Cool tip phrak, thanks muchly
    So, that's Q2 down. Anybody brave enough to attempt Q3? It's a toughie  :?

  • IPad bluetooth keyboard key mapping/customizing

    I'm using iPad Air 2, and also using zagg folio bluetooth keyboard.
    Since I am a foreigner living in USA, I often have to type two different languages in the same document.
    I know I can change language by cmd+space key, but it slows down my typing. Is there any way to map the right cmd key into language key?
    I don't really use right cmd key so if possible I want to change that key to language key, or just make it as a shortcut for cmd+space so I can use it to change language when I'm typing.
    iPad Air 2, 64GB Wi-Fi, iOS 8.3
    using zagg folio bluetooth keyboard

    As far as I know, there is no way for users to modify the kind of mappings you are talking about in iOS.  It's only possible in the full OS X.

  • Serious Keyboard Key Mapping Issue

    Hi there everyone...
    Yesterday evening, while i was watching a movie on my Macbook, i accidentally pressed the command button, and all of a sudden the movie stopped playing.
    After some research on the internet, I activated the keyboard palette, and found out that several keys had issues
    1. The left command button behaved as if i was pressing command + . (period key)
    2. The right command button behaved like command + up arrow key
    3. The up arrow key like issue 2 above
    4. The period key like issue 1 above
    p.s. the up arrow and period keys arent working at all, they just behave as i explained above
    Since it had to do with a modifier key, i tried to change the modifier key settings, but even though i tried accessing the modifier key settings through preferences, no pop-up window opened and no change could be made.
    Even though i tried a PRAM zapping, nothing happened because as i understand it, the system doesnt recognise the shortcut, since together with command,option,p,r, the period key is seen pressed as well.
    If anyone can help please do!
    Thanks for your time everyone,

    So I booted from the install disk.... Didnt now what exactly to do, so i use the terminal to see if the problem with the keys persisted... And unfortunately it did.... Didnt know what to do next so i quit and booted again...
    But i restarted my macbook, only to boot into hardware test mode, to see if the problem really is on hardware side.
    I am running an extended test, but poking around a bit, i noticed that the up arrow key worked fine...
    Waiting now to see the results from the test, which i will post after it's finished.

  • Simple one to many mapping question

    Hi,
    In the Toplink tutorial there is a one to many relation between Employee and PhoneNumber, and one to one between PhoneNumber and Employee.
    If I don't require can I eliminate the one to one relationship between PhoneNumber and Employee. Or Toplink requires it?
    Thanks
    -Mani

    Hi,
    The purpose of creating one-to-one back reference mapping in the target is so that the foreign key information can be written when the target object is saved. Alternatives to the one-to-one mapping back reference include:
    Use a direct-to-field mapping to map the foreign key and maintain its value in the application. Here the object model does not require a back reference, but the data model still requires a foreign key in the target table.
    Use a many-to-many mapping to implement a logical one-to-many. This has the advantage of not requiring a back reference in the object model and not requiring a foreign key in the data model. In this model the many-to-many relation table stores the collection. It is possible to put a constraint on the join table to enforce that the relation is a logical one-to-many relationship.
    Raanan.

  • Keyboard Function-Key mapping in Forms 10gAS

    Greetings,
    Can anyone help with a quick outline of the way keyboard function keys are implemented on the Application Server in Forms 10g?
    My situation is that I have two unix servers, one for Development, one for Production. When running my Forms from a browser window, one of the servers responds to the F8 key for Execute-Query, the other server does not.
    I presume the mapping is done on the server, with some sort of configuration file. Perhaps something's been overridden by mistake somewhere. I have checked forms.conf, forms.properties, formsweb.cfg and frmweb.res, and cannot see anything that might relate to these Keyboard Function-Key settings. I've also tried finding a Developers Reference Manual online, but have had no luck.
    It's bound to be something really simple, but I can't seem to crack it. Do you know what I'm missing?
    Pete ?:|

    There are two basic versions of key mapping fmrweb.res files. Forms is released with a fmrweb.res file that has Ctrl+S for commit.
    But there is also a fmrpcweb.res file that can be used in place of the other -- you just rename it as fmrweb.res in the other's place.
    Both files are simple text files you can edit with Notepad or other simple text editors.
    You can find more about fmrweb.res in the first post (a ways down) in this thread:
    Forms 10g installed and running on Windows Vista

  • 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".

  • Map Thinkpad Mouse Buttons to Keyboard Key

    Peace all!
    Does anyone know of a way to map the thinkpad mouse buttons to a normal keyboard key? I am unable to identify any mappable keycode using xev. Is it hardwired or something?
    ButtonPress event, serial 34, synthetic NO, window 0x4600001,
        root 0x115, subw 0x0, time 3353217, (155,11), root:(901,337),
        state 0x0, button 1, same_screen YES
    ButtonRelease event, serial 34, synthetic NO, window 0x4600001,
        root 0x115, subw 0x0, time 3353326, (155,11), root:(901,337),
        state 0x100, button 1, same_screen YES
    What I've managed to do is the opposite; map a keyboard key to a mouse button.
    http://www.geocities.jp/fred_b_maciel/kbd/kbd-e.html
    Basically involves using the Accessibility X mouse controlling feature(usually using numpad keys); remapping those to other keys.
    Thanks in advance?

    http://wiki.archlinux.org/index.php/Map … o_keycodes
    I presume I have to use this?
    http://wiki.archlinux.org/index.php/Setkeycodes
    The only way to detect a scancode is with,
    dmesg|tail -10
    fact, any time we press a key which has a scancode but no keycode, the kernel suggests us to use just 'setkeycodes' to
    The problem is thinkpad's mouse buttons are already bound. Is there another way to find out?
    The "Using HAL" website is broken.
    Also, is there a way to determine if the keys are actually hardware bound? Some of the thinkpad's keys are eg. FN keys and maybe the mute/light keys. In that case, there's no point in continuing further.

  • Wireless Keyboard Mapping Question

    I have one of the previous generation white (not aluminum) AWKs that I use with my MacBook Pro when I have it hooked up to an external display, and I was wondering if there was a way to map the some of the function keys (i.e. F7, F8, F9) to invoke the Play/Pause and Skip commands that they are mapped to on the Pro's keyboard. Mapping them in the PrefPane seems to make them work, but only application specifically when iTunes is open. Is there a way to do this such that the invoke the command across any app/in Finder like the ones on the laptop keyboard do?

    That's "BacK" in Hungarian, correct?
    That keyboard shortcut is already written, meaning it is already part of the standard suite of shortcuts.
    If you mean how to enter it on the keyboard...
    The  ⌘  character represents the Command key, the one immediately next to the Spacebar at both ends. Press and hold that key down while entering the  [  key once. The  [  character on the Hungarian keyboard layout is Option-8 so the full keyboard shortcut for "Back" would be Command-Option-8
    The paired shortcut, Forward, using the Hungarian keyboard layout would be Command-Option-9

  • Map gamepad key to keyboard key

    Hi,
    I am trying to use an Xbox 360 gamepad with my mac. I am able to use it with most things but one of my games has a drop down of keyboard keys instead of a place that I can just press a button and it registers that.
    Is there either something in Mac or an app or something that will let me do that? Preferiable able to make it only do it for this app, but isnt needed.
    Thanks,
    Jon

    Hi, ninjon -
    USB Overdrive has the ability to map keyboard strokes (plain or combos) to the buttons of most input devices, particularly game controllers and multi-button mouses. It can also provide better control for cursor speed and relative velocities. Best, it provides those settings on a program-by-program basis, auto-switching from one set to another as you switch programs. USB Overdrive has been around for a long time (since OS 9 days), and is safe.
    You can get it via this page -
    http://www.usboverdrive.com/USBOverdrive/News.html

  • Suggested alternative to key mapping?

    Hello!
    I started using Abelton live for putting together easily accessible virtual instruments for live performance. For example, if my band performs the entire Dark Side of the Moon album, I can create each song in order of the album with the necessary pianos,synths, and organs for each and easily enable/disable them with the use of key mapping (assigning on screen functions to keys on my laptops keypad, just to be thorough) I have a M-Audio Keystation 61 which is a very simple midi controller and doesn't have any knobs for a lot of on screen control. So the use of key mapping is important for me.
    I like the layout and simplicity of Mainstage and would rather use it for this sort of thing, but without key mapping I have no quick way of (for example) muting and unmuting instruments within each song/performance other than trying to do it with the mouse, which is too sketchy for live performance.
    Also with Abelton, I could assign the volume slider on my midi controller to multiple channels/instruments, i.e. control volume for 2 or 3 instruments at once, mainstage only lets me assign one on screen function per project to a single midi hardware control
    I don't know a ton about Mainstage, so my questions are ...
    1. Is there an alternative to key mapping for mainstage?
    2. Is it possible to assign multiple on screen functions to one hardware control?
    Thanks!

    Hi
    Lootinant wrote:
    1. Is there an alternative to key mapping for mainstage?
    If you are 'short' of buttons/switches on your keyboard controller, you could create screen-controls assigned to (say) the lowest notes on your keyboard, and then map them to Next/Previous patch Actions in order to change Patches in MS.
    Lootinant wrote:
    2. Is it possible to assign multiple on screen functions to one hardware control?
    Multiple mappings are possible via the Screen Control Inspector (or the new Assignments and Mappings Pane). Select the Screen Control, and in the Inspector click the '+" button (top right of the Inspector) to add an additional mapping.
    CCT

  • Key mapping to extension.

    Hi,
    I have setup Exchange 2010 with Unified Messaging role and Lync 2010. They are integrated and working fine.
    I also have a prompt that says: "Welcome to CompanyABC. If you know the extension number of the person you wish to speak to, please dial now. Alternatively, press 1 for Group1, 2 for Group2, 3 for Group3, 9 for Group4 or hold the line".
    Each extension has 3 digits and what I need to achieve is if the user press 3 digits on the main prompt, he gets transferred to the extension. However, this seems not to be an option on the UM Auto Attendant because the key mapping only accepts
    one digit.
    Does anyone know how to implement this scenario on Exchange UM?
    Thanks in advance,
    Giancarlo

    you are probably trying to acheive both DTMF key mapping dialing AND extension dialing at the same time. Exchange UM AA cannot do this. Below is a work around:
    http://windowspbx.blogspot.com/2013/04/how-to-achieve-dial-by-extension-with.html?showComment=1390403964024#c1243844103915151016
    http://lync.ideascale.com/a/dtd/Exchange-UM-Auto-Attendant-Dial-Extension-or-Key-Mapping/423149-16285
    +Say thanks and observe basic forum courtesy:
    +If this post answered your question, Mark As Answer
    +If this post was helpful, Vote as Helpful
    windowspbx blog: my thots/howtos
    see/submit Lync suggestions here: simple and public

  • Key Mapping Sample

    Hi
    Is there any simple key mapping sample?
    I would like to create a protoype loading (manually) a materials base from different sources (companies) and later try to create key mapping, in order to understand how this key mapping works.
    Regards,
    Ronaldo.

    Hi Roman
    Thanks for your answer.
    As I am beginner in MDM, I am not even sure if key mapping is what I need.
    What I want to do is:
    - Simulate a group with 3 companies. In this group each company has its own materials database. So, let's suppose a certain material has a different code in each company.
    - In company A, this material is called A1.
    - In company B, this material is called B1.
    - And in company C, C1.
    After these material bases have been loaded in MDM, someone would analyze these products, and based on there coincident physical characteristics conclude: OK, all are the same material. All these materials would receive a UNIQUE identification, which could be used to generate cross-company reports, allowing these "different" products be grouped together (or compared).
    This UNIQUE Identification should be something like below:
    Product  Company   Unique Code
    A1       A         X001
    B1       B         X001
    C1       C         X001
    Is that the objective of Key mapping?
    If so, I am having some problems to make it works:
    - There is a agency field in Key Mapping. What it means? Would it be the same as "company" in example above? If so, why there is no Agency field in records that I insert manually...I feel I am missing some important concept here.
    - When I insert a key mapping for my second product, the key mapping for the first one is delete. Why?
    Definitively I know that my questions are very basic (and boring, probably). If there is a tutorial for newbies, I would appreciate.
    Regards,
    Ronaldo.

Maybe you are looking for