Hash/Pound sign question
Printed From: Rocket Software
Category: AccuTerm Knowledge Base (read only)
Forum Name: Green Screen
Forum Description: General terminal emulation questions
URL: https://forum.asent.com/forum_posts.asp?TID=2361
Printed Date: March 26 2026 at 8:51pm Software Version: Web Wiz Forums 12.03 - http://www.webwizforums.com
Topic: Hash/Pound sign question
Posted By: mkane
Subject: Hash/Pound sign question
Date 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
|
Replies:
Posted By: Shrek59
Date 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
|
|