X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=madtty%2Fmadtty.h;h=e8123dbed8b8b7608954c4c8bc3c021c4c09391f;hb=f825f4ca53c05c78e52b7e007e07ad76587fb46c;hp=2ad212e0e553c553809d3b399ccbd00906d1c2dd;hpb=880886ae6dca338d2d57e4b85cf984f4022ec520;p=apps%2Fmadtty.git diff --git a/madtty/madtty.h b/madtty/madtty.h index 2ad212e..e8123db 100644 --- a/madtty/madtty.h +++ b/madtty/madtty.h @@ -85,7 +85,7 @@ /* Represents each of the text cells in the terminal screen */ typedef struct RoteCell_ { - unsigned char ch; /* >= 32, that is, control characters are not + unsigned int ch; /* >= 32, that is, control characters are not * allowed to be on the virtual screen */ unsigned char attr; /* a color attribute, as described previously */ @@ -177,12 +177,7 @@ pid_t rote_vt_forkpty(RoteTerm *rt, const char *path, const char *argv[]); void rote_vt_forsake_child(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 - * rote_vt_inject) */ -void rote_vt_write(RoteTerm *rt, const char *data, int length); +int rote_vt_write(RoteTerm *rt, const char *data, int length); /* Inject data into the terminal. needs NOT be 0-terminated: * its length is solely determined by the parameter. Please @@ -191,7 +186,7 @@ void rote_vt_write(RoteTerm *rt, const char *data, int length); * running in the terminal (if any). For that, you might want * to use rote_vt_write. */ -void rote_vt_inject(RoteTerm *rt, const char *data, int length); +int rote_vt_inject(RoteTerm *rt, const char *data, int length); #ifdef USE_NCURSES /* Paints the virtual terminal screen on the given window, putting