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

Override on terminal

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
"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

P: n/a
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

P: n/a
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.