Rocket Software Homepage
Forum Home Forum Home > AccuTerm Knowledge Base (read only) > Green Screen
  New Posts New Posts RSS Feed - Hash/Pound sign question
  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 LockedHash/Pound sign question

 Post Reply Post Reply
Author
Message
mkane View Drop Down
Newbie
Newbie


Joined: June 18 2013
Location: United Kingdom
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote mkane Quote  Post ReplyReply Direct Link To This Post Topic: Hash/Pound sign question
    Posted: October 02 2013 at 9:54pm
Hello,

We are now advanced stages of replacing our old terminal emulation software with Accuterm, but have been caught out with an issue that we should have spotted sooner!

We are in the UK, and so need to use the pound sign. Our old terminal emulator did this by using the hash character (#). Whenever a hash character is input, or displayed on screen, a pound sign is displayed instead. However what is stored in the database is the hash sign (character 35).

Accuterm seems to be using the actual pound sign character, which I think is character 156. I've searched the forum and see lots of posts related to this where the solution appears to be to use xcs-on to allow character 156 to be used on D3.

However, because all our existing data is peppered with hash signs, I'd like Accuterm to behave like our old emulation software in this respect. Using the keyboard editor, I have managed to program shift-3 to map to the hash character, but I would like to know if it is possible to get Accuterm to display pound signs instead of hashes?

Thanks
Mark
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: October 03 2013 at 11:13am
Hi Mark,

I don't think there is any "easy" solution here.

Firstly, the pound symbol is character 163 in the main code pages, but is 156 in a significant minority of code pages. I have seen reference to it being at 177 in some code pages too. If you use unicode, that particular problem goes away ... to be replaced by a host of others.

So, assuming you don't want to go to unicode, you need to standardise on a code page, which will probably mean that should run a script when you log in to set AccuTerm to the correct code page.

After that, I'd probably write a subroutine to convert hash signs to pound signs (in both directions) and call that whenever needed. Something like:

  SUBROUTINE POUNDS.CONVERT(io, inrec, outrec)

with main statements like:

  EQUATE pound TO CHAR(156)
  IF (io EQ 'O') THEN
    outrec = CONVERT('#', pound, inrec)
  END ELSE
    outrec = CONVERT(pound, '#', inrec)
  END

That would mean your display would use the proper pound symbol. But beware, if you ever want to use hash symbols, you are going to have problems!

HTH,

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.