From: Seebs Date: 2010-01-01T01:35:20+09:00 Subject: Re: Automated testing of visual library (ncurses) On 2009-12-31, (rkumar) Sentinel wrote: > 1. One thought that comes is to take some kind of screen dump and > compare screen dumps when testing. (I am on a unix terminal, of course, > OS X) > 2. I don't think logging to a file and comparing logs would be of much > benefit. Hmm. Suggestion: See if you can figure out a way to externally command screen(1) to do a hardcopy dump, and if so, run your stuff in a screen session, then dump the current state of the display to a file -- I think that should get you the same characters for the same output regardless of how you got there. Basically, you need a terminal emulator which is reliable at obeying curses commands. Luckily, one exists. -s -- Copyright 2009, all wrongs reversed. Peter Seebach / usenet-nospam@seebs.net http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!