Override on terminal

F

fivestars

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
 
P

Peter Hansen

fivestars said:
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
 
T

Thomas Bartkus

fivestars said:
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
 
G

Grant Edwards

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"?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,293
Messages
2,571,501
Members
48,189
Latest member
StaciLgf76

Latest Threads

Top