Re: [Tutor] Scrolling through output in shell

2008-11-20 Thread Simón A. Ruiz
Lie Ryan wrote: As the manpage of less explains: 'less - opposite of more' I've always heard it explained that more is the original paging program of UNIX, and when a new pager was created (by GNU?) they named it less because, as we all know, less is more[1]. Simón [1]

Re: [Tutor] Scrolling through output in shell

2008-11-20 Thread Simón A. Ruiz
Lie Ryan wrote: As the manpage of less explains: 'less - opposite of more' I've always heard it explained that more is the original paging program of UNIX, and when a new pager was created (by GNU?) they named it less because, as we all know, less is more[1]. Simón [1]

Re: [Tutor] Scrolling through output in shell

2008-11-19 Thread Lie Ryan
On Mon, 17 Nov 2008 09:20:55 -0500, Shawn Milochik wrote: On Sun, Nov 16, 2008 at 1:21 PM, Mike Hoy [EMAIL PROTECTED] wrote: I'm writing a small program that writes to a text file. I want to be able to view the contents of the text file inside of shell. But the file is too large for a small

Re: [Tutor] Scrolling through output in shell

2008-11-19 Thread Alan Gauld
Lie Ryan [EMAIL PROTECTED] wrote both more and less. The most striking difference between more and less is that more is simple forward-only, you can't scroll up, only down. less support both backward and forward navigation. On very early Unices that was true but for the last 20 years more

Re: [Tutor] Scrolling through output in shell

2008-11-19 Thread Mike Hoy
os.system(cat textfile | less) did the trick, thanks everyone. On Wed, Nov 19, 2008 at 2:34 PM, Lie Ryan [EMAIL PROTECTED] wrote: On Mon, 17 Nov 2008 09:20:55 -0500, Shawn Milochik wrote: On Sun, Nov 16, 2008 at 1:21 PM, Mike Hoy [EMAIL PROTECTED] wrote: I'm writing a small program that

Re: [Tutor] Scrolling through output in shell

2008-11-18 Thread Eike Welk
On Monday 17 November 2008, ALAN GAULD wrote: I'm writing a program that reads a text file onto the screen. The text file is too large to read so I want to be able to scroll through it with the arrow key or something like that. I am not using GUI. You could also output the text, and give

Re: [Tutor] Scrolling through output in shell

2008-11-17 Thread Shawn Milochik
On Sun, Nov 16, 2008 at 1:21 PM, Mike Hoy [EMAIL PROTECTED] wrote: I'm writing a small program that writes to a text file. I want to be able to view the contents of the text file inside of shell. But the file is too large for a small shell window. Is there a way for the user to 'scroll'

Re: [Tutor] Scrolling through output in shell

2008-11-17 Thread ALAN GAULD
Forwarding to the group. Please use Reply All when responding. - Original Message From: Mike Hoy [EMAIL PROTECTED] To: Alan Gauld [EMAIL PROTECTED] I'm writing a program that reads a text file onto the screen. The text file is too large to read so I want to be able to scroll through

Re: [Tutor] Scrolling through output in shell

2008-11-17 Thread Mike Hoy
Ok thanks Alan for looking into it. I'll give it a try. On Mon, Nov 17, 2008 at 12:27 PM, ALAN GAULD [EMAIL PROTECTED] wrote: Forwarding to the group. Please use Reply All when responding. - Original Message From: Mike Hoy [EMAIL PROTECTED] To: Alan Gauld [EMAIL PROTECTED] I'm

[Tutor] Scrolling through output in shell

2008-11-16 Thread Mike Hoy
I'm writing a small program that writes to a text file. I want to be able to view the contents of the text file inside of shell. But the file is too large for a small shell window. Is there a way for the user to 'scroll' through the contents of file that has been read into the program? I noticed

Re: [Tutor] Scrolling through output in shell

2008-11-16 Thread Alan Gauld
Mike Hoy [EMAIL PROTECTED] wrote I'm writing a small program that writes to a text file. I want to be able to view the contents of the text file inside of shell. But the file is too large for a small shell window. Can you explain a bity more about what you are doing? Which shell are you