If there was a way that we could put in, say, <pipe>#V#2#X/2#8...etc, where X was the max x, or TermSizeX (using mpl terms), divided by 2 to find the center of the screen, it would make things a bit easier. This
is something that can be done pretty easily with MPL, but this might be something that could help out other sysops.
One thing I experimented with was some inline scripting that I called "QuickScript" where you can get access to some basic values/math
functions right inside an MCI code in places where an X/Y value would be involved.
{(80+(wx/2))-2}
And that would allow you to calculate numbers right in an MCI code. In that example "WY" and "WX" are the user's terminal size X/Y. I was expanding it to support other variables and stuff but I stopped at some point.
Like you mentioned the same could be accomplished today using MPL or
also an external display file like "mybox.c132.ans" that shows the box where you want it only for 132+ displays and so on.
Another idea specifically for the box drawing code would be to have the option for it to automatically center on the screen if you supply a "0" value for the start or end X positions. This might be a good thing to
add too.
Sysop: | Rempala |
---|---|
Location: | Richlands, NC |
Users: | 109 |
Nodes: | 10 (0 / 10) |
Uptime: | 151:21:25 |
Calls: | 331 |
Files: | 6 |
Messages: | 110,873 |