Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Saving the TCC Console as HTML to RightNote

Aug
2,858
151
After a session of typing in commands,
and testing out ways to do things,
I often want to keep a copy of what I have done in my tech notes for TCC.

I do this by using the SaveConsole plugin command,
from the SaveConsole plugin.

NOTE: I recommend NOT using the internal SaveConsole command,
as the HTML that it outputs has issues.

(See the notes in the SaveConsole plugin help for the reasons NOT to use the internal SaveConsole command)

I have created an alias for saving and opening the saved console using the SaveConsole plugin command;

Code:
U:\>which consave
consave is an alias : saveconsole /cp /h /l /o r:\%@replace[:,_,%_time].html

After I have run my consave alias,
the saved console opens in my web browser.

Alt+d then Ctrl+c saves the URL to the clipboard.

Example: file:///R:/11_52_53.html

This File URL will be needed in the next step.

From RightNote,
I press Ctrl+Shift+I and after four mouse clicks,
I have the TCC Console saved in my tech notes for TCC.

RightNote: RightNote Note Organiser Software, Create, Store and Organise Notes
SaveConsole: SaveConsole Plugin

Joe
 
I've actually been thinking about withdrawing SAVECONSOLE. It worked well in console windows, but not in Windows Terminal or ConPTY tabs. I have not found any way to access the scrollback buffer in pseudoconsoles, so SAVECONSOLE only saves the visible bit of the screen. (The internal SAVECONSOLE has the same limitation.)
 
SAVECONSOLE could potentially be extended to communicate with TCMD to get it's scrollback buffer, but it's not possible to get the buffer from WT.

If you do that, say maybe through TakeCommandIPC(), may I request that you document it? Simply, so even dunderheads like me can understand it?

Yes, I understand that nothing of the sort will happen in v37.
 
Hmmm! With KEYSTACK you might be able to turn one of these into a command.

1794947862716.webp


While thinking about that, I noticed that Alt+H doesn't open the Home menu or the Help menu (odd that they both use H); whereas Alt+accelerator does open all the other menus.
 
I've actually been thinking about withdrawing SAVECONSOLE. It worked well in console windows, but not in Windows Terminal or ConPTY tabs. I have not found any way to access the scrollback buffer in pseudoconsoles, so SAVECONSOLE only saves the visible bit of the screen. (The internal SAVECONSOLE has the same limitation.)
I've been using SaveConsole, first the native command and more recently your plugin, in standalone TCC sessions running BTMs started from Windows Task Scheduler with "TCC /c...".

In these sessions, SaveConsole gets the entire scrollback buffer. I find this very helpful to save the results of unattended scripts for later review.

So, thank you, and please don't retire it :)
 
Back
Top