Text based screens without ncurses

Shawn Milochik Shawn at milochik.com
Fri Nov 14 11:40:51 EST 2008


On Thu, Nov 13, 2008 at 2:10 PM, Grant Edwards <invalid at invalid> wrote:
> On 2008-11-13, Mirat Can Bayrak <miratcanbayrak at gmail.com> wrote:
>
>> Hi, i'll try to write a editor in python, i want it run under
>> terminal (no qt or gtk) but i dont want to use urwid or curses
>> modules.
>>
>> Can i write my curses like module in python?
>
> Sure.  If you don't want to use the ncurses library, then you
> could use something like slang (the Python package containing
> slang is called newt).
>
> Or you can use terminfo/termcap like this:
>
> http://code.activestate.com/recipes/475116/
>
>> i googled to find metods that curses uses to write
>> characters,colors etc. on screen but it did not make sense to
>> me. Can u help me?
>
> Probably not.
>
>> any ideas? any suggestions?
>
> Well, I'd working on my spelling and typing skills and stop
> using SMS-speak on Usenet.
>


I second that! This list has standards. Here are a few tips:

Capitalize the word "I" and "I'll" and the like.
The word "you" has three letters in it, not one.
Use spell-check.
Capitalize Google and its derivatives.

In general, present yourself as someone intelligent -- not a moron.
You'll get more respect, and more help.

While I'm ranting, here's more general stuff that doesn't necessarily
apply to this thread:

Do not type anything in all caps.
Make your e-mail subject meaningful. I don't bother to read anything
with no subject, or "help" or some other useless title.
If your code isn't working, post it when asking the group why it doesn't work.
When your output isn't what you wanted, post sample input, actual
output, and expected output.

Proofread what you write! Not only will you be able to fix bad
writing, but upon re-reading you may notice that you are being
ambiguous, leaving out important details, or that your wording just
doesn't make sense. Think about how many threads begin with a
question, then 10 responses asking for clarification. If you ask
properly the first time, you might just get the right answer in the
first reply!

ShawnMilo



More information about the Python-list mailing list