Subj : RE: Reliable way to get term size To : NuSkooler From : Alpha Date : Sat Apr 03 2021 10:07 am > For Telnet connections, you can ask for NAWS which some support. You > can also ask for environment variables, which works for some terminals > as well. There is also a trick that works for some: Move the cursor to > a very large bottom right coordinate (I use 999,999) then issue a ANSI > query for cursor position. Not all respond so you have to time out if > you get nothing back. Super helpful. Thanks. Going to try both of these. > ENiGMA offers ways to ask the system itself what the user currently > has and I imagine many others do as well -- but of course if you've > left to a door already that could be lost. Yeah, I was thinking there could be a system-by-system way to do this, whetehr it's a query or literally checking a preference setting/db. > Older door.sys formats and some others included some of this > information. Not present in door32 or dorinfo#.def though =) Perhaps > querying the system and passing it at the command line. Right, and then it would still be up to each BBS author to make sure this info is dumped into the file. > ...so again, it's complicated :D I worried this would be the case. I may just add a toggle at launch for the user: e.g. "select 80 or 132" but feels like an extra step for the user if that info already exisits somwhere. I know in some cases, like menus, the system chooses automatically. But given this is a door, I might be outta luck in terms of elegance :) Thank you! |08--- |15++ |13Alpha |15++ |03TheDrunkenGamer.com|08:|078888 |08A Talisman BBS --- Talisman v0.16-dev (Linux/x86_64) * Origin: The Drunken Gamer BBS (21:4/158.1) .