Maximus5 / conemu-inside

An example, how to embed http://conemu.github.io/ into another graphical application
57 stars 43 forks source link

Add a method to get console text #37

Open AndrewBragdon opened 7 years ago

AndrewBragdon commented 7 years ago

This is a fantastic project!

Could you add a method that returns the current text of the console output? I would love to be able to query these items:

This would then truly be the most powerful console library there is. Right now it looks like the only way to achieve this is to directly modify ConEmu, but it would be great if the C# wrapper could do this.

Maximus5 commented 7 years ago

You may try GuiMacro. Acquiring of the contents may be done by Copy function, you may use temp file instead of clipboard.

AndrewBragdon commented 7 years ago

Thanks for the tip. This is cool, the only problem is that if I want to call this very frequently it will be slow. Would there possibly be a way to copy it to a named pipe?

Maximus5 commented 7 years ago

You may give pipe a try. It may be working.

AndrewBragdon commented 7 years ago

Oh wow, that would be awesome. Will give that a try