When I am inside Vim, and i type ":ls", Vim lists the buffers. Most likely it is going into "cooked mode" using def_prog_mode()
and endwin()
. WHat I'd like to know how does it print the values now. The best i've come out with is using system("echo ....")
which would be quite laborious.
I've tried printf
- no effect, and printw
.
I need to do the same kind of thing in my apps, rather than create Windows or popups, I'd like to list internal information like Vim does.
Here's a sample of what I've tried. http://gist.github.com/587622 Compile it using:
gcc -o a.out -lncurses a.c && ./a.out