![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | |
anonymous
Groupie
Joined: January 15 2004 Location: United States Status: Offline Points: 46 |
Post Options
Thanks(0)
Quote Reply
Topic: Test to see if running AccuTermPosted: October 18 2005 at 9:48am |
|
I want to know inside my program, if I am running AccuTerm. I don't want to get an error if I try to run something that is AccuTerm specific if the user is running another terminal emulator or dumb terminal.
|
|
![]() |
|
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
Posted: October 18 2005 at 9:56am |
|
Hi -
If you have the AccuTerm host (file transfer) programs installed, you can call the FTVSINF subroutine to determine if you are running AccuTerm or not. Check the return value of the first argument (PLATFORM) and if its not zero, you are running AccuTerm. You can pass NULL for the other arguments if you are not interested in them. Look at the source code of this subroutine for more information. If you do not have the host programs installed, you can use an escape sequence to cause AccuTerm send its license information back to the host. The host program then can simply INPUT the response and look for "ACCUTERM" in the returned string. The drawback to this approach is that a dumb terminal or other emulator will not respond, requiring the operator to press ENTER to continue. Many MV platforms have some form of timed-input, which can be used to solve this problem. Here's an example of the escape sequence:
Thanks, Pete |
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |