I don't know of any way to tell based on the available data structures but you do have control over the naming if the devices. Name all the old terminals as DUMBO00001, etc and then test the device name which is available to the application
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Jerry C. Adams
Sent: Friday, September 23, 2011 9:43 AM
To: Midrange-L
Subject: Dumb Terminal or Emulator
We still have a couple of dumb terminals sitting around and currently being used, though most work is done with PCs running 5250 emulation.
I was wondering if there is any way to tell if a program is running on a dumb terminal or an a PC. The reason for asking is that I may want to provide the ability for users to invoke a web search or validate fields, such as zip code, through a web service. Obviously, these functions would crash and burn if run from a dumb terminal so I want to be able to check before I allow such things.
I read the recent discussion on Interactive vs Non-Interactive but did not see anything that addressed this specific condition (though I may have scanned the entries too rapidly or casually).
Thanks.
Jerry C. Adams
IBM i Programmer/Analyst
Uxbridge: "My Lord, I have lost my leg."
Wellington: "By God, so you have!" (At the Battle of Waterloo)
--
A&K Wholesale
Murfreesboro, TN
615-867-5070
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.