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

bugzilla_noreply at kde.org bugzilla_noreply at kde.org
Sat Jun 19 19:54:55 BST 2021


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

ninjalj at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ninjalj at gmail.com

--- Comment #1 from ninjalj at gmail.com ---
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.

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


More information about the konsole-devel mailing list