|
From: Lark <lar...@ya...> - 2001-07-05 21:29:33
|
Ben Hines wrote: > How feasible would live scanning be? If i could grab each line of a > textlog as it is written (like algy does - applescript i believe, we > should be able to as well) would it be possible to rejigger the scanner > to scan each line "live"? > And then update the GUI, live. (if its in the foreground) > > Would obviously require some serious reworking of how scanning is handled. Actually, this is easy! The flex scanner is already modular - it allows you to override the function delivering the data to scan (it's a feature of flex). Right now, that funtion is read(). However, *any* function returning a string can be used. The biggest change would be to trigger a GUI redraw periodically. However, this isn't too hard either to do every few lines of log text or so. Lark |