yad icon indicating copy to clipboard operation
yad copied to clipboard

[Feature Request] rxvt -embed in yad --notebook or yad --form

Open cou645 opened this issue 2 years ago • 2 comments

Will it be possible to use the -embed feature of rxvt terminal with yad? It would be especially useful if it could happen as a field in yad --form or or the 'yad --notebook' top-level, frame.

#!/usr/bin/perl

# sample script to illustrate the -embed option

# embed a rxvt inside another X app
# see also pty-fd

# doesn't handle sigchld

use Gtk2;

init Gtk2;

my $window = new Gtk2::Window 'toplevel';

my $frame = new Gtk2::Frame "embedded rxvt-unicode terminal";

$window->add ($frame);

my $rxvt = new Gtk2::Socket;
$frame->add ($rxvt);
$frame->set_size_request (700, 400);
$window->show_all;
my $xid = $rxvt->window->get_xid;

system "rxvt -embed $xid &";

$window->show_all;

main Gtk2;

cou645 avatar Jun 13 '22 13:06 cou645

With Gtk apps usually vte terminal widget is used. Just found one simple Gtk3 terminal app https://github.com/orhun/kermit/blob/master/src/kermit.c But why embed it into yad? Do you want to set some two way communication between the other pane and the terminal pane like with socat or named pipes?

Misko-2083 avatar Jun 14 '22 11:06 Misko-2083

Yes, two way terminal. Can it be easily accomplished with pipes?

On Tue, 14 Jun 2022, 12:52 Милош Павловић, @.***> wrote:

With Gtk apps usually vte terminal widget is used. Just found one simple Gtk3 terminal app https://github.com/orhun/kermit/blob/master/src/kermit.c But why embed it into yad? Do you want to set some two way communication between the other pane and the terminal pane like with socat or named pipes?

— Reply to this email directly, view it on GitHub https://github.com/v1cont/yad/issues/183#issuecomment-1155081453, or unsubscribe https://github.com/notifications/unsubscribe-auth/APRODEV6KD3CFN3AGVYGPQTVPBW63ANCNFSM5YUGBEIA . You are receiving this because you authored the thread.Message ID: @.***>

cou645 avatar Jun 14 '22 12:06 cou645