Permalink
Browse files

add scrollback start/end callback to boost scrollback loading for Aqu…

…a/Azure
  • Loading branch information...
1 parent bf817d4 commit 86eda64c33f0d42c41d81bba180a1cfa9ef59d62 @youknowone youknowone committed May 16, 2013
Showing with 11 additions and 1 deletion.
  1. +11 −1 src/common/text.c
View
@@ -263,6 +263,11 @@ scrollback_save (session *sess, const char *text)
scrollback_shrink (sess);
}
+#if FE_AQUA
+extern void fe_scrollback_start(struct session *sess);
+extern void fe_scrollback_end(struct session *sess);
+#endif
+
void
scrollback_load (session *sess)
{
@@ -304,6 +309,9 @@ scrollback_load (session *sess)
lines = 0;
begin = map;
+ #if FE_AQUA
+ fe_scrollback_start(sess);
+ #endif
while (begin < end_map)
{
long n_bytes;
@@ -350,7 +358,9 @@ scrollback_load (session *sess)
fe_print_text (sess, buf, 0);
/*EMIT_SIGNAL (XP_TE_GENMSG, sess, "*", buf, NULL, NULL, NULL, 0);*/
}
-
+ #if FE_AQUA
+ fe_scrollback_end(sess);
+ #endif
munmap (map, (size_t)statbuf.st_size);
close (fh);
}

0 comments on commit 86eda64

Please sign in to comment.