By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
439,941 Members | 1,753 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 439,941 IT Pros & Developers. It's quick & easy.

Text based screens without ncurses

P: n/a
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? 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? any ideas? any suggestions?

--
Mirat Can Bayrak <mi************@gmail.com>
Nov 13 '08 #1
Share this Question
Share on Google+
2 Replies


P: n/a
On 2008-11-13, Mirat Can Bayrak <mi************@gmail.comwrote:
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.

--
Grant Edwards grante Yow! If our behavior is
at strict, we do not need fun!
visi.com
Nov 13 '08 #2

P: n/a
On Thu, Nov 13, 2008 at 2:10 PM, Grant Edwards <invalid@invalidwrote:
On 2008-11-13, Mirat Can Bayrak <mi************@gmail.comwrote:
>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
Nov 14 '08 #3

This discussion thread is closed

Replies have been disabled for this discussion.