Micah Cowan wrote: > + screen_write_start(&ctx, wp, &data->screen); > + ox = data->screen.cx; > + oy = data->screen.cy; > + > + /* If the history has changed, draw the top line. > + * (If there's any history at all, it has changed.) */ > + if (screen_hsize(data->backing)) > + window_copy_write_line(wp, &ctx, 0); > + > + /* Write the line, if it's visible. */ > + if (backing->cy + data->oy < screen_size_y(backing)) > + window_copy_write_line(wp, &ctx, backing->cy); > + > + data->screen.cx = data->cx = ox; > + data->screen.cy = data->cy = oy; > + screen_write_stop(&ctx);
Or perhaps this funny stuff with ox, oy isn't necessary if I use redraw_lines instead of write_line. -- Micah J. Cowan http://micah.cowan.name/ ------------------------------------------------------------------------------ SOLARIS 10 is the OS for Data Centers - provides features such as DTrace, Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW http://p.sf.net/sfu/solaris-dev2dev _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users