Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: "Mikael" Subject: Re: Arrow keys when using ssh to connect remotely to solaris box Date: Sun, 18 Sep 2005 22:36:23 +0200 Lines: 54 Message-ID: References: <432DCC40 DOT 77E6262C AT dessent DOT net> X-IsSubscribed: yes Mikael wrote: > Brian Dessent wrote: >> Mikael wrote: >> >>> Hello, I'm using ssh inside an rxvt terminal (?) to connect remotely >>> to a Sun server running Solaris. It connects without any problems >>> and I can login to the Oracle database the server is running. >>> However, the arrow keys doesn't work correctly. When I hit >>> left-arrow to edit what I am typing in sqlplus (oracles command line >>> client) the input cursor position doesn't move instead ^[[D is >>> displayed. Neither of the arrows keys work. I guess the problem is >>> that the remote shell is expecting keys in one format and I am >>> sending it in another, slightly different format, so it doesn't work >>> for some keys. This has made working remotely with the oracle >>> database a chore at best and I was wondering how I can remedy the >>> situation? >> >> In general this is a problem with the application on the remote end >> and has nothing to do with rxvt. The way it works is that the TERM >> environment variable should be set to indicate what terminal is in >> use. In your case it should probably be "rxvt". The application then >> should look at this variable and then use the terminfo database to >> determine what character sequences to expect based on the terminal. >> >> So, you should check to see what TERM is set to after connecting to >> the remote system. It may also be that the terminfo database on the >> remote system does not contain an entry for "rxvt", so you might have >> to try setting it to "xterm" or even "vt102" which are more common >> names for terminals with very similar key mappings. > > Thanks for the quick reply, Brian. I performed an $ echo $TERM after > logging in: > astmatix <302> echo $TERM > rxvt-cygwin-native > Was the output... > I also noticed this string when logging in: > tcsh: using dumb terminal settings > > So, given this information, any further hints? > >> I noticed that it's just in SQL*Plus where the arrow keys doesn't work as I want them to. I solved it by opening a shell under emacs on the remote end but it feels like a crude solution. But I guess this means it's not a cygwin issue and, as such, off-topic for this list. >> Brian > > / Mikael / Mikael -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/