When trying to get a subst() from the console view I'm getting an empty output. Has anyone accessed console content with python API?
How do you determine this "console view"?
Sorry, I think I was using find_output_panel('console') but apparently this returns None.
The view associated to the build output can be obtained with window.find_output_panel("exec").
RIght, but I'd like to access console
Whoops, brainfart. Sorry!
No worries, I doubt the console is supported at the moment.. To give some background I've been trying to access logged commands as the current command_history in API is too limited.
why not just create a http://www.sublimetext.com/docs/3/api_reference.html#sublime_plugin.EventListener and listen for on_post_window_command and on_post_text_command and create your own log?if you really need to access the console, your best bet is redirecting stdout.
Cheers, I'll give it a shot.Yup this was exactly I was looking for.Again, many thanks for pointing that out!