[MonoDevelop] New plugin development : Integrated virtual terminal

Charles charles.dmt at gmail.com
Sat Aug 6 20:00:40 EDT 2011


I'm still working on it, actually I face some problems:

At this time, i have a class that is an abstraction of a pair of tty
instances (master and slave). That works just fine!
But I'm not sure about what i could do using it from a plugin for MD:
because I guess that I would need to intercept and redirect a lot of streams
and events, and don't think that it's possible at the moment: indeed, i have
read the MD source code and found some "input access" from the class
LogViewProgressMonitor :

NotSupportedTextReader inputReader = new NotSupportedTextReader ();

So I guess some support for input was planned, but it seems I cannot access
to this member and replace it.

So, I already began to work patching the MD source codes themselves (got
from SVN), and get some good results yet.

What I would want to know is, Could I really do it as a plugin, or should I
make a patch anyway ?

2011/8/3 Charles <charles.dmt at gmail.com>

> Hello,
> I recently discovered MD 2.6 (under linux) after using the previous version
> for a while, and I noted that on debugging C/C++ code using GDB, MD was
> unable to capture the output of the code into the integrated console. After
> discussions and investigation, I learnt this integrated console was not a
> real console but only a text control linked with stdout. The problem is, GDM
> does not seem to have an option to redirect its output into a file (such
> like stdout) using the MI2 mode.
> Anyway, I found that it would be nice to make MD provides a real integrated
> virtual console, so it can manage the input is the program ask for it, and
> the output can be displayed inside anyway.
> So how do i see that ? The idea i to use some /dev/pts special files in
> order to develop a basic virtual terminal interface into a plugin. As a
> first goal, I should be able to use a "background" virtual tty that would
> only redirect its content into the actual console.
> I start to work on it from that day, and hope to have some suit.
> Best regards,
> unomadh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monodevelop-list/attachments/20110807/31d0551c/attachment.html 

More information about the Monodevelop-list mailing list