Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Green Screen
  New Posts New Posts RSS Feed - How to determine the "current" colour
  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 LockedHow to determine the "current" colour

 Post Reply Post Reply
Author
Message
Shrek59 View Drop Down
Senior Member
Senior Member


Joined: December 04 2006
Location: New Zealand
Status: Offline
Points: 208
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shrek59 Quote  Post ReplyReply Direct Link To This Post Topic: How to determine the "current" colour
    Posted: April 07 2014 at 2:26pm
Hi Pete,

Is there some way to retrieve the current colour being used to display text in Accuterm?

For example:

 * the "normal" colour is set to white text on a turquoise background with InitSession.Colors(0) = 63

 * the "current" colour is set to white text on a blue background with ESC:STX:"A15":CR:ESC:STX:"B3":CR

If I query the InitSession.color property, it returns 63. The documentation notes that this property returns the colour used by the SetText method - and when I call that method, that is indeed the colour that is used.

Is there any property I can query to return the colour currently being used by normal text at the cursor position - which should be 159 in the above example?

We are using Viewpoint A2 Enhanced emulation.

Thanks,

Brian
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: April 16 2014 at 3:12am
Hi Brian -

I cannot see any easy way to determine the current color used to display text. Might there be another way to solve the problem you are working on?

Thanks,

Pete
Back to Top
Shrek59 View Drop Down
Senior Member
Senior Member


Joined: December 04 2006
Location: New Zealand
Status: Offline
Points: 208
Post Options Post Options   Thanks (0) Thanks(0)   Quote Shrek59 Quote  Post ReplyReply Direct Link To This Post Posted: April 16 2014 at 1:12pm
Thanks, Pete.

I was looking for a way for generic subroutine to determine what colour was being used. It is no great problem - I either pass colours as necessary, or blunder on in the expectation that "normal" conditions persist! <g>

Cheers,

Brian
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.