i'm writing a text viewer that uses ncurses, it works... sort of. It'll
display ordinary text files ok, but whenever it comes across one of the
escape chars (%s %d %p etc) it segfaults. I'm using wprintw() to display
lines of the file (that were read off disk into a linked list) on the
screen in a window. I think it's because wprintw() is interpreting them
as actual escape chars instead of blindly displaying them onscreen.

How can i get around this minor annoyance?

hmm, duh... if wprintw() doesn't do it right, don't use it...

int l;
for (l = 0; l < 80; l++)
        wechochar (viewer, infile->data[l]);

seems to work, but it's hardly fast... any better ideas?

-- 
+++ Divide By Cucumber Error, Please Re-Install Universe And Reboot +++
[EMAIL PROTECTED]                    http://x-map.home.ml.org

Reply via email to