Execute SNUSP/Ruby: Difference between revisions
m
Fixed syntax highlighting.
m (→Bloated SNUSP: fixed threadring) |
m (Fixed syntax highlighting.) |
||
(3 intermediate revisions by 3 users not shown) | |||
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:
<div style="width:full;overflow:scroll"><pre>$ ruby rc_bloatedsnusp.rb
Bloated: random
3476158785073done
Line 498:
35382407644156390115:505854:46783082311335:4940492329597706::155
2done
</pre></div>
|