LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   F-key maps (https://www.linuxquestions.org/questions/linux-newbie-8/f-key-maps-4175467375/)

kennygreenwald 06-25-2013 03:54 PM

F-key maps
 
I'm having an issue with my function keys in the terminal on my centos 6.4 machine. Whenever I press F1, for example, the screen prints A. F2 prints B, F3 prints C, etc. In short, I need this to not happen. This does NOT happen on my gui screen, just in the terminals. All of the basic keyboard settings are correct and quite frankly I'm just not 100% on where to change these specific mapping settings. I attempted to search Google and these forums to no avail.
Any help would be appreciated, keep in mind I'm still a bit of a Linux n00b so if you need any more info I'd be glad to supply it.
Thanks!

RockDoctor 06-26-2013 11:51 AM

Does this help?

kennygreenwald 06-26-2013 12:59 PM

I had tried manually editing the keymap but nothing changed. I actually just removed all of the F-key entries on the keymap in the hopes that it would just send the default key code but I'm still getting just A, B, C, D, etc.
I also noticed another mapping issue where my Backspace key is sending ^? as opposed to ^H. The delete key normally sends ^? but on Centos 6.4 it's sending something crazy like ^[[3~ which is just an ESC character with some gobbledygook at the end.
I made a virtual machine on my PC and loaded a fresh CentOS 6.4 to do some tests and make sure that I hadn't just messed something up but I'm getting the same results. I tried a different keyboard and I tried the same keyboard on another machine running Centos 5 and that one sends the appropriate codes (^? for Del, ^H for Backspace, and the F-keys work normally).
Is there anywhere that I can look for these changes? Maybe they're being changed during init? or maybe somewhere in root's user profile or something?
Oh and also my TERM is set to Linux, I've tried changing it to ansi and vt100 and all that stuff and nothing changed.

kennygreenwald 06-26-2013 02:02 PM

Okay so I believe I've pinpointed the problem. After combing through the keymap (again) I noticed that when I dumpkeys to a file it has a bunch of strings in it that are changing how most keys work. The problem is that my keymap doesn't have these string values, they are being added somewhere else. I've changed /etc/sysconfig/keyboard to use my keymap but those strings are still getting loaded after every reboot.
Does anyone know where this would be happening? This is definitely the cause of my f-key issues AND the Del and BS keys sending the wrong codes.


All times are GMT -5. The time now is 02:39 AM.