Webb
Hi all,
(I am sure there is a recipe somewhere, but I can't find it.) How does
one open an editor while in the middle of an interactive program, let
the user do some editing and closing, and then capture the text that
was edited? I am reminded of subversion or CVS when they open an
$EDITOR session for the check-in log entry.
I tried os.popen, but it fired off vim in the background--not useful.
Then I tried os.system, but that only returns the return code (126 in
my case) after you close the editor. Perhaps I need to write to a file
and read it--shouldn't there be a cleaner way?
Thanks
W
Jun 16 '06 #1
Subscribe Reply
1 1005
Fredrik Lundh
"Webb" wrote:
(I am sure there is a recipe somewhere, but I can't find it.) How does
one open an editor while in the middle of an interactive program, let
the user do some editing and closing, and then capture the text that
was edited? I am reminded of subversion or CVS when they open an
$EDITOR session for the check-in log entry.I tried os.popen, but it fired off vim in the background--not useful.
Then I tried os.system, but that only returns the return code (126 in
my case) after you close the editor. Perhaps I need to write to a file
and read it
that's exactly how it's done in subversion and cvs, of course.
</F>
Jun 16 '06 #2
This thread has been closed and replies have been disabled. Please start a new discussion.
Similar topics
36 2712 Best editor? by: ChinStrap |last post by: When not using the interactive prompt, what are you using? I keep hearing everyone say Emacs, but I can't understand it at all. I keep trying to learn and understand why so many seem to like it... Python |
1893 Web CSS Editor by: Hsun-Cheng Hu ?J?V?? |last post by: Dear all, I had written a Web CSS Editor (Javascript based). It is easy and free. You may download a copy and build it with your programs. Here is its descriptiong: Web CSS Editor is a... .NET Framework |
14 11018 Opening image in new window without padding by: D. Alvarado |last post by: Hello, I am trying to open a window containing an image and I would like the image to be flush against the window -- i.e. have no padding or border. Can I make this happen with a single call to a... HTML / CSS |
8 1973 Opening database with text editor by: Steve Mills |last post by: I opened an mdb file with a text editor, deleted random chunks of data from it and then saved it. Now it won't open. Fortunately, it wasn't one of mine - it was from the accounts department, but... Microsoft Access / VBA |
18 6696 SQL Server 2005 Opening Script File Problem by: mollyf |last post by: I just installed SQL Server 2005 on my PC (the developer's edition) yesterday. I have some scripts written by one of my coworkers to create some tables and stored procedures in a database that... Microsoft SQL Server |
8 2303 Opening C files in Visual C++ by: chaossliver |last post by: I'm a brand new scripter, and as such, I have very poor experience in coding. I have been looking around at some open source codes written in pure C and was wondering if anyone knew of a program... C / C++ |
2 3527 Microsoft Script Editor Doesnt Debug by: Bruce Johnson |last post by: Two issues. Using IE 6 (all patches) over XP Pro (all patches) along with mse7.exe (Microsoft script editor) from Office 2003. I can get HTML pages etc into the editor with no problems. I want to... Javascript |
1099 Exciting User Experience (UX) Opening: Dallas/Fort Worth, TX by: David_Parkes |last post by: A global leader in the digital media space based in the Dallas/Fort Worth Metroplex is currently re-architecting its core product line and is doing so on the back of Microsoft .NET 3.0/3.5 and... ASP.NET |
19 2081 Re: special editor support for indentation needed. by: Eric S. Johansson |last post by: Almar Klein wrote: there's nothing like self interest to drive one's initiative. :-) 14 years with speech recognition and counting. I'm so looking to my 15th anniversary of being injured next... Python |
7367
Problem With Comparison Operator <=> in G++ 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,... C / C++ |
7430
Maximizing Business Potential: The Nexus of Website Design and Digital Marketing 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... Online Marketing |
1 7089 The easy way to turn off automatic updates for Windows 10/11 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... Windows Server |
7517
Discussion: How does Zigbee compare with other wireless protocols in smart home applications? 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... General |
1 5072
Access Europe - Using VBA to create a class based on a table - Wed 1 May 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... Microsoft Access / VBA |
4743 Couldnt get equations in html when convert word .docx file to html file in C#. 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... C# / C Sharp |
3230 Trying to create a lan-to-lan vpn between two differents networks by: TSSRALBI |last post by: Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The... Networking - Hardware / Configuration |
3217 Windows Forms - .Net 8.0 by: adsilva |last post by: A Windows Forms form does not have the event Unload, like VB6. What one acts like? Visual Basic .NET |
1581 transfer the data from one system to another through ip address 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 ... C# / C Sharp |