[konsole] [Bug 438901] Add an option to save buffer as HTML

Christopher Yeleighton bugzilla_noreply at kde.org
Sun Jun 20 16:09:47 BST 2021


https://bugs.kde.org/show_bug.cgi?id=438901

--- Comment #2 from Christopher Yeleighton <giecrilj at stegny.2a.pl> ---
(In reply to ninjalj from comment #1)
> A workaround using xdotool:
> 
> konsole -e 'sh -c "rm ~/colors.html; cat ~/colors.txt; xdotool key ctrl+S;
> sleep 1; xdotool type ~/colors.html; sleep 1; xdotool key Return; sleep 1"'
> 
> This workaround uses xdotool to invoke the "Save Output As..." menu, then
> writes the filename, and sends a Return key to invoke the default "Save"
> button.
> 
> The "sleep"s are important. They let the previous action complete before
> invoking another action. The last one prevents Konsole from exiting before
> it has completed the save action.

This workaround requires starting a separate display, I am afraid.

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list