473,395 Members | 1,343 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

disabling the line buffer somehow

Hi,

I'm trying to proxy all keys typed by the user to a process spawned via
popen2. Unfortunately, I figured out that I can't control really
interactive applications such as mc or aptitude.

All user input seems to be line buffered.
http://pexpect.sourceforge.net/ has some words about the situation: Q:
Why not just use a pipe (popen())?

So, I understand that I cannot write a simple python code to
transperantly proxy everything between any process and user typing from
stdin without handling the raw terminal.

Would it work if I read from the controlling tty of the python
interpreter and write to the controlling tty of spawned process byte by
byte (or /dev/stdin & /dev/stdout)

Thanks..

Mar 5 '06 #1
0 777

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

Similar topics

4
by: Chad | last post by:
Hello, im struggleing,Im trying to replace a line in a file. 1|010000 1|010001 1|010002 0|010003 <-- replace this with 1|10003 0|010004 0|010005 .... all of the strings are the same length.
7
by: indy2718 | last post by:
Hi, I've been doing a reoccuring programming error. I'm using a Guard class (like as in a mutex guard). The Guard is doing a glBindTexture(new texture) in the constructor, and then a unbinding...
0
by: Jack | last post by:
Hi, I do a webrequest and it returns some text data in a stream. I want to put this tyext data into a string. I've got it working just fine, but I have to put the text data into into a...
4
by: Jack | last post by:
Hi, I do a webrequest and it returns some text data in a stream. I want to put this text data into a string. I've got it working just fine, but I have to put the text data into into a...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
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...

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.