[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Ncurses & PuTTY/xterm
From: |
Martin Hinner |
Subject: |
Ncurses & PuTTY/xterm |
Date: |
Sun, 22 Sep 2002 21:48:33 +0200 |
Hello,
sorry for bothering you, but I have this problem with ncurses library.
Imagine source code containing these lines:
...
init_pair(1,COLOR_RED,COLOR_BLUE);
...
attrset(COLOR_PAIR(1));
for (i=0;i<LINES;i++)
for(j=0;j<COLS;j++)
mvaddch(i, j, 0x20);
mvaddch(10,10,'x');
refresh();
It should clear background with blue spaces and type 'x' at (10,10). It
works fine under Linux (TERM=linux,xterm) on terminal or telnet/ssh
connection. But when connected via PuTTY from Windows machine or in xterm,
it shows only blue 'x' and the rest of screen is black. Turning on 'Use
background color to erase screen' in PuTTY configuration solves my problem.
Anyway, if you could hint me what am I doing wrong, I would very appreciate
it.
Thanks,
Martin
- Ncurses & PuTTY/xterm,
Martin Hinner <=