P
Philip Rutkowski
hi-
i want to open up a terminal from ruby if it was not executed in one.
so,
if not STDIN.isatty
#Open up a terminal
end
do i have to use IO.popen? i would rather not because, i'm using linux
but this ruby script will also be executed on windows. how do i account
for when to use "gnome-terminal" and when to use "cmd"? then, how do i
write to that terminal window?
is there something easier?
thanks!!!
i want to open up a terminal from ruby if it was not executed in one.
so,
if not STDIN.isatty
#Open up a terminal
end
do i have to use IO.popen? i would rather not because, i'm using linux
but this ruby script will also be executed on windows. how do i account
for when to use "gnome-terminal" and when to use "cmd"? then, how do i
write to that terminal window?
is there something easier?
thanks!!!