On Wed, Jun 10, 2009 at 1:36 PM, Chris
Cannam<[email protected]> wrote:
> On a similar note, I would very much like to have a sort of "compile
> output pager" program.  This would be pretty simple; it would just run
> make (or whatever command) and let the output scroll past as normal
> until an error message appeared; then it would switch to paging mode
> with the first few lines of errors at the bottom of the screen and not
> scroll again until you told it to.  And highlight the start of the
> error message.  And maybe ring the terminal bell or something (though
> I usually have that switched off).
> [...]
> It's almost certainly possible to do what I want in an inelegant way
> as a shell script, but I'd like to know if there's an obvious
> alternative first.

OK, well, this is the inelegant shell (bash only) script:

http://rosegarden.svn.sourceforge.net/viewvc/rosegarden/trunk/rosegarden/scripts/buildpager

(in SVN in scripts/buildpager, as you'll notice).

It runs make and starts paging in the style of "more", and
highlighting errors in the output, when the first "error: " appears in
an output line.  It doesn't use a real pager program, just responds to
a few keypresses itself.  Press "q" to quit, "c" to continue with the
make without asking for any further input (handy with make -k).

This is _almost_ what I wanted, though it's lacking in a few details
still.  I may try installing it as what you get when you just type
"make", and seeing how I get on.


Chris

------------------------------------------------------------------------------
Crystal Reports - New Free Runtime and 30 Day Trial
Check out the new simplified licensing option that enables unlimited
royalty-free distribution of the report engine for externally facing 
server and web deployment.
http://p.sf.net/sfu/businessobjects
_______________________________________________
Rosegarden-devel mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to