View Single Post
Old Apr 13th, 2008, 12:55 PM   #1
null_ptr0
11 years old
 
Join Date: Nov 2007
Posts: 79
Rep Power: 1 null_ptr0 is on a distinguished road
Jython and JRuby help

How would i go about redirecting output?
In java, i do System.setOut(new ConsolePrintStream(....)) and same for System.err, and for System.in i do System.setIn(new ConsoleInputStream(...)).
Now, but in JRuby and Jython, when I do 'print "hi"' and 'puts 'hi'' respectedly, it prints to the command-line console, and not to my JTextArea 'console' as BeanShell does.
__________________
iload_0 iconst_1 ishl or
iload_0 iconst_2 idiv or
iload_0 iconst_2 iconst_1 imul idiv
[1] & [2] use the smallest stack size
null_ptr0 is offline   Reply With Quote