[Konsole-devel] [Bug 176902] Konsole: apps in tabbed shell truncated to 24 lines (LINES=24)
Nikos Chantziaras
realnc at gmail.com
Tue Jan 4 17:39:55 UTC 2011
https://bugs.kde.org/show_bug.cgi?id=176902
Nikos Chantziaras <realnc at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |realnc at gmail.com
--- Comment #18 from Nikos Chantziaras <realnc gmail com> 2011-01-04 18:39:53 ---
(The following is from bug 203185, and I suspect the issue is related.)
I've written some example C code to trigger the bug. It's getting the terminal
size using the TIOCGWINSZ ioctl to get the terminal size. The TIOCGWINSZ ioctl
call reports the correct size only when not using Konsole's -e option. With
the -e option, the size is always reported as 0x0:
#include <stdio.h>
#include <sys/ioctl.h>
#include <termios.h>
int main( void )
{
struct winsize size;
size.ws_col = size.ws_row = 0;
if (ioctl(0, TIOCGWINSZ, &size) < 0) {
printf("Error: ioctl failed.\n");
return 1;
}
printf("Terminal size: %dx%d\n", size.ws_col, size.ws_row);
printf("[ENTER to quit.]");
scanf("%*[^\n]");
return 0;
}
Build the program (gcc filename.c) and run it first with:
./a.out
and then with:
konsole -e ./a.out
If in the second case the result is 0x0, then you confirmed the bug.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the konsole-devel
mailing list