2009-06-08 11:02:35 ncurses
Jasper Horsting (BELGIUM)
Message: 75350
Hey
after that my uclinux start up, my ncurses starts automaticly up to.
The window of my ncurses is visable but when i move the curser from the menu with my keys. It isn't responding.
This is the end of my /etc/rc file
...
export TERM=linux
export TERMINFO=/usr/share/terminfo
cd /tmp
chmod 777 main
./main
What must i do so that ncurses starts succesfully up and responds on my keys
thanks
TranslateQuoteReplyEditDelete
2009-06-08 11:07:36 Re: ncurses
Mike Frysinger (UNITED STATES)
Message: 75351
/etc/rc does not run with stdin and such connected, so unless you reconnected those things, you must do it in your code
try running it manually from the terminal and see if it works
QuoteReplyEditDelete
2009-06-08 11:13:09 Re: ncurses
Jasper Horsting (BELGIUM)
Message: 75353
manually does it works but it has to go automaticly
TranslateQuoteReplyEditDelete
2009-06-08 12:02:27 Re: ncurses
Jasper Horsting (BELGIUM)
Message: 75358
Mike
You have say something about reconnecting in your code. Wath did you mean?
Or can i make a script that runs after uclinux fully starts up?
TranslateQuoteReplyEditDelete
2009-06-08 12:28:46 Re: ncurses
Mike Frysinger (UNITED STATES)
Message: 75362
std{in,out,err} are just file descriptors. your code has to make sure they're opened properly. use /dev/console as the file.
QuoteReplyEditDelete
2009-06-08 13:01:02 Re: ncurses
Jasper Horsting (BELGIUM)
Message: 75365
Hey
I do something rong but i don't now what
...
dhcpcd &
#ifconfig eth0 10.100.4.251 up
ifconfig lo 127.0.0.1
inetd &
export TERM=linux
export TERMINFO=/usr/share/terminfo
cd /tmp
chmod 777 main
chmod 777 starten
echo /tmp/main 2>/dev/null > /dev/console
is there a doc page about that?
Thanks
TranslateQuoteReplyEditDelete
2009-06-08 17:29:05 Re: ncurses
Mike Frysinger (UNITED STATES)
Message: 75371
you sent stderr to /dev/null and stdout to /dev/console, but you still didnt redirect stdin. you probably need "< /dev/console".