RetroBSD

2.11BSD operating system for microcontrollers
It is currently Thu Nov 14, 2019 1:08 am

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Sat Sep 12, 2015 1:14 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
The backspace works in background but cursor does not move back at the line and does not remove the chars from the line.

Code:
# DDDDD    <<< 5x BSPace and enter
# WWWWW        <<< 3x BSpace and enter
WW: not found
#

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sun Sep 13, 2015 7:37 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
This behavior is controlled by "stty crterase" command. You probably have it disable in your .profile.
Code:
# stty -crterase
# DDDDD        <<< 5x BSPace and enter
# WWWWW        <<< 3x BSpace and enter
WW: not found
# stty crterase
#              <<< DDDDD 5x BSPace and enter
# WW           <<< WWWWW 3x BSpace and enter
WW: not found
#


Top
 Profile  
 
PostPosted: Sun Sep 13, 2015 7:59 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Nope, still the same..

Code:
# stty crterase
# WWWWW  <<< 3x backspace
WW: not found
#

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sun Sep 13, 2015 8:01 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Try this: what's the output?
Code:
stty -a


Top
 Profile  
 
PostPosted: Sun Sep 13, 2015 8:02 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Code:
# stty -a
new tty, speed 115200 baud, 0 rows, 0 columns
even odd -raw -nl echo -tandem -tabs -cbreak -rtscts
-crtbs crterase -crtkill -ctlecho -prterase -tostop
-flusho -mdmbuf -litout -pass8 -nohang
-pendin -decctlq -noflsh
erase   kill    intr    quit    start   stop    eof     brk     susp
^?      ^U      ^C      ^\      ^Q      ^S      ^D      <undef> ^Z
dsusp   rprnt   flush   werase  lnext
^Y      ^R      ^O      ^W      ^V
#

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sun Sep 13, 2015 8:05 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Use this to set all crt parameters at once.
Makes sense to put this command into your .profile.
Code:
stty crt


Top
 Profile  
 
PostPosted: Sun Sep 13, 2015 8:17 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
This only sequence works:
Code:
# stty crt
# stty crterase

It worked for many years, why the issue now?

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Sun Sep 13, 2015 8:37 am 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
"stty crt" alone works for me.
Default .profile contains a command "stty dec", which does the same.
Essentially it's "stty crt erase ^? intr ^C kill ^U".


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission