mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Support for pasting from GNU screen clipboard
This commit is contained in:
parent
a645bb2ead
commit
173e68ccfa
@ -347,10 +347,21 @@ exe(unsigned char *path)
|
|||||||
unsigned char *
|
unsigned char *
|
||||||
get_clipboard_text(void) /* !!! FIXME */
|
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;
|
if (ret) ret[0] = 0;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user