LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-19-2008, 12:32 PM   #1
ShiningMasamune
LQ Newbie
 
Registered: Oct 2008
Posts: 7

Rep: Reputation: 0
UpArrow/Backspace not working for shell-like program over ssh


Greetings all. There's a certain Windows command line program that I need to use from Linux computers. I'm doing this via cygwin/ssh, and I've already got that set up and working. The program is shell-like in nature, and by that I mean you type a command, and it outputs the result. My problem is that, when I use the program over ssh, the up arrow key actually moves the cursor instead of getting the previous command, backspace doesn't function properly, the home/end keys don't work, etc. All of these things work when I use the program in cygwin on the local machine, but not when I ssh from elsewhere. Another thing: the program uses Ctrl-C for something. Again, it works from cygwin on the local machine, but over ssh, when I hit Ctrl-C, it kills the program. Is there any way to fix these, maybe with some kind of go-between script?

Thanks
 
Old 10-21-2008, 02:09 AM   #2
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
When you open a cygwin shell, the terminal emulator type is cygwin. When connected remotely via ssh, the remote system must set the TERM type.

Connect via ssh, and check the terminal type:

echo $TERM

Also check the tty and readline bindings:

stty -a
bind -P
 
Old 10-21-2008, 03:24 AM   #3
NetProbe
LQ Newbie
 
Registered: Oct 2008
Posts: 10

Rep: Reputation: 0
Also note that in a unix like environment Control+C is used to terminate the running program.
 
Old 10-21-2008, 08:30 AM   #4
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Quote:
Originally Posted by NetProbe View Post
Also note that in a unix like environment Control+C is used to terminate the running program.
By default, but this can be changed to any key binding via stty.
 
Old 04-06-2009, 12:58 PM   #5
tkanter
LQ Newbie
 
Registered: Apr 2009
Posts: 1

Rep: Reputation: 0
Most likely your login shell is set to /bin/sh and not to /bin/bash.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cgi shell script: ssh not working kitmui Programming 2 04-21-2010 02:46 PM
Ctrl + backspace in shell mushk45 Linux - Software 1 12-23-2006 10:12 PM
backspace key in xterm via ssh jeffreybluml Linux - Newbie 7 08-20-2006 04:01 PM
Backspace not working in Vim corbis_demon Linux - Software 1 04-02-2006 05:39 PM
Login shell not working in ssh quack322 Programming 1 08-16-2004 06:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration