I don't think this is currently possible for scrollback. You can get
the visible text and attributes with term_scrape(). That can be used to
store the information somewhere, it should be possible to make a plugin
that outputs HTML.
It should not be difficult to make term_scrape() work for text that has
scrolled out of view. I wonder how to indicate the line number, perhaps
with a negative number? Thus -1 would be the line above the first
visible line. Using an absolute number is made difficult by the
'termwinscroll' value, lines at the start may have been deleted.
--
Vi beats Emacs to death, and then again!
http://linuxtoday.com/stories/5764.html
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///