To give you the best experience, this site uses cookies. Continuing to use 9bis.net means you agree to our use of cookies.
 

English version Russian version Version française Nederlandse versie Versión española Version portuguese Version polonaise Italian version Versiunea româna   KiTTY News

KiTTY : Forum

Last modification : -

KiTTY web site




Forum Home
 

clipboard integration

Ryan - Mon 10/08/2015 16:11:16 CEST +0200

Is it possible that something like the below could be integrated into KiTTY for copying text to the clipboard?

http://ericmason.net/2010/04/putty-ssh-windows-clipboard-integration

Thanks,
Ryan

Cyd - Mon 10/08/2015 20:03:01 CEST +0200

I've tried to integrate it.
Can you test last beta and report: http://www.9bis.net/kitty/data/beta/kitty.exe

Ryan - Tue 11/08/2015 03:39:35 CEST +0200

Cyd - thanks so much for the quick response. I just tried it out and it seems to be working great. Thanks again for integrating it.

Ryan - Tue 11/08/2015 20:19:55 CEST +0200

Cyd - actually ran into one small issue: If I go to the Terminal page, and select "Windows clipboard" in the bottom dropdown, and then save my session, it doesn't seem to be saving. I just see this in my session file:

Printer\

Cyd - Wed 12/08/2015 08:45:36 CEST +0200

That's the patch you ask me to import.
	if (!strcmp(printer, PRINTER_DISABLED_STRING)) {
		printer[0] = '{CONTENT}';
 		conf_set_int(conf,CONF_printclip,0);
 	} else if (!strcmp( printer, PRINT_TO_CLIPBOARD_STRING)) {
		printer[0] = '{CONTENT}';
		conf_set_int(conf,CONF_printclip,1);
 	}
	conf_set_str(conf, CONF_printer, printer);

Ryan - Wed 12/08/2015 15:00:52 CEST +0200

I see. I didn't write the patch - I just saw a link to it and thought it would be something useful. Is it possible to adjust that strcmp line so that it saves the setting for PRINT_TO_CLIPBOARD_STRING? If not, then I understand. Thanks.

Wi - Tue 25/08/2015 21:51:51 CEST +0200

same for me: feature works well. But 'Printer' selection is not saved in settings dialog.
Everytime I want to use the feature -> I have to go change settings.

Another annoying thing -> it sends bash ascii color meta characters to clipboard :(

Cyd - Wed 26/08/2015 09:52:09 CEST +0200

Ok
It will be included in 0.65.0.2 version.

Cyd - Fri 28/08/2015 10:56:57 CEST +0200

Here is the modified wcl function that remove escape character in bash:
function wcl {
	echo -ne '\e''[5i'
	cat $* | sed -r "s/\x1B\[([0-9]{1,3}((;[0-9]{1,3})*)?)?[m|K]//g"
	echo -ne '\e''[4i'
	echo "Copied to Windows clipboard" 1>&2
}





Answer


The forum is actually closed