Fabian Vilers wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jérôme Fenal wrote:
| De ncurses non, mais de la redirection en shell, un peu.
| Essaye plutôt :
| $ ./pgm args 2> lib.err
|

Je ne l'avais pas précisé mais j'avais bien sur essayé cela. La
redirection &> combien stdout et stderr.

Merci quand meme :-)

Fabian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFA7Qmq3Qzx239StfYRAlJHAJ9Ggrw/vjwZZIVS/ZiU11sfjvagQQCcCw/n
xR5/zs3xSkDtlY1gmgtFoAg=
=wFM7
-----END PGP SIGNATURE-----
--
The information contained in this electronic message may be legally
privileged and confidential under applicable law, and is intended only for
the use of the individual or entity named above. If the recipient of this
message is not the above-named intended recipient, you are hereby notified
that any dissemination, copy or disclosure of this communication is strictly
prohibited. If you have received this communication in error, please notify
Keyware, +32 2 526 16 16 and purge the communication immediately without
making any copy or distribution.

_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
IRC: chat.unixtech.be:6667 - #unixtech


normalement printf() et fprintf("stderr",......) devraient marcher !!!!!!!
et quand on quitte le programme il faut toujour faire un endwin() surtout si il y a une erreur,tout comme au debut il faut faire un initscr(),ce qui sauve le contexte de l'ecran.
le petit probleme de printf, il affiche a la position du curseur, et si ncurses rafraich. l'ecran, il ecrase le caractere ou la ligne affiche par printf.
il est preferable d'utiliser une nouvelle fenetre plus petite pour faire des tests par (f=newwin(nligne,ncolonne,ligned,colonned) ), et afficher les info.d'erreur ou de debug. dans stdscr de ncurses et ne pas oublier la fonction refresh() pour stdscr et wrefresh(f) pour une autre fenetre.
maintenant si il y a erreur et que tu stop le programme exit(.... code.....), toujour faire endwin()
daniel


_______________________________________________________
Linux Mailing List - http://www.unixtech.be
Subscribe/Unsubscribe: http://www.unixtech.be/mailman/listinfo/linux
Archives: http://www.mail-archive.com/[EMAIL PROTECTED]
IRC: chat.unixtech.be:6667 - #unixtech

Répondre à