ts-7000
[Top] [All Lists]

Re: [ts-7000] Problem with ncurses and alsamixer (cannot open terminal:

To:
Subject: Re: [ts-7000] Problem with ncurses and alsamixer (cannot open terminal: vt100 or xterm)
From:
Date: Sun, 03 Jun 2007 03:21:54 -0400
>I finally managed to get the alsa-1.0.4 utils to compile on 
>a ts7200.  When I launch alsamixer, however, I get an error:
>
>Error opening terminal:  xterm
>
>When I ssh into the board.  Or:
>
>Error opening terminal:  vt100
>
>When connected via serial cable.

Do you have proper terminfo files for those terminal types installed?

terminfo describes the escape sequences used to control the terminal.
e.g.  to clear the screen and move the cursor to the beginning of the
top line, print "\01b[H\01b[J"

If you don't have these terminfo files, then ncurses doesn't know how
to work your terminal.  terminfo files are binary.  You compile them
with tic (TermInfo Compiler) and on some systems you can use untic to
get the source code back from a compiled terminfo file.

On my desktop machine, the terminfo files are in /usr/share/terminfo/*/*
where the first wildcard is the first character of the terminal name
and the second is the whole name.  e.g. the terminfo for xterm is in
/usr/share/terminfo/x/xterm

Since they are in /usr/share it suggests that the binary file is 
portable.  Maybe you could just copy xterm and vt100 from your
desktop to your ts board.

>root at ts7000:root# ldd /bin/alsamixer

ldd only shows shared libraries.  Your program runs instead of complaining
about missing shared libraries, right?  You probably linked with the
static ncurses library.  That's fine unless you can identify a real need
to make it a shared library.

Mark S.


 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ts-7000/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ts-7000/join
    (Yahoo! ID required)

<*> To change settings via email:
     
    

<*> To unsubscribe from this group, send an email to:
    

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

<Prev in Thread] Current Thread [Next in Thread>
Admin

Disclaimer: Neither Andrew Taylor nor the University of NSW School of Computer and Engineering take any responsibility for the contents of this archive. It is purely a compilation of material sent by many people to the birding-aus mailing list. It has not been checked for accuracy nor its content verified in any way. If you wish to get material removed from the archive or have other queries about the archive e-mail Andrew Taylor at this address: andrewt@cse.unsw.EDU.AU