Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Advanced Features
  New Posts New Posts RSS Feed - Test to see if running AccuTerm
  FAQ FAQ  Forum Search   Register Register  Login Login

The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum.

Forum LockedTest to see if running AccuTerm

 Post Reply Post Reply
Author
Message
anonymous View Drop Down
Groupie
Groupie


Joined: January 15 2004
Location: United States
Status: Offline
Points: 46
Post Options Post Options   Thanks (0) Thanks(0)   Quote anonymous Quote  Post ReplyReply Direct Link To This Post Topic: Test to see if running AccuTerm
    Posted: 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.
Back to Top
PSchellenbach View Drop Down
Admin Group
Admin Group

Moderator

Joined: December 15 2003
Location: United States
Status: Offline
Points: 2150
Post Options Post Options   Thanks (0) Thanks(0)   Quote PSchellenbach Quote  Post ReplyReply Direct Link To This Post 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:
PRINT CHAR(27) : CHAR(2) : 'I' :

INPUT RESP
IF INDEX(RESP,'ACCUTERM',1) THEN ...


Thanks,

Pete
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.