Dynamic updates to console

I organized output to the console, but made ​​it quite inconvenient, the
screen is cleared, get the data, and so the loop. Is it possible to
update only the place that changed the meaning. The problem I have is
that the data received from the Internet, and not very fast. It turns
out that the passes clear the screen, the screen is empty, after a few
seconds of data is displayed, it is not convenient.

···

--
Posted via http://www.ruby-forum.com/.

Although it will be a big step up in complexity, you probably want curses: Module: Curses (Ruby 1.9.3)

-Justin

···

On 08/16/2013 07:27 AM, gotostereo .. wrote:

I organized output to the console, but made ​​it quite inconvenient, the
screen is cleared, get the data, and so the loop. Is it possible to
update only the place that changed the meaning. The problem I have is
that the data received from the Internet, and not very fast. It turns
out that the passes clear the screen, the screen is empty, after a few
seconds of data is displayed, it is not convenient.

It's hard to help without seeing code.

···

On Aug 16, 2013, at 9:27 AM, gotostereo .. <lists@ruby-forum.com> wrote:

I organized output to the console, but made ​​it quite inconvenient, the
screen is cleared, get the data, and so the loop. Is it possible to
update only the place that changed the meaning. The problem I have is
that the data received from the Internet, and not very fast. It turns
out that the passes clear the screen, the screen is empty, after a few
seconds of data is displayed, it is not convenient.

--
Posted via http://www.ruby-forum.com/\.

The easiest solution seem to be not to mix data retrieval and display. If
you first retrieve all the data before you do the clear and output the
screen should be blank for only a few milliseconds.

A more complex solution would involve checking the data and using something
like ncurses to write data at specific positions on the screen. Even then
you might want to separate retrieval from screen updates.

Kind regards

robert

···

On Fri, Aug 16, 2013 at 4:27 PM, gotostereo .. <lists@ruby-forum.com> wrote:

I organized output to the console, but made it quite inconvenient, the
screen is cleared, get the data, and so the loop. Is it possible to
update only the place that changed the meaning. The problem I have is
that the data received from the Internet, and not very fast. It turns
out that the passes clear the screen, the screen is empty, after a few
seconds of data is displayed, it is not convenient.

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/

What to choose ruby curses or ruby ncurses. Where can I see examples.
Very scanty information. If the language in all the examples, all
perfectly readable, then there is a single text (curses).

···

--
Posted via http://www.ruby-forum.com/.

Der Sinn Deiner Worte ist dunkel.

robert

···

On Sat, Aug 17, 2013 at 3:13 PM, gotostereo .. <lists@ruby-forum.com> wrote:

What to choose ruby curses or ruby ncurses. Where can I see examples.
Very scanty information. If the language in all the examples, all
perfectly readable, then there is a single text (curses).

--
remember.guy do |as, often| as.you_can - without end
http://blog.rubybestpractices.com/