[IPython-user] ncurses under IPython

Geoffrey Fulton geoffreyfulton@gmail....
Sun Feb 15 21:59:13 CST 2009


You might try looking at curses.wrapper, though, I think it just
ensures the terminal is in a correct state when shutting down or
debugging.

On 2/15/09, Chris Jones <cjns1989@gmail.com> wrote:
> I'm trying to use IPython to display ncurses color pairs on a 256-color
> xterm.
>
> Since I'm unsure of the syntax of many ncurses calls, I thought doing
> this interactively and using the %save or %edit magic commands might be
> more productive than writing a script and running it from a shell.
>
> The problem I'm having is that as soon as I initialize the ncurses
> context via the "cbreak" .. "noecho" .. calls, the terminal becomes
> unusable - I can no longer enter anything interactively.
>
> Is there a way out of this?
>
> Thanks,
>
> CJ
>
> _______________________________________________
> IPython-user mailing list
> IPython-user@scipy.org
> http://lists.ipython.scipy.org/mailman/listinfo/ipython-user
>


More information about the IPython-user mailing list