[lug] ncurses programming and terms
D. Stimits
stimits at idcomm.com
Tue Jan 8 00:23:28 MST 2002
ljp wrote:
>
> On Monday 07 January 2002 07:11 pm, you wrote:
> > On Mon, Jan 07, 2002 at 05:33:56PM -0700, ljp wrote:
> > > Anybody know ncurses programming here?
> >
> > Yes, a bit. What do you want to know?
> >
> > Ralf
>
> Well, I kinda figured out the problem. I ported (heh just a cross compile,
> really) linuxtree to the Sharp Zaurus pda, and when I was using it.. the
> keycodes were wrong. So Delete wasn't delete, it came out \177. As it turns
> out.. the default TERM on the Zaurus is vt100.. well... the keys only seem to
> work properly on the Z when TERM=linux.
>
> I guess I do have a question, I suppose. In this program, can I set what TERM
> to use explicitly? Instead of using the Z's default setting of vt100, which
> doesn't work?
Probably check out man termcap and man terminfo. If the term is set
explicity but it isn't that type of term, it won't work anyway. Ideally
you want to code "abstract" key codes, and fill it in with
termcap/terminfo database for the term that is being used. On the other
hand if the term is simply being reported wrong or not set and it really
is the Z version, and only defaulting to vt100 out of guessing, you
could try it by exporting TERM=linux or TERM=whatever prior to using the
program with the shell.
D. Stimits, stimits at idcomm.com
>
> ljp
>
> _______________________________________________
> Web Page: http://lug.boulder.co.us
> Mailing List: http://lists.lug.boulder.co.us/mailman/listinfo/lug
More information about the LUG
mailing list