#! /bin/bash --posix
GTKDIALOG=gtkdialog
export GTKDIALOG
function FCT_vte()
{
echo 'echo bonjour
whoami
ls'
}
export -f FCT_vte
TEST='<window title="Terminal Widget" resizable="true"><vbox><terminal has-focus="true" argv0="/bin/bash"><variable>vte0</variable><input>/bin/bash -c "FCT_vte"</input></terminal><hbox homogeneous="true" space-expand="false" space-fill="false"><button use-stock="true" label="gtk-quit"></button></hbox></vbox></window>'
export TEST
$GTKDIALOG --program=TEST
exit 0