Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - qansi-m terminal warning message - not fully functional: (6 Items)
   
qansi-m terminal warning message - not fully functional  
I am using QNX 6.3.2 Momentics installed on Windows host. I am building .ifs files for my x86 target through buildfiles.
 When I boot my image on my target machine and when I type (for example):

more /etc/services

I get a message:
WARNING: terminal is not fully functional.

and then after pressing "Enter" key, I can see the contents of my file.

Here is the relevant part from my buildfile:
#These env variables inherited by all the programs which follow
    SYSNAME=nto
    TERM=qansi-m
    devc-con-hid -n4 &
# START the main shell on console 1
    reopen /dev/con1
    [+session] esh &

I started with the standard bios.build file and modified it to my system requirements.

How do I get rid of the warning message? I have read "Building Embedded Systems" guide but I was not able to find 
anything which would solve this problem.

Thanks


Re: qansi-m terminal warning message - not fully functional  
You need to have /usr/lib/terminfo/ present - specifically the 
/usr/lib/terminfo/q/qansi-m file

eg (in your build file)

/usr/lib/terminfo/q/qansi-m=/usr/lib/terminfo/q/qansi-m

On 10-04-19 8:19 PM, Kushal Koolwal wrote:
> I am using QNX 6.3.2 Momentics installed on Windows host. I am building .ifs files for my x86 target through 
buildfiles. When I boot my image on my target machine and when I type (for example):
>
> more /etc/services
>
> I get a message:
> WARNING: terminal is not fully functional.
>
> and then after pressing "Enter" key, I can see the contents of my file.
>
> Here is the relevant part from my buildfile:
> #These env variables inherited by all the programs which follow
>      SYSNAME=nto
>      TERM=qansi-m
>      devc-con-hid -n4&
> # START the main shell on console 1
>      reopen /dev/con1
>      [+session] esh&
>
> I started with the standard bios.build file and modified it to my system requirements.
>
> How do I get rid of the warning message? I have read "Building Embedded Systems" guide but I was not able to find 
anything which would solve this problem.
>
> Thanks
>
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post52083
>
>    

-- 
cburgess@qnx.com
Re: qansi-m terminal warning message - not fully functional  
OK great. Understood why that warning message.

However, after including the line:
/usr/lib/terminfo/q/qansi-m=/usr/lib/terminfo/q/qansi-m
in my buildfile and then importing it in my IDE, I get the message:

*****************************************
The following host location could not be resolved:
/usr/lib/terminfo/q/qansi-m
We recommend you to check them.
*****************************************

The file, qansi-m, does exists on my WindowsXP host at:
C:\QNX632\target\qnx6\usr\lib\terminfo\q

Any ideas?
Re: qansi-m terminal warning message - not fully functional  
You need to use the host path in your build file

eg

/usr/lib/terminfo/q=C:\QNX632\target\qnx6\usr\lib\terminfo\q

(I'm not sure about the dos style backslashes, you probably need to 
switch them for forward slashes)

On 10-04-20 2:40 PM, Kushal Koolwal wrote:
> OK great. Understood why that warning message.
>
> However, after including the line:
> /usr/lib/terminfo/q/qansi-m=/usr/lib/terminfo/q/qansi-m
> in my buildfile and then importing it in my IDE, I get the message:
>
> *****************************************
> The following host location could not be resolved:
> /usr/lib/terminfo/q/qansi-m
> We recommend you to check them.
> *****************************************
>
> The file, qansi-m, does exists on my WindowsXP host at:
> C:\QNX632\target\qnx6\usr\lib\terminfo\q
>
> Any ideas?
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post52153
>
>    

-- 
cburgess@qnx.com
Re: qansi-m terminal warning message - not fully functional  
Yes, I thought about explicitly giving the host path as  you suggested however wouldn't that will make my file 
unportable (or less portable) to a Linux or a QNX host?
Re: qansi-m terminal warning message - not fully functional  
Ok the following line makes the code portable and it works:
/usr/lib/terminfo/q/qansi-m=${QNX_TARGET}/usr/lib/terminfo/q/qansi-m

Thanks Colin for your help!