[Tutor] How to use "curses.resizeterm(nlines, ncols)"
boB Stepp
robertvstepp at gmail.com
Sun Feb 24 18:48:48 EST 2019
On Sun, Feb 24, 2019 at 2:52 PM Mats Wichmann <mats at wichmann.us> wrote:
>
> On 2/24/19 1:30 PM, boB Stepp wrote:
>
> > So what am I misunderstanding? Can someone show me a code snippet
> > that I can run which will demonstrate the usefulness and usage of
> > curses.resizeterm()?
> >
> > TIA!
> >
>
> If it's snippets you want, I always look at programcreek. These are
> always part of something bigger so they may not fit your request to have
> them be something you can run.
>
> https://www.programcreek.com/python/example/57429/curses.is_term_resized
Thanks for the link! It looks useful for future research! However,
in the context of the current discussion, especially after Cameron's
revelations, I cannot help but wonder if the writers of the three code
snippets did not truly understand resizeterm()? Especially the first
example is very similar to my testing script. But I did not go to the
full-fledge programs to see if there was something unusual going on,
so I may be overly harsh is my first impression.
--
boB
More information about the Tutor
mailing list