I'd check the setting of your TERM variable (in both cases).
Through ssh (Mac OS X terminal) I get TERM = xterm-color
Through wermit/kermit serial I get TERM = vt100

I changed the .profile on the Verdex to include the line:
export TERM="xterm-color"

Now ncurses is displaying the colors correctly but still breaks.


Also, are you using the console? or STUART?
Not quite sure what the difference between these is.  I think I am using the FFUART for the serial connection (does that sound right?); FF_TXD/RXD on 60-pin connector.

If you're using the console, then console output may be getting
interspersed with your output.

I think I have narrowed down the problem.  I know my code requires the terminal to have a height of at least 39 lines (or it crashes with output similar to what I am seeing over serial).  When I run VI over serial I can only see 24 lines of text (default if it cant find terminal information) and when I exit it goes back to displaying as many as my OS X terminal has.  This leads me to believe that there is some text height limit when I run executables...   any thoughts?

EDIT:
Before I sent this I played around some more and figured out that I can get it to work (with modified TERM=xterm-color variable) by first typing the following
> export LINES=50
> tset

Why does this data get communicated automatically over ssh and has to be set manually over serial.

Sorry this has turned into a Linux thing instead of a gumstix thing.
But I really appreciate the help :)

Thanks,
Brett

--------------------------------------------------
Brett Hemes
UMN Center for Distributed Robotics
hemes@cs.umn.edu
hemes001@gmail.com




On Jan 29, 2009, at 9:57 AM, Dave Hylands wrote:

Hi Brett,

I have a ncurses interface that runs on a Verdex equipped robot.  It is a
diagnostic program that is run from the command line.
Everything works fine over ssh (bluetooth or 802.11) but the interface
breaks as soon as it starts when I run it over serial.
I am using wermit on Mac OS X 10.4 for serial communication
The gumstix is a Verdex XL6P with a wifistix attached
Since the code runs fine over ssh I am assuming it is an issue with wermit
or ncurses, just wanted to see if anyone had some insight.

I'd check the setting of your TERM variable (in both cases).

Also, are you using the console? or STUART?

If you're using the console, then console output may be getting
interspersed with your output.

-- 
Dave Hylands
Shuswap, BC, Canada
http://www.DaveHylands.com/

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users