Asp Forum
Home
|
Login
|
Register
|
Search
Forums
>
comp.lang.ruby
Input text and take text from different places?
Tim Mcd
2/3/2009 4:37:00 PM
I haven't been able to find anything on this, so here goes:
Is it possible to be 'puts'ing text to one place on the terminal while
'gets'in from another?
I have setup with VT100 control codes a basic layout for my MUD client,
with a line of dashes ('-') going across the second from bottom line. I
tried setting it up so that the thread that handles input from the MUD
moves the cursor (via control codes) to line 22 (above the 'split' line)
to add in the MUD output, and then move it back down to 24 so that the
user typing sees their commands being typed down below the split. But
this isn't working so well. Is there any way to take text input from one
place while putting text into another place? Have two cursors in the
terminal? Just a possibility xD
--
Posted via
http://www.ruby-...
.
2 Answers
7stud --
2/3/2009 6:48:00 PM
0
Tim Mcd wrote:
> Is there any way to take text input from one
> place while putting text into another place?
Check out Curses.
--
Posted via
http://www.ruby-...
.
Tim Mcd
2/3/2009 8:03:00 PM
0
7stud -- wrote:
> Tim Mcd wrote:
>> Is there any way to take text input from one
>> place while putting text into another place?
>
> Check out Curses.
I'm trying to stay away from Curses/Ncurses.
--
Posted via
http://www.ruby-...
.
Servizio di avviso nuovi messaggi
Ricevi direttamente nella tua mail i nuovi messaggi per
Input text and take text from different places?
Inserendo la tua e-mail nella casella sotto, riceverai un avviso tramite posta elettronica ogni volta che il motore di ricerca troverà un nuovo messaggio per te
Il servizio è completamente GRATUITO!
x
Login to ForumsZone
Login with Google
Login with E-Mail & Password