Printing a backspace

R

ruby talk

######code 1
print "monkey cat"
print "\x08\x08\x08"
### works remves cat

#########code 2
print "Enter password:\n"
pass = ''
while true
ca = STDIN.getc
print "\x08\x08\x08"
if ca.to_i ==10 then
break
end
pass << ca
end
pass.strip!
###### does not work :(

Any Help would be good. I also tried \b . I am running windows i am
using a bat file but i also tried rde it just prints the squares
 
F

Florian Gross

ruby said:
Is there any documentation on cls? Or exmaples?
Becker

It is just a windows specific command that clears the complete console.
See "help cls".

Regards,
Florian Gross
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,160
Messages
2,570,889
Members
47,420
Latest member
ZitaVos505

Latest Threads

Top