473,757 Members | 10,754 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Win32/Console - subclass using Python ?

Hi - I wondered if anyone had done this before and could provide some
suggestions ? I'm interested in supplying extra functionality to a
Win32 Console (cmd.exe) - full description below for those interested.
I would do this using Python.

I'm having difficulty finding anything about Console based programming
via MSDN - I just wondered if anyone had done anything like this or
alternatively knew where the part of the Win32 API which deals with
Console interaction is on MSDN ? I've found
http://support.microsoft.com/default...b;en-us;104094 but
that's about it so far.

FULL DESCRIPTION
=============== =
I use the Oracle client SQLPLUS a lot via a Win 32 console. There are
some aspect s of this experience which would bear improvement.

I'm interested in producing a 'super' cmd.exe which would 'help'
SQLPLUS do its thing. I'm thinking for instance of auto-completion of
table names, smart help etc. That's a big topic but just for starters
I would like to be able to create my own 'super cmd.exe'

regards

Richard Shea
Jul 18 '05 #1
2 2127
http://msdn.microsoft.com/library/de..._functions.asp

There's a Console module for Windows at
http://www.effbot.org/zone/console-index.htm
that might do what you need.
hth
Roger

"Richard Shea" <ri*********@fa stmail.fm> wrote in message
news:28******** *************** ***@posting.goo gle.com...
Hi - I wondered if anyone had done this before and could provide some
suggestions ? I'm interested in supplying extra functionality to a
Win32 Console (cmd.exe) - full description below for those interested.
I would do this using Python.

I'm having difficulty finding anything about Console based programming
via MSDN - I just wondered if anyone had done anything like this or
alternatively knew where the part of the Win32 API which deals with
Console interaction is on MSDN ? I've found
http://support.microsoft.com/default...b;en-us;104094 but
that's about it so far.

FULL DESCRIPTION
=============== =
I use the Oracle client SQLPLUS a lot via a Win 32 console. There are
some aspect s of this experience which would bear improvement.

I'm interested in producing a 'super' cmd.exe which would 'help'
SQLPLUS do its thing. I'm thinking for instance of auto-completion of
table names, smart help etc. That's a big topic but just for starters
I would like to be able to create my own 'super cmd.exe'

regards

Richard Shea

Jul 18 '05 #2
"Roger Upole" <ru****@hotmail .com> wrote in message news:<41******* ***@127.0.0.1>. ..
http://msdn.microsoft.com/library/de..._functions.asp

There's a Console module for Windows at
http://www.effbot.org/zone/console-index.htm
that might do what you need.
Thanks for that - I had looked for something like this but not found
it. It's not 100% what I was thinking of as I would (I believe) need
to run SQLPLUS 'behind' it. Never mind I appreciate it. Thanks also to
info I got via Email WRT to 'QUASI'
http://quasi-shell.sourceforge.net/ - that's a pretty amazing thing
which is worth checking out.

regards

richard.

"Richard Shea" <ri*********@fa stmail.fm> wrote in message
news:28******** *************** ***@posting.goo gle.com...
Hi - I wondered if anyone had done this before and could provide some
suggestions ? I'm interested in supplying extra functionality to a
Win32 Console (cmd.exe) - full description below for those interested.
I would do this using Python.

I'm having difficulty finding anything about Console based programming
via MSDN - I just wondered if anyone had done anything like this or
alternatively knew where the part of the Win32 API which deals with
Console interaction is on MSDN ? I've found
http://support.microsoft.com/default...b;en-us;104094 but
that's about it so far.

FULL DESCRIPTION
=============== =
I use the Oracle client SQLPLUS a lot via a Win 32 console. There are
some aspect s of this experience which would bear improvement.

I'm interested in producing a 'super' cmd.exe which would 'help'
SQLPLUS do its thing. I'm thinking for instance of auto-completion of
table names, smart help etc. That's a big topic but just for starters
I would like to be able to create my own 'super cmd.exe'

regards

Richard Shea

Jul 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

19
105828
by: Dave | last post by:
Hi, I have done some research, trying to Clear The Screen in java code. The first option was the obv: system.out.print("\n\n\n\n\n\n\n\n\n\n\n\n"); then i heard about this method: System.out.print((char)27 + "[2J");
1
2421
by: Devrim Erdem | last post by:
Hello, I am on win32 with python2.2. My python added C++ app is an OpenGL application so there is no real GUI code around it. I have built in the python interpreter which works very great. I would like to have the opportunity to popup a console from my application which has access to the python module which is defined and instantiated in my application.
2
3346
by: Jon Wright | last post by:
Trying to work around the lack of pexpect for native windows python I had a play with os.popen2 and some threads. This looks promising enough for what I want to do, but I hit on a problem with getting the script to exit cleanly. Tried replacing popen with subprocess but I am still confused. Either it needs to be killed from the task manager, or I get a variety of different complaints and popping up "application error" windows. I managed to...
1
2422
by: Gerry Sutton | last post by:
Hi All! I have noticed a strange behavior when using a constant identifier to initialize an instance list variable in a base class and then trying to modifying the list in subclasses by using either the list.extend method or even by having the subclass create a whole new list in the variable. The following example illustrates the situation.
9
10986
by: runes | last post by:
Hi, I'm trying to set the title of the console window (CMD.EXE) in Windows. I want it set to the basename of the current directory and it should stay after the script has finished. Now, the console title is easily set with the DOS-command 'title NewTitle'. But I'd like to do this from a Python script. os.system('title NewTitle') will not do, because it spawns a new process.
7
4202
by: Robert | last post by:
Hello, I'm using Pythonwin and py2.3 (py2.4). I did not come clear with this: I want to use win32-fuctions like win32ui.MessageBox, listctrl.InsertItem ..... to get unicode strings on the screen - best results according to the platform/language settings (mainly XP Home, W2K, ...). Also unicode strings should be displayed as nice as possible at the console with normal print-s to stdout (on varying platforms, different
2
3671
by: SheetalGandhi24 | last post by:
Hi I need to use the System.IO namespace in the Win32 console application. Any clues for doing the same? Basically, I need to load the files of a particular folder in an array. I need to do this in a VC++.NET Win32 console application. I am very new to using VC++. Can anyone please help? Thanks in anticipation,
2
2748
by: Frank Moyles | last post by:
Hi, I want to use SciPy library. I am using W2k, and ActiveState Python 2.5. I have succesfully numpy, but when I run the scipy-0.6.0.win32-py2.5.exe (from the downloads section on the SciPy page), nothing happens - i.e. no information is printed on the console, and the setup application simply quits with no warning/error message. has anyone managed to succesfully install SciPy using scipy-0.6.0.win32-py2.5.exe & ActiveState Python on...
8
1953
by: Grant Edwards | last post by:
When I ssh into a windows machine (running Cygwin sshd), I can invoke python at the shell prompt (you have to use -i option and I don't really understand why). Once it's started there are couple rather odd behaviors: 1) readline support doesn't work. 2) you have call sys.exit() to exit (neither ctrl-D or ctrl-Z work)
0
9489
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10072
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9906
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9885
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
9737
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8737
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7286
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6562
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2698
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.