469,600 Members | 2,393 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,600 developers. It's quick & easy.

Override on terminal

Hi there.

I'm computer science student at the end of my degree. I'm new about
python.

I've a question for all of you.

Do you know how to write, from python code, on a unix(linux) terminal
on specified coordinates?
And also: is it possible to override, from python code, something on a
unix(linux) terminal?

I would have a suggestion that won't use files.

I hope that i've been clear.

Thanks,

Mattia

Apr 11 '06 #1
4 1817
fivestars wrote:
Do you know how to write, from python code, on a unix(linux) terminal
on specified coordinates?
Search for the "curses" module.
And also: is it possible to override, from python code, something on a
unix(linux) terminal?
The word "override" is ambiguous here (actually it's just about entirely
meaningless). Can you describe what you want in more detail? Maybe
with an example?
I would have a suggestion that won't use files.
That also doesn't make sense, though perhaps it would if we understood
the question.
I hope that i've been clear.


Not very, but please try again. :-)

-Peter

Apr 11 '06 #2
"fivestars" <ma***********@gmail.com> wrote in message
news:11**********************@j33g2000cwa.googlegr oups.com...
Hi there.

I'm computer science student at the end of my degree. I'm new about
python.

I've a question for all of you.

Do you know how to write, from python code, on a unix(linux) terminal
on specified coordinates?
Actually, there is no unix(linux) terminal. What you have are terminals, of
various flavors, that can be attached to a unix(linux) session.

Once you decide to stray from generic spaces and tab formatting, it is the
terminal that has fancy features such as positioning the cursor at arbitrary
coordinates. And every terminal type has a different command sequence to
achieve that. That said, there are standards such as the VT-100 terminal
that everything seems to emulate. You would need to have the VT-100 command
set in front of you and you would code this into your python routines.

Someone else has suggested the "curses" module. I haven't played with this
but it is probably just the ticket you are looking for. It no doubt encloses
cgoto commands, blink, highlight, clear screen, color command & yada yada
for various terminal types inside nice python functions

And I'll be surprised if it doesn't default to VT-100 ;-)
And also: is it possible to override, from python code, something on a
unix(linux) terminal?
I don't know what that means.
If you meant overwrite (rather than override!), then the answer would be
yes.

Thomas Bartkus
I would have a suggestion that won't use files.

I hope that i've been clear.

Thanks,

Mattia

Apr 11 '06 #3
On 2006-04-11, fivestars <ma***********@gmail.com> wrote:
Do you know how to write, from python code, on a unix(linux)
terminal on specified coordinates?
Yes, I do.
And also: is it possible to override, from python code,
something on a unix(linux) terminal?


What do you mean "override"?

--
Grant Edwards grante Yow! Was my SOY LOAF left
at out in th'RAIN? It tastes
visi.com REAL GOOD!!
Apr 11 '06 #4
ops..yes overwrite is what i would say!!

thanks to all!!

Apr 17 '06 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by flamesrock | last post: by
3 posts views Thread by Josh Schmidt | last post: by
5 posts views Thread by TPoise! | last post: by
20 posts views Thread by Joel Hedlund | last post: by
16 posts views Thread by =?Utf-8?B?RHdlZWJlcmVsbGE=?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.