Gui vs Green screen (Hybrid)
-
gleary
- New User
- Posts: 2
- Joined: Thu Jun 11, 2015 1:11 pm
- First Name: Gordon
- Last Name: Leary
- Company Name: AMPORTS, Inc.
- Phone: 410-843-7110
- Address 1: 2901 Childs St
- City: Essex
- State / Province: Maryland
- Zip / Postal Code: 21226
- Country: United States
- Contact:
Gui vs Green screen (Hybrid)
I a program that offers Green screen and Rich Display File screens. How can I determine in the program which environment the user is in? I am printing to a serial port for the green screen and can not do this on my Rich Display File. I need to call a different program for the Rich Display File app.
-
Scott Klement
- Experienced User
- Posts: 2711
- Joined: Wed Aug 01, 2012 8:58 am
- First Name: Scott
- Last Name: Klement
- Company Name: Profound Logic
- City: Milwaukee
- State / Province: Wisconsin
Re: Gui vs Green screen (Hybrid)
Hi Gordon,
Since you mention having a mix of 5250 and rich displays, it sounds like you are probably running everything in Genie, correct? There is a program provided in Genie that can be used to detect the environment, more info about this can be found here:
https://docs.profoundlogic.com/x/aAJ4
If you have the same question when running via the RIch DIsplay session controller (i.e. you use the /profoundui/start URL, or launch programs from Atrium via a "Rich Display" launcher) then you can check for the PROFOUNDUI environment variable. There's some information about that, here:
https://docs.profoundlogic.com/x/PQF4
I'll move this discussion to the Genie forum, since it doesn't appear to be related in any way to Universal Displays.
Since you mention having a mix of 5250 and rich displays, it sounds like you are probably running everything in Genie, correct? There is a program provided in Genie that can be used to detect the environment, more info about this can be found here:
https://docs.profoundlogic.com/x/aAJ4
If you have the same question when running via the RIch DIsplay session controller (i.e. you use the /profoundui/start URL, or launch programs from Atrium via a "Rich Display" launcher) then you can check for the PROFOUNDUI environment variable. There's some information about that, here:
https://docs.profoundlogic.com/x/PQF4
I'll move this discussion to the Genie forum, since it doesn't appear to be related in any way to Universal Displays.
-
mingoosen
- New User
- Posts: 1
- Joined: Wed Dec 24, 2025 9:56 pm
- First Name: goosen
- Last Name: min
- Company Name: Slope Game
- Phone: 0983572587
- Address 1: 123 Elm Street, Houston, Texas
- City: Abbeville
- State / Province: Texas
- Zip / Postal Code: 78701
- Country: United States
- Contact:
Re: Gui vs Green screen (Hybrid)
Figuring out the user's environment can be tricky! I've faced similar challenges determining where my code is running. It's like needing to know if you're playing Slope Game on a desktop or mobile device to adjust the controls. Perhaps you could use an environment variable or a conditional compilation directive to differentiate between the Green Screen and Rich Display File environments.
Who is online
Users browsing this forum: Bing [Bot] and 42 guests