On Tue, 15 Aug 2006, Michael Niedermayer wrote:

attached you will find a patch which adds some ascii vissualization of the
ddrescuing, if your terminal supports it should be colorized too

This is interesting, but I don't think hard coding ANSI escape sequences is such a good idea. You don't know what terminal people will be using.

Also you should use ioctl TIOCGWINSZ and sigwinch to detect the terminal size rather then have people type it in themself.

However, that too, may cause portability problems.

I would maybe recommend investigating curses, and using that. It should be fully portable, although the full curses library seems somewhat overkill for this purpose.

I don't have other advice/ideas, maybe the programmer of ddrescue will have some.

        -Ariel


_______________________________________________
Bug-ddrescue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-ddrescue

Reply via email to