Python and curses

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • linuxfreak

    #1

    Python and curses

    Was wanting to write a text based application in python.... seems
    curses module is the way to go... anyone knows of any good tutorials
    apart from the one written by esr

  • Eddie Corns

    #2
    Re: Python and curses

    "linuxfreak " <samgurung@gmai l.com> writes:
    [color=blue]
    >Was wanting to write a text based application in python.... seems
    >curses module is the way to go... anyone knows of any good tutorials
    >apart from the one written by esr[/color]

    There is at least 1 higher level library atop curses.
    http://excess.org/urwid/ I've only played with it a little bit but it looks
    useful.

    Eddie

    Comment

    • Isaac T Alston

      #3
      Re: Python and curses

      linuxfreak wrote:
      [color=blue]
      > Was wanting to write a text based application in python.... seems
      > curses module is the way to go... anyone knows of any good tutorials
      > apart from the one written by esr[/color]

      Not off the top of my head, no. However, you will find that the functions
      needed will be very similar to the C functions used. I did this with PHP a
      while back and (because there are a lack of tutorials for PHP too) I had to
      resort to the man pages for it. So I'd suggest reading that tutorial (by
      esr or whoever) and then just reading the man pages for C for more
      documentation.

      Regards,

      --
      Isaac

      Comment

      • Thomas Dickey

        #4
        Re: Python and curses

        linuxfreak <samgurung@gmai l.com> wrote:[color=blue]
        > Was wanting to write a text based application in python.... seems
        > curses module is the way to go... anyone knows of any good tutorials
        > apart from the one written by esr[/color]

        It wasn't written by esr. He only has his name on it, did none of the work.

        --
        Thomas E. Dickey
        Thomas Dickey develops/maintains widely-used tools and libraries for software development (diffstat, yacc, mawk) and terminals (ncurses, lynx, xterm)

        ftp://invisible-island.net

        Comment

        Working...