get blinking cursor in Console, but not in SciTE

R

RichardOnRails

Hi,

I'm running Ruby 1.5.6 over WinXP-Pro/SP3.
I've got a snippet:
puts "Click to the right of cursor;"
printf "then enter name and press ENTER:"
STDOUT.flush
name = $stdin.gets.chomp

When I run it in a Command window, I get a blinking cursor after the
colon.
When I run it in SciTE, I don't get the cursor.

I checked SciTE's ruby.properties.rb but didn't recognize any option
as cursor-related.

Any Ruby/SciTE jocks with an idea?

Thanks in Advance,
Richard
 
R

RichardOnRails

Hi,

I'm running Ruby 1.5.6 over WinXP-Pro/SP3.
I've got a snippet:
   puts "Click to the right of cursor;"
   printf "then enter name and press ENTER:"
   STDOUT.flush
   name = $stdin.gets.chomp

When I run it in a Command window, I get a blinking cursor after the
colon.
When I run it in SciTE, I don't get the cursor.

I checked SciTE's ruby.properties.rb but didn't recognize any option
as cursor-related.

Any Ruby/SciTE jocks with an idea?

Thanks in Advance,
Richard

Woops. I forgot all I had to do is click anywhere in the right-hand
pane and a cursor would be presented after the colon. (BTW: For
non_SciTE users, the right-hand pane serves as a pseudo-console.)

Best wishes,
Richard
 
Q

Quintus

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 21.10.2010 21:05, schrieb RichardOnRails:
You should REALLY upgrade your Ruby! 1.5 is EXTREMELY out of date!

Vale,
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMwJ3YAAoJEGrS0YjAWTKVd8oH+wXrNQKXQnCisXBaNP6DWZmu
82Kdv0uyplxmjPlsQCipD7hO5LT/Edx6PQUcRh8sx/qaHq8gCHzxae8qNL5jwm0M
woFb5qNIW6JV5kG2YlHx3jACww7sd7wVCF5hl6w6SIUHHYp/bBvnezWKELXozODz
l2ztBbyRjxdLZTzf5ztIHrww/Txh6if5cJ2+c8T8KHOcab+v8QMkqhkklfOzZ89U
gn72HPuNlAEFFhH8CO84FT+EYGqjxPNHsnhpsfC+Nsm0TN2MQpRpHRwd8uQxBRk/
gKSCjqoHD9S848ov8oSoRy0BuBKgKFuJvwCYmcRG4ysXDgBM7brb9Jlgv1o+xMM=
=sJGA
-----END PGP SIGNATURE-----
 
J

Josh Cheek

[Note: parts of this message were removed to make it a legal post.]

On Thu, Oct 21, 2010 at 1:15 PM, RichardOnRails <
I'm running Ruby 1.5.6 over WinXP-Pro/SP3.

Looks like your Ruby version is about ten years old.

http://www.ruby-versions.net/vault.html

Not necessarily a problem, but I'd be surprised if you could find relevant
resources about it.
 
R

RichardOnRails

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am 21.10.2010 21:05, schrieb RichardOnRails:


You should REALLY upgrade your Ruby! 1.5 is EXTREMELY out of date!

Vale,
Marvin
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla -http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJMwJ3YAAoJEGrS0YjAWTKVd8oH+wXrNQKXQnCisXBaNP6DWZmu
82Kdv0uyplxmjPlsQCipD7hO5LT/Edx6PQUcRh8sx/qaHq8gCHzxae8qNL5jwm0M
woFb5qNIW6JV5kG2YlHx3jACww7sd7wVCF5hl6w6SIUHHYp/bBvnezWKELXozODz
l2ztBbyRjxdLZTzf5ztIHrww/Txh6if5cJ2+c8T8KHOcab+v8QMkqhkklfOzZ89U
gn72HPuNlAEFFhH8CO84FT+EYGqjxPNHsnhpsfC+Nsm0TN2MQpRpHRwd8uQxBRk/
gKSCjqoHD9S848ov8oSoRy0BuBKgKFuJvwCYmcRG4ysXDgBM7brb9Jlgv1o+xMM=
=sJGA
-----END PGP SIGNATURE-----
You should REALLY upgrade your Ruby! 1.5 is EXTREMELY out of date!

Thanks. That was another mistake in my post. I really running 1.8.6.

Best,
Richard
 
R

RichardOnRails

[Note:  parts of this message were removed to make it a legal post.]

I'm running Ruby 1.5.6 over WinXP-Pro/SP3.

Looks like your Ruby version is about ten years old.

Thanks. Actually, reporting that was another of my errors. I meant
to report that I an running 1.8.6.

Best wishes,
Richard
 
R

RichardOnRails

Actually, there is one very minor issue left. I'd like to be able to
copy the path of the file to be backed-up to the Windows Clipboard and
then paste into the SciTE right-hand pseudo-console. The pasting
appears to work, but the program actually receives so trash in front
the pasted path. Providing the path by typing into the prompt works
fine, but it's an error-prone mechanism.

I decided to scrap this approach in favor of providing the path as the
first (and only) argument. This works equally well in the console and
SciTE. So I only mentioned this outstanding issue just in case
someone's interested in suggesting a fix.

Best wishes,
Richard
 

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

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,739
Latest member
Clint8040

Latest Threads

Top