Back space and command stack keys not working in Linux jsh

114 views
Skip to first unread message

troyd1

unread,
Apr 24, 2013, 11:55:12 AM4/24/13
to jb...@googlegroups.com
If I do sh, everything works, but when I am at jsh, the backspace does not work and the command stacker (up arrow) only works, not the down arrow or the line editing.  I am on 3.4 and am using accuterm.

Do I need a different terminal emulation?  If so, how do i set it on the jsh side?

Daniel Klein

unread,
Apr 24, 2013, 1:28:05 PM4/24/13
to jb...@googlegroups.com
Both 'jed' and 'jsh' can be customized. I believe Accuterm also has the ability to customize specific keys. However, if you are adventurous then you can modify the terminfo definitions to your liking.

You can use the jBASE 'keys' command to see what character sequences are being sent to the server.

Dan


On Wed, Apr 24, 2013 at 11:55 AM, troyd1 <tr...@mninter.net> wrote:
If I do sh, everything works, but when I am at jsh, the backspace does not work and the command stacker (up arrow) only works, not the down arrow or the line editing.  I am on 3.4 and am using accuterm.

Do I need a different terminal emulation?  If so, how do i set it on the jsh side?

--
--
IMPORTANT: T24/Globus posts are no longer accepted on this forum.
 
To post, send email to jB...@googlegroups.com
To unsubscribe, send email to jBASE-un...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
 
---
You received this message because you are subscribed to the Google Groups "jBASE" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jbase+un...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

troyd1

unread,
Apr 24, 2013, 3:11:25 PM4/24/13
to jb...@googlegroups.com
The keys program seems to work fine.  How can I set a different terminal emulation in jbase?  Also, how can I tell what emulation are available in jbase.  I was thinking of trying different ones.

troyd1

unread,
Apr 24, 2013, 6:21:34 PM4/24/13
to jb...@googlegroups.com
The link you posted is for JED.  Also, everything works when I am in a program at an input prompt.  It only does not work at the jsh prompt.  Is there a way to tell what the jsh prompt is looking for?  The keys function is fine, but it does not tell me what it is looking for, just what it is sending.

Daniel Klein

unread,
Apr 25, 2013, 5:27:09 AM4/25/13
to jb...@googlegroups.com
That 'link' also applies to the 'jsh' prompt for command-line editing. However, it is best to get things working with either 'stty' and/or 'terminfo'.

What are the 'stty' settings (stty -a) on this system?

What is the terminal emulation being used?

What do you mean by 'it does not tell me what it is looking for'?  A specific key is sending a specific character-sequence to the server, the server responds according to the terminfo settings for that emulation. If you want that 'response' to be different then you need to change the terminfo settings. See this (especially the Terminal Independence section).

Dan


--

troyd1

unread,
Apr 25, 2013, 2:47:38 PM4/25/13
to jb...@googlegroups.com
Here is the stty settings:
speed 38400 baud; rows 24; columns 80; line = 0;
intr = ^C; quit = <undef>; erase = ^?; kill = ^U; eof = ^D; eol = <undef>;
eol2 = <undef>; start = ^Q; stop = ^S; susp = <undef>; rprnt = ^R; werase = ^W;
lnext = ^V; flush = ^O; min = 0; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff
-iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt
echoctl echoke

It says viewpoint when I do term.

I am thinking this must be a different viewpoint than the one I am using.  There are 3 in accuterm, but none work.

I think the stty is what I was looking for.  It says the erase is ^?.  If that means <ctrl> ?, that is not doing a backspace.

If I set term to vt100, it works for a while.  I think I need to work with it more.  Feel free to provide any suggestions.

Daniel Klein

unread,
Apr 25, 2013, 6:47:29 PM4/25/13
to jb...@googlegroups.com
Assuming the 'keys' command shows the 'backspace' key as:

hit a key : bs        0x08  0010

then adding this line to your '.profile' should do the trick:

stty erase ^H

Dan


Reply all
Reply to author
Forward
0 new messages