Question
· Jul 11, 2020

Backspace in WebTerminal

I try to run a small test routine (guessing a random number) in WebTerminal but the result looks broken.
in IRISterminal:

 in WebTerminal:

I think it relates to backspace.
Is there some special setting required?

The code:

a
 q=".......... guess [0..9]: " 
 i=1:1 if ! $c(9),"thank you",! q
 q  
b
 !,i,$c(9),q
 f  v#1 q:(v?.1n) " !no number",$c(8,8,8,8,8,8,8,8,8,8,8,8)
 " "
 r=$R(10),p=$s(v="":1,v=r:"!",v>r:"<",1:">")
 x=q,$e(x,r+1)="*",$e(x,v+1)=$s(v=r:"!",v>r:"<",1:">") 
 q:p  $c(13),$c(9),p=v=q

Discussion (5)2
Log in or sign up to continue

probably a misinterpretation from my side:
I expected a terminal emulation, not a HTML simulation

The fact is that is is an ages-old artifact that was a demo written to run on a printing console that had just 7 bit ASCII

Surprising. WebTermal is my first "Terminal Emulation" that doesn't understand full ASCII
I'll remove it from my personal list.