PxPlus User Forum

Twitter Twitter Twitter

Author Topic: Graphic Characters  (Read 1264 times)

Lawrence_Leavell

  • Silver Member
  • ***
  • Posts: 49
    • View Profile
Graphic Characters
« on: June 29, 2019, 03:59:37 PM »
Some of our operators use terminal emulations such as TinyTERM, SecureNetTERM, AnzioTERM.
All of these customers generally use the "ansi" TERM.
None of these customers have true graphics on their screen. Instead, they get hi-ascii characters.
Do we have the wrong character set selected of what??
Lawrence Leavell

James Zukowski

  • Diamond Member
  • *****
  • Posts: 297
    • View Profile
Re: Graphic Characters
« Reply #1 on: July 01, 2019, 10:04:52 AM »
I presume by "true graphics" you mean line drawing. I had a similar problem running PuTTY. I finally got it straightened out in my PuTTY configuration with a combination of factors:
  • Keyboard emulation: VT100+
  • Window translation:
    • Character set: UTF-8
    • Use font in both ANSI and OEM modes
    • Enable VT100 line drawing even un UTF-8 mode
Window translation options turned off:
  • Treat CJK ambiguous characters as wide
  • Copy and paste line drawing characters as lqqqk
I'm not sure how these would present themselves in other emulators. PuTTY is free (https://www.chiark.greenend.org.uk/~sgtatham/putty/), so you can check it out and develop the appropriate correlations from there.
James Zukowski
Sr. Developer - J&E

BRAND>SAFWAY
Brand Industrial Services

Mike King

  • Diamond Member
  • *****
  • Posts: 3811
  • Mike King
    • View Profile
    • BBSysco Consulting
Re: Graphic Characters
« Reply #2 on: July 02, 2019, 10:23:17 AM »
Lawrence,

Unfortunately many terminal emulations don't default to the original terminal definitions for graphic characters as they now want to support UTF-8 or other character sets such as Thai or Cyrillic.

In PxPlus we ship with the the original terminal escape sequence or character required to display line graphics.   For example if you have a VT100 physical device the standard setting in *dev/vt100 should generate proper line characters -- however this is done using high order ASCII ($80$=>$FF$) and these generally are mapped to something other than the line graphics on most emulators. 

For XTERM devices we have custom 'GS' 'GE', and 'GD' mnemonics defined that we validate by running on a Linux console however we know many emulators don't handle them consistent with the Linux definition.

Now you can change the characters/escape sequence sent by the system by defining your own 'GS' (Start graphics), 'GE' (End Graphics), and 'GD' (Graphic characters) mnemonics.

Lastly though, we strongly recommend you switch to using WindX which not only seamlessly handles the graphic codes, it provides must more functionality than is found in most text mode terminal emulators. 

Emulating text mode terminals that existed last century while viable, limits the potential capabilities of the clients application.
Mike King
President - BBSysco Consulting
eMail: mike.king@bbsysco.com