1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-11-04 08:17:17 -05:00

Support for pasting from GNU screen clipboard

This commit is contained in:
Petr Baudis 2006-01-06 12:00:30 +01:00 committed by Petr Baudis
parent a645bb2ead
commit 173e68ccfa

View File

@ -347,10 +347,21 @@ exe(unsigned char *path)
unsigned char *
get_clipboard_text(void) /* !!! FIXME */
{
unsigned char *ret = mem_alloc(1);
unsigned char *ret;
/* GNU Screen's clipboard */
if (is_gnuscreen()) {
struct string str;
if (!init_string(&str)) return;
add_to_string(&str, "screen -X paste .");
if (str.length) exe(str.source);
if (str.source) done_string(&str);
}
ret = mem_alloc(1);
if (ret) ret[0] = 0;
return ret;
}