diff --git a/src/bin/termio.c b/src/bin/termio.c index 8ccc595f..ba05e932 100644 --- a/src/bin/termio.c +++ b/src/bin/termio.c @@ -5036,3 +5036,12 @@ termio_selection_exists(const Evas_Object *obj) EINA_SAFETY_ON_NULL_RETURN_VAL(sd, EINA_FALSE); return sd->pty->selection.is_active; } + +Termpty * +termio_pty_get(Evas_Object *obj) +{ + Termio *sd = evas_object_smart_data_get(obj); + EINA_SAFETY_ON_NULL_RETURN_VAL(sd, NULL); + + return sd->pty; +} diff --git a/src/bin/termio.h b/src/bin/termio.h index b984a049..17b52582 100644 --- a/src/bin/termio.h +++ b/src/bin/termio.h @@ -3,6 +3,7 @@ #include "config.h" #include "col.h" +#include "termpty.h" Evas_Object *termio_add(Evas_Object *parent, Config *config, const char *cmd, Eina_Bool login_shell, const char *cd, int w, int h); void termio_win_set(Evas_Object *obj, Evas_Object *win); @@ -43,4 +44,6 @@ void termio_debugwhite_set(Evas_Object *obj, Eina_Bool dbg); void termio_miniview_hide(Evas_Object *obj); Evas_Object *termio_miniview_show(Evas_Object *obj, int x, int y, int w, int h); +Termpty *termio_pty_get(Evas_Object *obj); + #endif