Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a method to get console text #37

Open
AndrewBragdon opened this issue Apr 29, 2017 · 4 comments
Open

Add a method to get console text #37

AndrewBragdon opened this issue Apr 29, 2017 · 4 comments

Comments

@AndrewBragdon
Copy link

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:

  • Each line of text in the current console view
  • What color each character is
  • Position of cursor / state of cursor
  • Scroll position (read) / Change scroll position (write)

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
Copy link
Owner

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

@AndrewBragdon
Copy link
Author

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
Copy link
Owner

Maximus5 commented Apr 29, 2017 via email

@AndrewBragdon
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants