bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: BUG ncurses with use kdbg


From: igor . bujna
Subject: Re: BUG ncurses with use kdbg
Date: Tue, 30 Mar 2010 02:03:46 +0200 (CEST)


------------ Původní zpráva ------------
Od: Thomas Dickey <address@hidden>
Předmět: Re: BUG ncurses with use kdbg
Datum: 30.3.2010 01:56:30
----------------------------------------
On Tue, 30 Mar 2010, address@hidden wrote:

>
> This is what i see if i run kdbg
>
> 32290 pts/3    S      0:00 kdbg ./test
> 32291 pts/3    S      0:00 xterm -geometry 110x36 -name kdbgio -title KDbg:
> Output -e sh -c tty>/tmp/kdbgttywin32290;trap "" INT QUIT
> TSTP;exec<&-;exec>&-;while :;do sleep 3600;done
> 32293 pts/5    Ss+    0:00 sh -c tty>/tmp/kdbgttywin32290;trap "" INT QUIT
> TSTP;exec<&-;exec>&-;while :;do sleep 3600;done
> 32295 pts/3    S      0:00 gdb --fullname --nx
> 32296 pts/5    S+     0:00 sleep 3600
>
> When i run xterm with same parameters is everything OK., but in kdbg its
> opening xterm in fifo.

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.

>> ------------ Původní zpráva ------------
>> Od: Thomas Dickey <address@hidden>
>> Předmět: Re: BUG ncurses with use kdbg
>> Datum: 30.3.2010 01:26:12
>> ----------------------------------------
>> On Tue, 30 Mar 2010, address@hidden wrote:
>>
>> > Hello,
>> > now i try to use konsole instead of xterm and i get same problem :(
>>
>> Does konsole set LINES/COLUMNS?
>>
>> Setting LINES/COLUMNS explicitly to override curses's notion of screensize
>> is long-established.
>>
>> Setting those by the terminal emulator itself is long-depcrecated.
>> In xterm it only happens if the configure script is unable to find
>> a workable (compile-time) definition for TIOCSWINSZ.
>>
>> >
>> >> ------------ Původní zpráva ------------
>> >> Od: Thomas Dickey <address@hidden>
>> >> Předmět: Re: BUG ncurses with use kdbg
>> >> Datum: 30.3.2010 00:55:41
>> >> ----------------------------------------
>> >> On Mon, 29 Mar 2010, address@hidden wrote:
>> >>
>> >> >
>> >> > Good morning,
>> >> > I use ncurses with my aplication. I found bug with i want debug this
>> >> ncurses
>> >> program with kdbg. I use CentOS 5.4 and I try this program with old or
>> new
>> >> ncurses. Problem is in function _nc_get_screensize() in file
>> >> ncurses/tinfo/lib_setup.c. When I try run program with kdbg, then i make
>> >> new
>> >> size of screen(for example 110x36 on picture kdbg-xterm-settings.jpg),
>> >> there
>> >> xterm has new size, but program stil use standart size 80x24 as you can
>> >> view on
>> >> picture kdbg-ncurses-BAD.jpg.
>> >> > Problem is where xterm put to enviroment COLUMNS and LINES bad value.
>> >>
>> >> xterm will do that on Linux only if it's misconfigured (incorrectly
>> >> compiled).
>> >>
>> >> --
>> >> Thomas E. Dickey
>> >> http://invisible-island.net
>> >> ftp://invisible-island.net
>> >>
>> >>
>> >>
>> >
>> >
>> > _______________________________________________
>> > Bug-ncurses mailing list
>> > address@hidden
>> > http://lists.gnu.org/mailman/listinfo/bug-ncurses
>> >
>>
>> --
>> Thomas E. Dickey
>> http://invisible-island.net
>> ftp://invisible-island.net
>>
>>
>
>
> _______________________________________________
> Bug-ncurses mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/bug-ncurses
>

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net






reply via email to

[Prev in Thread] Current Thread [Next in Thread]