Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!sun-barr!olivea!oliveb!amdahl!netcom!avery From: avery@netcom.UUCP (Avery Colter) Newsgroups: comp.lang.c Subject: Re: MORE/PAGING routine needed ... Keywords: paging routine Message-ID: <17293@netcom.UUCP> Date: 22 Nov 90 09:56:57 GMT References: <1244@eci.UUCP> <1990Nov12.181848.10371@ccu.umanitoba.ca> Distribution: usa Organization: Netcom- The Bay Area's Public Access Unix System {408 241-9760 guest} Lines: 25 salomon@ccu.umanitoba.ca (Dan Salomon) writes: >MORE is quite a powerful pager, and it can take a lot of >effort to duplicate all of its functionality. If you don't duplicate >its operations exactly you will just annoy the users. That's partly why I haven't spoken sooner, and put my main more function on the back-burner trying to get this regular expression search function going. I know the Unix more command has a "/" statement to find the next line which contains the regular expression given. I'm realizing what a complex set of questions is involved in matching like this. It looks like there's going to be recursion somewhere in there no matter how I slice it. Not bad for a taste of real-world programming. Any little assignment in my FORTRAN class was peanuts compared to this thing I've taken on. It's re-inventing the wheel I'm sure. But to try making sense of the code one person has mailed me of seems like it will take as much work as just figuring it out on my own. -- Avery Ray Colter {apple|claris}!netcom!avery {decwrl|mips|sgi}!btr!elfcat (415) 839-4567 "I feel love has got to come on and I want it: Something big and lovely!" - The B-52s, "Channel Z"