lynx-dev
[Top][All Lists]
Advanced

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

Re: lynx-dev Re: size_change code


From: dickey
Subject: Re: lynx-dev Re: size_change code
Date: Thu, 11 Mar 1999 14:11:05 -0500 (EST)

> It looks like this was researched before, and left partly fixed 
> (from LYCurses.c): 

yes - it doesn't work when curses is using wrapping (not a limitation of curses,
but simply taking advantage of the fact that a cr/lf is shorter than a cursor
address)

-- I ifdef'd it out

> #if defined(HAVE_SIZECHANGE) && !defined(USE_SLANG) && defined(NOTDEFINED) 
> /* 
>  *  Hack to deal with a problem in sysV curses, that screen can't be 
>  *  resized to greater than the size used by initscr, which can only 
>  *  be called once.  So set environment variables LINES and COLUMNS 
>  *  to some suitably large size to force initscr to allocate enough 
>  *  space.  Later we get the real window size for setting LYlines 
>  *  and LYcols. - AJL & FM 
>  * 
>  *  Has problems, so we don't use this hack, but the code is here 
>  *  if someone wants to play with it some more. - FM 
>  */ 
>     char *lines_putenv = NULL; 
>     char *cols_putenv = NULL; 
>  
>     if (getenv("LINES") == NULL && getenv("COLUMNS") == NULL) { 
>         StrAllocCopy(lines_putenv, "LINES=120"); 
>         (void) putenv(lines_putenv); 
>         StrAllocCopy(cols_putenv, "COLUMNS=240"); 
>         (void) putenv(cols_putenv); 
>     } 
> #endif /* HAVE_SIZECHANGE && !USE_SLANG && NOTDEFINED */ 
>  
> Dgux is data general unix, usually :-) 
> unset COLUMNS does the same thing (Digital UNIX screens bad) 
> Digital UNIX has sizechange=yes 
>  
> ------ 
> <http://www.cs.indiana.edu/picons/db/users/us/md/lib/bcpl/jspath/face.xbm> 
> <http://www.altavista.com/cgi-bin/query?q=%22web+home+for+jim+spath%22> 
> Marvin the Paranoid Android says: 
> I just wish I was somewhere else. 


-- 
Thomas E. Dickey
address@hidden
http://www.clark.net/pub/dickey

reply via email to

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