From: James Dinkel Date: 2008-07-22T22:37:03+09:00 Subject: Re: how do i open a terminal using ruby? Sebastian Hungerecker wrote: > Philip Rutkowski wrote: >> if not STDIN.isatty >>   #Open up a terminal >> end >> [...] >> is there something easier? > > If I'm not mistaken, on Windows ruby scripts automatically open in a > command > window. And most filemanagers on unix ask you whether to open a terminal > when > clicking on an executable file. So I don't think there's any need to do > what > you're trying to do. > > HTH, > Sebastian I have the same need. I have a script that runs in a terminal right now, but I eventually want to make it gui (probably with Shoes) and I'll need an option to click a button and open a command prompt (then run a command in that command prompt and leave the prompt open for the user to use). I haven't even begun converting to the gui part yet though, so I haven't put much thought into how I'm going to accomplish this. Oh yeah, and this will need to be cross-platform, too, but it may just be a matter of writing a slightly different program for each platform. James -- Posted via http://www.ruby-forum.com/.