![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | |
Shrek59
Senior Member
Joined: December 04 2006 Location: New Zealand Status: Offline Points: 208 |
Post Options
Thanks(0)
Quote Reply
Topic: How to determine the "current" colourPosted: 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 |
|
![]() |
|
PSchellenbach
Admin Group
Moderator Joined: December 15 2003 Location: United States Status: Offline Points: 2150 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
Shrek59
Senior Member
Joined: December 04 2006 Location: New Zealand Status: Offline Points: 208 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |