Windows + PuTTY + vi and A B C D arrow keys.

  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Feb 17, 2005
  • Posts: 1585
  • Status: Offline

Post December 17th, 2009, 5:22 pm

Hi, I'm using PuTTY to connect to my server and vi some files. Whenever I go into insert mode and use my keyboard's arrow keys, it goes to the line above and puts a letter in. Basically my arrow keys turn into A, B, C & D and move lines and such. I don't know if it's my keyboard or OS or what. It seems like a client side issue, cause vi works fine at the server with another keyboard. How can I permanently resolve this issue without using H,J,K,L?
There's no place like 127.0.0.1, badass part is now it's ::1
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post December 17th, 2009, 5:22 pm

  • Don2007
  • Web Master
  • Web Master
  • No Avatar
  • Joined: Nov 21, 2006
  • Posts: 4924
  • Loc: NY
  • Status: Offline

Post December 17th, 2009, 6:13 pm

I just used PuTTy to connect to 3 machines, FreeBSD, Ubuntu & Gentoo. FreeBSD & Ubuntu are on my LAN & Gentoo is a remote shell. I tested vi on all of them, using the arrow keys, the way you described. They never inserted letters. Then I searched Google. Here is a quote from one site:

The h, j, k, and l commands reflect the arrow keys on those old VT100 terminals, and always work. Sometimes the arrow keys also do the same things, depending on your keyboard:

"Depending on your keyboard"???

Try another keyboard. I have no idea why that would make a difference but that's all I can find.
How do you know when a politician is lying? His mouth is moving.
  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Feb 17, 2005
  • Posts: 1585
  • Status: Offline

Post December 17th, 2009, 7:50 pm

Yeah I figured it may have been my keyboard, maybe I can map the arrows to the letters lol... I have a Microsoft SideWinder X6
There's no place like 127.0.0.1, badass part is now it's ::1
  • casablanca
  • Proficient
  • Proficient
  • User avatar
  • Joined: May 29, 2007
  • Posts: 481
  • Status: Offline

Post December 17th, 2009, 11:15 pm

I too have this problem often but only on some servers. I believe it's something to do with the keyboard layout that the server expects. There's a setting for this in PuTTY but I haven't had time to try all combinations to see which works.
No Strings Attached: A JavaScript graphics demo.
  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Feb 17, 2005
  • Posts: 1585
  • Status: Offline

Post December 18th, 2009, 9:10 am

I've tried to mess with the PuTTY keyboard settings, maybe I'm changing the wrong one?

I'm running a SideWinder X6 Keyboard on Windows 7 right now, the server box is ArchLinux. Any ideas?
There's no place like 127.0.0.1, badass part is now it's ::1
  • casablanca
  • Proficient
  • Proficient
  • User avatar
  • Joined: May 29, 2007
  • Posts: 481
  • Status: Offline

Post December 18th, 2009, 3:03 pm

I'm quite sure it's not your keyboard or OS that's causing the problem, but unfortunately I'm not sure what PuTTY setting, if any, might fix it.
No Strings Attached: A JavaScript graphics demo.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 99 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.