moo_term_kill_child()
This commit is contained in:
parent
c74f0e16eb
commit
e78487fb1a
@ -889,6 +889,7 @@ void moo_term_feed_child (MooTerm *term,
|
|||||||
int len)
|
int len)
|
||||||
{
|
{
|
||||||
g_return_if_fail (MOO_IS_TERM (term) && string != NULL);
|
g_return_if_fail (MOO_IS_TERM (term) && string != NULL);
|
||||||
|
if (moo_term_pt_child_alive (term->priv->pt))
|
||||||
moo_term_pt_write (term->priv->pt, string, len);
|
moo_term_pt_write (term->priv->pt, string, len);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1692,3 +1693,11 @@ void moo_term_release_selection (MooTerm *term)
|
|||||||
term->priv->owns_selection = FALSE;
|
term->priv->owns_selection = FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void moo_term_kill_child (MooTerm *term)
|
||||||
|
{
|
||||||
|
g_return_if_fail (MOO_IS_TERM (term));
|
||||||
|
if (moo_term_pt_child_alive (term->priv->pt))
|
||||||
|
moo_term_pt_kill_child (term->priv->pt);
|
||||||
|
}
|
||||||
|
@ -77,6 +77,7 @@ gboolean moo_term_fork_command (MooTerm *term,
|
|||||||
const char *cmd,
|
const char *cmd,
|
||||||
const char *working_dir,
|
const char *working_dir,
|
||||||
char **envp);
|
char **envp);
|
||||||
|
void moo_term_kill_child (MooTerm *term);
|
||||||
|
|
||||||
void moo_term_feed (MooTerm *term,
|
void moo_term_feed (MooTerm *term,
|
||||||
const char *data,
|
const char *data,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user