X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=madtty%2Fmadtty.h;h=69d7288a3079a0521d7e741d39745d2816ebb60a;hb=d0e48d929c19d39c4a13e57e0f8a8dd6194d6dde;hp=cb347623a01426b0d70c867645ddf47b249bf8dd;hpb=7f1449a1f3dc70202c19005d74c6afe7cb0f18c0;p=apps%2Fmadtty.git diff --git a/madtty/madtty.h b/madtty/madtty.h index cb34762..69d7288 100644 --- a/madtty/madtty.h +++ b/madtty/madtty.h @@ -118,6 +118,7 @@ typedef struct RoteTerm_ { * that will be used for newly inserted * characters */ + int pty; /* pty of the process */ pid_t childpid; /* pid of the child process running in the * terminal; 0 for none. This is READ-ONLY. */ @@ -242,13 +243,4 @@ void *rote_vt_take_snapshot(RoteTerm *rt); * This function does NOT free() the passed buffer */ void rote_vt_restore_snapshot(RoteTerm *rt, void *snapbuf); -/* Returns the pseudo tty descriptor associated with the given terminal. - * Please don't do weird things with it (like close it for instance), - * or things will break - * - * This function returns -1 if the given terminal does not yet have - * an associated pty. A pty is only associated to a terminal when - * needed, e.g. on a call to rote_vt_forkpty. */ -int rote_vt_get_pty_fd(RoteTerm *rt); - #endif /* MADTTY_MADTTY_H */