fix regression
[apps/madtty.git] / madtty / madtty.h
index 373d1f3..cb34762 100644 (file)
@@ -166,7 +166,7 @@ void rote_vt_destroy(RoteTerm *rt);
  * to execute the command and will exit with status 127. You can catch
  * that by installing a SIGCHLD handler if you want.
  */
-pid_t rote_vt_forkpty(RoteTerm *rt, const char *command);
+pid_t rote_vt_forkpty(RoteTerm *rt, const char *path, const char *argv[]);
 
 /* Disconnects the RoteTerm from its forked child process. This function
  * should be called when the child process dies or something of the sort.
@@ -183,6 +183,8 @@ void rote_vt_forsake_child(RoteTerm *rt);
  * read from the child process it will return immediately. */
 void rote_vt_update(RoteTerm *rt);
 
+int rote_vt_read(RoteTerm *rt, char *buf, int buflen);
+
 /* Puts data into the terminal: if there is a forked process running,
  * the data will be sent to it. If there is no forked process,
  * the data will simply be injected into the terminal (as in