FC2: Nano & home, end keys

Tom 'Needs A Hat' Mitchell mitch48 at sbcglobal.net
Thu May 20 12:03:11 UTC 2004


On Tue, May 18, 2004 at 08:03:05PM -0600, Ben Brown wrote:
> Reply-To: For users of Fedora Core releases <fedora-list at redhat.com>
> 
> I am having a weird issue with Nano... when hitting "home" and "end"
> keys, it prints out "H" and "F" respectively.

I see it too.
Somehow the key code mapping is broken.

With a KVM switch FC2 acts badly and FC1 OK.  ssh into FC2 from FC1 is
OK.  FC2 at the console is not ok. (same physical keyboard)

This should be enough for you to file a bugzilla.
Here is a pair of hex dumps that show the difference.

$ cat /tmp/home-End-FC2
Dump: standard input
Offset:    0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f   0123456789abcdef
 
00000000: 1b 4f 48 1b 4f 48 1b 4f 48 1b 4f 48 1b 4f 48 1b | .OH.OH.OH.OH.OH. |
00000010: 4f 48 1b 4f 48 1b 4f 48 1b 4f 48 1b 4f 48 1b 4f | OH.OH.OH.OH.OH.O |
00000020: 48 1b 4f 48 1b 4f 48 1b 4f 48 1b 4f 48 1b 4f 48 | H.OH.OH.OH.OH.OH |
00000030: 1b 4f 48 1b 4f 48 0a 0a 1b 4f 46 1b 4f 46 1b 4f | .OH.OH...OF.OF.O |
00000040: 46 1b 4f 46 1b 4f 46 1b 4f 46 1b 4f 46 1b 4f 46 | F.OF.OF.OF.OF.OF |
00000050: 1b 4f 46 1b 4f 46 1b 4f 46 1b 4f 46 1b 4f 46 1b | .OF.OF.OF.OF.OF. |
00000060: 4f 46 1b 4f 46 1b 4f 46 1b 4f 46 1b 4f 46 0a 00 | OF.OF.OF.OF.OF.. |


$ cat /tmp/home-End-FC1
Dump: standard input
Offset:    0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f   0123456789abcdef
                                                                                
00000000: 1b 5b 31 7e 1b 5b 31 7e 1b 5b 31 7e 1b 5b 31 7e | .[1~.[1~.[1~.[1~ |
*
00000030: 1b 5b 31 7e 1b 5b 31 7e 1b 5b 31 7e 0a 0a 0a 0a | .[1~.[1~.[1~.... |
00000040: 1b 5b 34 7e 1b 5b 34 7e 1b 5b 34 7e 1b 5b 34 7e | .[4~.[4~.[4~.[4~ |
*
00000070: 1b 5b 34 7e 1b 5b 34 7e 1b 5b 34 7e 0a 5b 34 7e | .[4~.[4~.[4~.[4~ |


-- 
	T o m  M i t c h e l l 
	/dev/null the ultimate in secure storage.





More information about the fedora-list mailing list