473,563 Members | 2,724 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

Similar topics

4
4057
by: flamesrock | last post by:
First, I'm very new to gui programming, so please go lightly on me :) Ok, so far I've settled on wxPython, and what I'd like to do as a first leap is *convert* a text program into a gui program. It would have a few buttons as function controls and one main scrollable panel that acts like a terminal window. I want to make it so that...
3
5560
by: Josh Schmidt | last post by:
How can one set the terminal services profile and home directory path in AD using VB.NET? I can set the usual profile paths, but terminal services properties are not supported with ADSI. Any help is greatly appreciated! Josh
5
7565
by: TPoise! | last post by:
Using: .NET 1.1, Visual Studio 2003, C#, Microsoft Windows 2000 Server (SP4 and all latest windows updates), Terminal Server running in application mode. I have a C# application that I've deployed to our terminal server for remote users to use. However, normal users (simple domain users) can not run the application. After double...
8
2727
by: OHM | last post by:
Hi peoples, I dont know where to place this question, so as I know you guys are all resourceful experts, I thought I would try here. I am writing some code which will be run usingh remote desktop ( On windows 2003 Server ), I need to determine in the code the machine name and username. If I use GetUsername and GetMachineName, it simply...
6
4032
by: Atley | last post by:
I have a Terminal Services server running Windows 2000 Server. I need to be able to identify, in my application on that server, which client computer is addressing that server and running that application. it can be by IP or by machine network name... Doesn't matter. I am using Visual Basic .Net 2003 Any help would be greatly...
20
10824
by: Joel Hedlund | last post by:
Hi all! I use python for writing terminal applications and I have been bothered by how hard it seems to be to determine the terminal size. What is the best way of doing this? At the end I've included a code snippet from Chuck Blake 'ls' app in python. It seems to do the job just fine on my comp, but regrettably, I'm not sassy enough to...
3
1737
by: shawn | last post by:
In the past I have had SQL and Terminal server on the same PC. With SQL and Windows 2003 Terminal server, you can not have them on the same PC. How can I make this work with SQL and Terminal and 2 different PC's? I have 30 users that need to log on to my SQL database.
7
3040
by: mike | last post by:
We have numerous Access 97 apps that we run on our Terminal Server, but two apps in particular is giving us a problem. The problem we are running into is when you select a drop down menu, it errors out saying the SQL server cannot be found. This is through the terminal session and when logged on the server locally. If I run the apps on my...
16
3981
by: =?Utf-8?B?RHdlZWJlcmVsbGE=?= | last post by:
I created an Access 2007 application for my customer. The application is shared by three employees on a server. It maintains a contact list including financial data and social security numbers. Only the office manager generates reports in Access from this client data. Now they want to share this Access application with employees at a...
0
7659
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7580
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7882
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7634
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6244
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5481
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3618
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2079
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1194
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.