bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: save screen as text ?


From: Mike Gran
Subject: Re: save screen as text ?
Date: Fri, 3 Oct 2014 04:41:26 +0000 (UTC)

> > Hi Everyone

> 
> scr_dump and putwin create binary files, is there a way to dump the 
> contents of a screen to a text file. I just need a plain "black and 
> white" version.


You could roll your own function for this easily by calling
mvwinnstr on each row of your window.

If you want the attributes of each character, you could instead
call mvwinch on each character location in your window.


-Mike Gran


reply via email to

[Prev in Thread] Current Thread [Next in Thread]