Print Page | Close Window

How to get current screen size?

Printed From: Rocket Software
Category: AccuTerm Knowledge Base (read only)
Forum Name: Smart User Interface
Forum Description: Smart User Interface Library beta discussions & support
URL: https://forum.asent.com/forum_posts.asp?TID=1395
Printed Date: March 26 2026 at 5:07pm
Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com


Topic: How to get current screen size?
Posted By: rkgozar
Subject: How to get current screen size?
Date Posted: September 09 2008 at 1:08am
How do I get the current screen settings? I already know how to programmatically set the cols and rows, but how do I read in their current values? I want to be able to programmatically store the settings so I can reset them later.



Replies:
Posted By: PSchellenbach
Date Posted: September 10 2008 at 3:17am
Hi Rex -

While you can use a script to retrieve most any setting, here's a link to a http://www.asent.com/forum/forum_posts.asp?TID=1346 - forum topic that discusses saving nearly all the settings to a temporary file, then restoring them later. If this will not work for you, let me know and I'll post some sample code to retrieve the screen size for you.

Thanks,

Pete


Posted By: rkgozar
Date Posted: September 10 2008 at 7:10am
I don't really want to save the settings in an ini file on the local PC, then have to somehow read it or transfer it to the server. I already saw that solution in the AccuTerm documentation. Is there any other way?


Posted By: rbaker_hughes
Date Posted: September 10 2008 at 8:27am
Pete,
Could you either post that code you mentioned on the forum or send it to me too.
 
I also am looking for the documentation that shows what the different client side scripts are that we can call from the multi-value host, to change the user's session.
 
I found this in the previous thread:
PRINT ESC:STX:'P INITSESSION.FONTNAME="FIXEDSYS"':CR:
What is it to set the screen width or length?
 
I like the idea of saving the user's whole session object before making the change and then restoring it back when the screen execution completes.  That's superior to assuming that everyone uses 80 chars wide and forcing the screen to that.
 
Thanks,
-Baker
 
You can actually DISREGARD this request.  I found the answers I need by digging around through previous posts.  Thankx


-------------
Baker



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.03 - http://www.webwizforums.com
Copyright ©2001-2019 Web Wiz Ltd. - https://www.webwiz.net