Author Topic: SB+ assignment to Backspace?  (Read 16899 times)

slestak

  • Uber-Pro
  • ****
  • Posts: 77
SB+ assignment to Backspace?
« on: June 03, 2011, 07: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

precisonline

  • President
  • Administrator
  • Rock Star
  • *****
  • Posts: 1612
    • Precision Solutions
Re: SB+ assignment to Backspace?
« Reply #1 on: June 03, 2011, 01: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.
-Kevin
Accidents "happen"; success, however, is planned and executed.

slestak

  • Uber-Pro
  • ****
  • Posts: 77
Re: SB+ assignment to Backspace?
« Reply #2 on: June 03, 2011, 02:05:27 PM »
Only problem with that is it works everywhere in my terminal except SB. hmm.

precisonline

  • President
  • Administrator
  • Rock Star
  • *****
  • Posts: 1612
    • Precision Solutions
Re: SB+ assignment to Backspace?
« Reply #3 on: June 03, 2011, 02:13:54 PM »
And what's it doing/not doing in SB+?  Just not working, or sending something "unusual"?
-Kevin
Accidents "happen"; success, however, is planned and executed.

slestak

  • Uber-Pro
  • ****
  • Posts: 77
Re: SB+ assignment to Backspace?
« Reply #4 on: June 03, 2011, 02:43:08 PM »
It is for every backspace moving the cursor one space to the right (instead of Left).

Ctl-h doesnt help.

precisonline

  • President
  • Administrator
  • Rock Star
  • *****
  • Posts: 1612
    • Precision Solutions
Re: SB+ assignment to Backspace?
« Reply #5 on: June 03, 2011, 02: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.
-Kevin
Accidents "happen"; success, however, is planned and executed.

precisonline

  • President
  • Administrator
  • Rock Star
  • *****
  • Posts: 1612
    • Precision Solutions
Re: SB+ assignment to Backspace?
« Reply #6 on: June 03, 2011, 03: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

-Kevin
Accidents "happen"; success, however, is planned and executed.

slestak

  • Uber-Pro
  • ****
  • Posts: 77
Re: SB+ assignment to Backspace?
« Reply #7 on: June 03, 2011, 03:08:51 PM »
that is a good idea.  I will try it Monday.  tytyty for the input

slestak

  • Uber-Pro
  • ****
  • Posts: 77
Re: SB+ assignment to Backspace?
« Reply #8 on: June 16, 2011, 12:46:49 PM »
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.

precisonline

  • President
  • Administrator
  • Rock Star
  • *****
  • Posts: 1612
    • Precision Solutions
Re: SB+ assignment to Backspace?
« Reply #9 on: June 16, 2011, 12:54:43 PM »
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..)
-Kevin
Accidents "happen"; success, however, is planned and executed.

slestak

  • Uber-Pro
  • ****
  • Posts: 77
Re: SB+ assignment to Backspace?
« Reply #10 on: June 16, 2011, 12:57:09 PM »
It is sending ascii 127

precisonline

  • President
  • Administrator
  • Rock Star
  • *****
  • Posts: 1612
    • Precision Solutions
Re: SB+ assignment to Backspace?
« Reply #11 on: June 16, 2011, 01: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

??
-Kevin
Accidents "happen"; success, however, is planned and executed.

slestak

  • Uber-Pro
  • ****
  • Posts: 77
Re: SB+ assignment to Backspace?
« Reply #12 on: June 16, 2011, 01:48:39 PM »
I can set it in the debugger to test.

precisonline

  • President
  • Administrator
  • Rock Star
  • *****
  • Posts: 1612
    • Precision Solutions
Re: SB+ assignment to Backspace?
« Reply #13 on: June 16, 2011, 01:51:43 PM »
Or even just /EP would work also.
-Kevin
Accidents "happen"; success, however, is planned and executed.

slestak

  • Uber-Pro
  • ****
  • Posts: 77
Re: SB+ assignment to Backspace?
« Reply #14 on: June 16, 2011, 01: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