Precisely Speaking
May 21, 2012, 07:25:45 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: So what's news with you?  Tell us about it in "Getting To Know You"!
 
   Home   Help Calendar Login Register  
Pages: [1] 2   Go Down
  Print  
Author Topic: SB+ assignment to Backspace?  (Read 1459 times)
slestak
Uber-Pro
****
Posts: 69



« on: June 03, 2011, 06:26:32 AM »

I have a new terminal config I am testing and everything seems to work ok with the exception of Backspace when I am in SB+ apps.  If I type 0 to get to TCL, backspace works as expected.  I looked in TERM.DEFN but see do not see any settings for the Backspace key.

Anyone have any insight?

BTW, tmux from the BSD project works great on AIX.  Checkout this screenshot.  This is directly connected to aix, so I can detach/reattach this tty session.

http://www.screencast.com/t/jcMJlS1M
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #1 on: June 03, 2011, 12:59:26 PM »

Look in /SB.PARMS F7-System Keys.  The backspace definition is there.  But ... it's system wide, not related to a specific terminal definition.  Would probably be better if you could remap the backspace in that program to be ASCII 8.
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
slestak
Uber-Pro
****
Posts: 69



« Reply #2 on: June 03, 2011, 01:05:27 PM »

Only problem with that is it works everywhere in my terminal except SB. hmm.
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #3 on: June 03, 2011, 01:13:54 PM »

And what's it doing/not doing in SB+?  Just not working, or sending something "unusual"?
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
slestak
Uber-Pro
****
Posts: 69



« Reply #4 on: June 03, 2011, 01:43:08 PM »

It is for every backspace moving the cursor one space to the right (instead of Left).

Ctl-h doesnt help.
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #5 on: June 03, 2011, 01:47:29 PM »

I wonder if backspace is mapped to delete (ASCII 127)?  Unidata would see it just fine, SB+ would puke all over it tho.
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #6 on: June 03, 2011, 02:01:57 PM »

You might create and run this little program to see what key the emulator is sending...

LOOP
  X = IN()
  CRT SEQ(X)
WHILE SYSTEM(14) > 0 DO
REPEAT

Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
slestak
Uber-Pro
****
Posts: 69



« Reply #7 on: June 03, 2011, 02:08:51 PM »

that is a good idea.  I will try it Monday.  tytyty for the input
Logged
slestak
Uber-Pro
****
Posts: 69



« Reply #8 on: June 16, 2011, 11:46:49 AM »

This doesnt seem like an effective test because in unibasic it works.  it is Paragraphs and Menus and slash commands where it will not work.  Also if I enter /sh to go to shell from SB+ it will not work.
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #9 on: June 16, 2011, 11:54:43 AM »

I understand that, but SB+ uses a different (and configurable) input mechanism that is different from a standard UniBASIC input.  If we know what keys are being sent, we should be able to map SB+ accordingly, right?  (Not saying this as any guarantee, but it seems plausible..)
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
slestak
Uber-Pro
****
Posts: 69



« Reply #10 on: June 16, 2011, 11:57:09 AM »

It is sending ascii 127
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #11 on: June 16, 2011, 12:26:27 PM »

Ah the "*nix Del".

Unfortunately SB+ stores the backspace key in a system-wide setting, but I wonder if it could be overridden by manipulating common?  I just found that the backspace key is in @SB.CONT<26,2> so you might create a paragraph with this line, execute it from that telnet client, and see if it helps:

@SB.CONT<26,2> = 127

??
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
slestak
Uber-Pro
****
Posts: 69



« Reply #12 on: June 16, 2011, 12:48:39 PM »

I can set it in the debugger to test.
Logged
precisonline
President/Chief Technologist
Administrator
Rock Star
*****
Posts: 1532



WWW
« Reply #13 on: June 16, 2011, 12:51:43 PM »

Or even just /EP would work also.
Logged

-Kevin
Accidents "happen"; success, however, is planned and executed.
slestak
Uber-Pro
****
Posts: 69



« Reply #14 on: June 16, 2011, 12:54:16 PM »

no joy.  made a paragraph called FIX.BS and placed the single like in it.  I executed it and problem persists.  I used CHANGE.TERMINAL to toggle to another and back, no luck.  Verified in DEBUG that it had been changed from 8 to 127
Logged
Pages: [1] 2   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!