-void rote_vt_update(RoteTerm *rt)
-{
- char buf[512];
- int nbread;
- int n = ROTE_VT_UPDATE_ITERATIONS;
-
- while (n--) { /* iterate at most ROVE_VT_UPDATE_ITERATIONS times.
- * As Phil Endecott pointed out, if we don't restrict this,
- * a program that floods the terminal with output
- * could cause this loop to iterate forever, never
- * being able to catch up. So we'll rely on the client
- * calling rote_vt_update often, as the documentation
- * recommends :-) */
-
- nbread = rote_vt_read(rt, buf, sizeof(buf));
- if (nbread <= 0)
- return;
-
- /* inject the data into the terminal */
- rote_vt_inject(rt, buf, nbread);
- }
-}
-