Skip to Content.
Sympa Menu

mathemagix-devel - Does readline uses std(in|out)put ?

Subject: Mathemagix

List archive

Does readline uses std(in|out)put ?


Chronological Thread 
  • From: Julien Wintz <address@concealed>
  • To: address@concealed
  • Subject: Does readline uses std(in|out)put ?
  • Date: Mon, 9 Jun 2008 11:28:50 +0200

Hello all,

For some reasons I tried to write a simple gui to mathemagix using the Qt library.

I use Qt's crossplatform abstraction of a process - QProcess - (which behaves the same way a socket does (1)) to initiate an mmx session and bind the standard input and output channels.

As shown on the screenshot, I can easily read the welcome message from the process, but the problem occurs when it comes to obtaining the prompt (so I guess readline is guilty ;-)) (2).

So the question is: "Does readline uses std(in|out)put ?"

If yes, well, I will investigate ...
If no, can we expect it to behave like that ?

All the best, Ju.

(1) QTCPSocket and QProcess both inherit from QIODevice ! -> This sounds good to make Axel cooperate with Mmx.
(2) Note that, in the picture, what comes after the welcome message, starting from "1] ..." has been typed by myself just to test a basic mmx syntax highlighter.

PNG image





Archive powered by MHonArc 2.6.18.

Top of Page