Execute SNUSP/Ruby: Difference between revisions
m
Fixed syntax highlighting.
m (moved RCSNUSP/Ruby to Execute SNUSP/Ruby) |
m (Fixed syntax highlighting.) |
||
Line 1:
{{implementation|SNUSP}}{{collection|RCSNUSP}}
These [[Ruby]] implementations of SNUSP profiles are partially derived from [[RCSNUSP/Tcl]].
==
<
$stdin.sync = true
Line 183:
puts "done"
end</
Output:
Line 193:
done</pre>
==
<
class ModularSNUSP < CoreSNUSP
Line 283:
puts "done"
end</
Output:
<pre>$ ruby rc_modularsnusp.rb
Line 296:
done</pre>
==
User input is still line-oriented -- must press Enter before Ruby sees input.
<
# here, need input to be non-blocking, so other "threads" can keep working.
Line 486:
puts "done"
end</
Output:
|