Thread View: news.software.readers
3 messages
3 total messages
Started by hillary gorman
Fri, 17 Jan 1997 00:00
SLRN 0.9.2.1 beta - recognizing terminal size?
Author: hillary gorman
Date: Fri, 17 Jan 1997 00:00
Date: Fri, 17 Jan 1997 00:00
20 lines
1307 bytes
1307 bytes
Argh. Ok, I feel like a luser now. We just installed this version of slrn,
and now my users are complaining that they can't make slrn recognize a
screen size with more than 24 lines. I'm very sick of hearing "why doesn't
it take up the whole screen??" from them, but I'm beside myself trying to
fix it on these SunOS 4.1.4 boxen. It's working normally on the linux box
I also use sometimes, I can't figure out what's different. Thoughts?
Anecdotes? References? LARTS?
thanks.
--
hillary gorman......................................hillary@netaxs.com
If you need help, contact <support@netaxs.com>
"So that's 2 T-1s and a newsfeed....would you like clues with that?"
Net Access...we got the clues, we got the funk, we got the bandwidth!
Re: SLRN 0.9.2.1 beta - recognizing terminal size?
Author: Michael Israeli
Date: Fri, 17 Jan 1997 00:00
Date: Fri, 17 Jan 1997 00:00
50 lines
2217 bytes
2217 bytes
In <slrn5dukjm.9rk.davis@mygir.davis.net>,
John E. Davis <davis@space.mit.edu> wrote:
> If you use gcc on a Sun, you have to use the -traditional-cpp compiler
> flag. It is well known that there is a conflict between the sun
> include files and gcc. Also, the window size is determined in
> slang/src/sldisply.c. One of your include files (see sldisply.c) must
> define TIOCGWINSZ for it to work properly. This is usually defined
> when /usr/include/termios.h is included. That file will be included
> if slang/src/config.h defines HAVE_TERMIOS_H.
Well, your help is much appreciated. Today I was able to compile slrn
on our SunOS 4.1.4 machine and the window size works at > 24 lines.
There was no slang/src/sldisply.c file in the distribution I got, but I
used your suggestions to do the following:
added -traditional-cpp to the src/Makefile:
CFLAGS = -g -O -fno-strength-reduce -DX_DISPLAY_MISSING
-traditional-cpp
then, in src/slrn.c where it said #ifdef HAVE_TERMIOS_H, I changed that
to
#if 1 so it will do it anway:
#if 1
struct winsize wind_struct;
if (Slrn_Batch)
return;
do
{
if ((ioctl(1,TIOCGWINSZ,&wind_struct) == 0)
|| (ioctl(0, TIOCGWINSZ, &wind_struct) == 0)
|| (ioctl(2, TIOCGWINSZ, &wind_struct) == 0))
{
c = (int) wind_struct.ws_col;
r = (int) wind_struct.ws_row;
break;
}
}
while (errno == EINTR);
And it compiled and works like a charm. Thanks again for the help. :)
- Izzy
Re: SLRN 0.9.2.1 beta - recognizing terminal size?
Author: John E. Davis
Date: Fri, 17 Jan 1997 00:00
Date: Fri, 17 Jan 1997 00:00
24 lines
1626 bytes
1626 bytes
On 17 Jan 1997 00:53:05 GMT, hillary gorman <hillary@hillary.net> wrote: >Argh. Ok, I feel like a luser now. We just installed this version of slrn, >and now my users are complaining that they can't make slrn recognize a >screen size with more than 24 lines. I'm very sick of hearing "why doesn't >it take up the whole screen??" from them, but I'm beside myself trying to >fix it on these SunOS 4.1.4 boxen. It's working normally on the linux box >I also use sometimes, I can't figure out what's different. Thoughts? >Anecdotes? References? LARTS? If you use gcc on a Sun, you have to use the -traditional-cpp compiler flag. It is well known that there is a conflict between the sun include files and gcc. Also, the window size is determined in slang/src/sldisply.c. One of your include files (see sldisply.c) must define TIOCGWINSZ for it to work properly. This is usually defined when /usr/include/termios.h is included. That file will be included if slang/src/config.h defines HAVE_TERMIOS_H. --John
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads