PDA

View Full Version : Ruby separating simultanious input/output



madsporkmurderer
June 9th, 2012, 03:36 PM
Hi, I'm currently improving a command line ruby program I've written. It downloads and plays music; sometimes a track finishes downloading while the user is mid-search. Currently it outputs the download finished message in the middle of their search; this looks a mess and can get pretty confusing. Is there a way to separate the screen into 2 areas for different text output?

An earlier version of the code is here.

Thanks,
Mike

EDIT: I've just noticed the rule regarding downloading from youtube. I've removed the link; the actual question is only vaguely related to youtube-dl, it would be very useful in a variety of situations. Is this OK?