Still stuck on gets for stdin under Win2000ProSP3

Hi,

Daz helped me with the following code running under SciTE 1.52 & 1.52
and indicated it worked under Win98SE. But I still get an MSDOS
Command window that accepts virtually nothing except a click on the
close button (X), or Tools/Stop Executing in SciTE under Win2000ProSP3
… and WinXP2002SP1, as well.

The line
$stdout.sync=true
recommended by Daz changes the return code from -1073741510 to 0.

I wonder if anyone has any other ideas, or should I just recognize
that console I/O is broken in SciTE under Win2000/XP and wait for a
later version? Below is my code.

···

================================================================

Run in a Command window, not under SciTe, but should work under

SciTE 1.5.2

$stdout.sync=true # Keep buffers flushed
# Eliminates Exit code: -1073741510; 0 instead

print "Enter text: “
while gets # Opens an MSDOS window
chomp!
puts ‘Got "’ + $_ + '”'
print 'Enter more: '
end

[…]

Try giving your script an extension of ‘.rbw’ instead of ‘.rb’

I use RDE for Ruby, so I’m not a SciTE doctor but I dislike
consoles so I changed the ‘SciTE\ruby.properties’ so that they
both behave the same way.

‘SciTE\SciTEDoc.html’ describes these things.

if PLAT_WIN
font.base=font:Andale Mono,size:11

command.go.*.rb=cmd /c ruby $(FileNameExt) < con: > con: 2>&1

command.go.subsystem.*.rb=1

command.go..rb=rubyw $(FileNameExt)
command.go.subsystem.
.rb=1
command.go..rbw=rubyw $(FileNameExt)
command.go.subsystem.
.rbw=1
command.help..rb=$(CurrentWord)!D:\ruby\ProgrammingRuby.chm
command.help.subsystem.
.rb=4
command.help..rbw=$(CurrentWord)!D:\ruby\ProgrammingRuby.chm
command.help.subsystem.
.rbw=4
if PLAT_GTK
command.go.*.rb=ruby $(FileNameExt)

Unless you installed over the 1.41 version, you should still
have your old ‘ruby.properties’ file in a Ruby sub-directory.
If so, compare the two. It sounds like your previous version
was tuned correctly for your needs.

I don’t get a DOS window because I’ve told it I don’t want one.
Your version of Windows isn’t relevant here, I think.

HTH,

daz

···

“Richard” RLMuller@comcast.net wrote: