Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - pterm charset: (12 Items)
   
pterm charset  
I have some legacy code and some new applications that require a text-based interface for portability and remote access.
 I've used ncurses in the past, and figured that would be a good way to go. Getting my feet wet again, I compiled a 
simple test program from a HowTo guide that just draws a box on the screen and moves it around. It works fine under 
cygwin, works fine in text mode, but the wrong characters appear in pterm.

The documentation on pterm say pterm uses "IBM Code Page 437", but that does not appear to be the case. What does it use
? Has pterm moved to UTF8 along with the rest of QNX, and if so, what does that imply for ncurses? To do this correctly,
 will I need ncursesw?
Re: pterm charset  
I am guessing that you are not using a "proper" font. Try using one of "pcterm*" fonts.
Re: pterm charset  
I've actually cycled through all the font options. The charset never seems to change.

I've attached the test program. It can be compiled with something like:

make wintest LDLIBS=-lncurses CPPFLAGS=-I/usr/include/ncurses
Attachment: Text wintest.c 2.51 KB
Re: pterm charset  
Please attach a small snapshot of what you are seeing. 
I think you may be hitting a pterm bug when repeating characters. It has been fixed (recently).
Re: pterm charset  
Will do, but I"m basically seeing '9's or 'q's on the horizontal bars (depending on which libncurses I linked against.)
Re: pterm charset  
Here's a screenshot. The figure in the center is supposed to be a box. This was taken on a new installation of 6.5.0, 
but it is identical to the 6.4.1 test I ran before. Does this look like the repeating character problem you mentioned?
Attachment: Image snap1.png 1.67 KB
Re: pterm charset  
Yes it is the problem. It is fixed in the head. You can sign-up to get the source: http://community.qnx.com/sf/wiki/do/
viewPage/projects.community/wiki/UpdatedQNXSourceAccessPolicyFAQ. Then check-out the lib/ph from the graphics repository
 and build it.
Re: pterm charset  
So I applied for access to the source code a couple months ago, and save for an acknowledgment of the application a week
 or so later, I haven't heard a thing. So... any chance I might be able to get my hands on a binary snapshot of the 
library?
RE: pterm charset  
Your fastest route to get the answer for the below is via whoever you
interacted with the get your Momentics (QNX sales rep or reseller
company sales rep).

--
  Mate

-----Original Message-----
From: Norton Allen [mailto:community-noreply@qnx.com] 
Sent: September 21, 2010 2:27 AM
To: photon-graphics
Subject: Re: pterm charset

So I applied for access to the source code a couple months ago, and save
for an acknowledgment of the application a week or so later, I haven't
heard a thing. So... any chance I might be able to get my hands on a
binary snapshot of the library?



_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post67898
Re: RE: pterm charset  
I have an academic license, and have had for twenty years or so. They used to go through a formal application process 
with real people, but now it's almost automatic, so I don't have a direct contact.
RE: RE: pterm charset  
sit tight, I'll see what we can find out.

-----Original Message-----
From: Norton Allen [mailto:community-noreply@qnx.com] 
Sent: Monday, September 20, 2010 9:30 PM
To: photon-graphics
Subject: Re: RE: pterm charset

I have an academic license, and have had for twenty years or so. They
used to go through a formal application process with real people, but
now it's almost automatic, so I don't have a direct contact.



_______________________________________________

Photon microGUI
http://community.qnx.com/sf/go/post67980
Re: pterm charset  
Any progress?