![]() |
| The AccuTerm forum has moved. Go to community.rocketsoftware.com to register for the new Rocket forum. |
|
Post Reply
|
| Author | |
mkane
Newbie
Joined: June 18 2013 Location: United Kingdom Status: Offline Points: 7 |
Post Options
Thanks(0)
Quote Reply
Topic: Hash/Pound sign questionPosted: 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 |
|
![]() |
|
Shrek59
Senior Member
Joined: December 04 2006 Location: New Zealand Status: Offline Points: 208 |
Post Options
Thanks(0)
Quote Reply
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 |
|
![]() |
|
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 |