rustbox icon indicating copy to clipboard operation
rustbox copied to clipboard

Accessing Cells

Open Syntaf opened this issue 9 years ago • 1 comments

does rust-box have some sort of cell struct? If so how can I access it? Say if i'd like to get the cell at location (x,y), how would I go about doing that?

Syntaf avatar Jan 08 '16 04:01 Syntaf

No, there's no Cell.

Right now Rustbox just wraps the termbox. That library allows you to draw to "cells" at specific X & Y coordinates. Rustbox wraps this with the Rustbox::change_cell method, and provides some convenience methods like print.

The eventual goal of Rustbox is to be a standalone implementation of termbox, without depending on the C library. When that happens, we will provide some kind of Cell type that can be manipulated by users, but for now the wrapper methods are all we have.

Hope that helps.

gchp avatar Jan 08 '16 16:01 gchp