From: Rahul Kumar Date: 2010-11-23T14:40:06+09:00 Subject: Re: Simple, Two-Frame Terminal Application Bryan Richardson wrote in post #962617: > Hi Rahul, > > Thanks for responding. I like your option 1 with threading... how can I > get my terminal split up such that one thread can be displaying data in > one section of the terminal and the other thread can be waiting for > input in another section of the terminal? Does your suggestion of using > tcup apply here as well, or is there a "cleaner" way to do it? > In my case, the terminal was not split up. I would use the last row for inputting user commands, and display on top. Yes, that requires me to position the cursor using tput cup, and also to clear the line first, so the previous command is erased. I also used readline, so that the user can search or reuse previous commands. The cleaner way perhaps is the screen option someone else mentioned (which i have not used yet). Best would be to use ncurses or ffi-ncurses. -- Posted via http://www.ruby-forum.com/.