Blank lines in terminal

D

Dylan Lukes

I have an IRC bot I wrote, and I would like to have it so that in the
console window, the bottom one or two lines are always blank.

In other words, I want puts/print to output to the second line from the
bottom instead of the bottommost line.

I am aware that this could be done with curses/ncurses, but I have been
unable to find any decent documentation for them in Ruby.

If possible I would like to avoid the need to use (n)curses.
 
M

Martin DeMello

I have an IRC bot I wrote, and I would like to have it so that in the
console window, the bottom one or two lines are always blank.

In other words, I want puts/print to output to the second line from the
bottom instead of the bottommost line.

I am aware that this could be done with curses/ncurses, but I have been
unable to find any decent documentation for them in Ruby.

If possible I would like to avoid the need to use (n)curses.

May I ask why you want to avoid ncurses? It is, in general, a hard
problem to do this sort of thing portably across platforms and
terminals, and this is the exact problem curses is meant to solve.

martin
 
M

Marnen Laibow-Koser

Dylan said:
I have an IRC bot I wrote, and I would like to have it so that in the
console window, the bottom one or two lines are always blank.

In other words, I want puts/print to output to the second line from the
bottom instead of the bottommost line.

I am aware that this could be done with curses/ncurses, but I have been
unable to find any decent documentation for them in Ruby.

60 seconds of Google searching, and behold:

http://github.com/eclubb/ncurses-ruby

A quick stop at rdoc.info, and:
http://rdoc.info/projects/eclubb/ncurses-ruby
If possible I would like to avoid the need to use (n)curses.

You probably won't easily be able to.

Best,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top