mscdex / node-ncurses

An ncurses binding for node.js
MIT License
386 stars 25 forks source link

Move causes panel library error #50

Closed mustafaakin closed 10 years ago

mustafaakin commented 10 years ago
var nc = require("ncurses");
var win = new nc.Window();

for(var i = 0; i < 80; i++){
    for(var j = 0; j < 24; j++){
        win.move(i,j);
        win.addstr("H");
        win.refresh();
    }
}

win.close();

After the second iteration, I get the following output:

Hpanel library error
                    mustafa@G7C:~/project $ 
mscdex commented 10 years ago

From the readme (under Terminology):

Also, stdscr is the name of the first window that is created and fills the terminal/screen by default. It cannot be resized or moved, it is always the bottom-most window, and it is the window you get when you first create a new Window.

mustafaakin commented 10 years ago

Oh I see, the function I am looking for is cursor(), not move()