473,396 Members | 2,158 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Text based screens without ncurses

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
2 2400
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Richard Patching | last post by:
Have been looking into text based UI's in Python, but have found very little useful documents. I am looking for some NCurses tutorials in particular but can't seem to find anything helpful. Can...
2
by: Slash | last post by:
I often do a lot of text-mode programming in Linux and wanted to use colors in text mode, and found the ncurses library needlessly complex for small applications. So I wrote my own little header to...
14
by: Roger Withnell | last post by:
How to I find out what size text the browser is set to? Thanks in anticipation.
4
by: Zoubidoo | last post by:
Many applications require a high-speed interface such as supermarket checkouts, busy points of sale, doctors' surgeries etc. The problem with graphical interfaces is that they are too slow for...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.