------------ Původní zpráva ------------
Od: Thomas Dickey <address@hidden>
Předmět: Re: BUG ncurses with use kdbg
Datum: 30.3.2010 02:14:04
----------------------------------------
On Tue, 30 Mar 2010, address@hidden wrote:
>> Perhaps kdbg is setting LINES/COLUMNS
>>
>> I see that it is setting xterm's -geometry option.
>> Do the values for that correspond to the LINES/COLUMNS values?
>
> This is problem, xterm has properly size as you can see on picture
> kdbg-ncurses-BAD.jpg in my first post.
> But ncurses get this COLS=80 & LINES=24. When i try debug, this values is
> receiving via _nc_getenv_num() for LINES and COLUMNS. There is problem. In
> getting this enviroment values. If I read values from ioctl there is every
> OK.
Then you're working around a bug in kdbg. You could add these calls to
unset the values:
unsetenv("LINES");
unsetenv("COLUMNS");