I want to write a simple chat-client in Ruby for the terminal. The Problem is, that I need two separate "windows", one for the chatlog and another for the input prompt. I dont have a clue how to do this. I watched (n)curses and some other ruby-libs, but nothing gives me this functionality.
.------------------------------. | Mike: Hi Jenny | | Jenny: Hi Mike, how are you? | |------------------------------| |> I am fine_ | `------------------------------'
The big Problem is, if a new Line arives, the upper frame should scroll, but the prompt should stay on its position. And if I write something in the input prompt, the text should disappear when the user press ENTER.
Any ideas?
Aaron