Re: vi/emacs: Loging shell command and output

2001-03-12 Thread Osamu Aoki
I asked vim mailing list for how to document shell activity in non-emacs-environment. The answer was $ script -a savefile Control-D $ col -b cleanedfile $ vi cleanedfile Color-ls needs to be disabled, too. Now I can document shell activity without learning emacs. So I have 2 app

Re: vi/emacs: Loging shell command and output

2001-03-12 Thread D-Man
On Fri, Mar 09, 2001 at 01:37:42PM -0800, Osamu Aoki wrote: | Sorry, I am using different teminal this time. (windoze) | | > I also found that "export term=xterm" stops autocolor-ls to producing | > escape sequences. Recorded text after this is printable. | | This may be bogus statement but sett

Re: vi/emacs: Loging shell command and output

2001-03-09 Thread Osamu Aoki
Sorry, I am using different teminal this time. (windoze) > I also found that "export term=xterm" stops autocolor-ls to producing > escape sequences. Recorded text after this is printable. This may be bogus statemeent but setting term to proper mode shall stop autocolor-ls to producing color. I

Re: vi/emacs: Loging shell command and output

2001-03-09 Thread Osamu Aoki
True. less -r is good one. (8 bit clean/damb, I use it for reading Japanese too) I also found that "export term=xterm" stops autocolor-ls to producing escape sequences. Recorded text after this is printable. Thanks. Osamu On Fri, Mar 09, 2001 at 08:07:37PM +, Colin Watson wrote: > Osamu

Re: vi/emacs: Loging shell command and output

2001-03-09 Thread Colin Watson
Osamu Aoki <[EMAIL PROTECTED]> wrote: >Nice thing about this is that this set terminal w/o color support so my >aliased color "ls" can print without escape sequence. "script" >suggested by others was good but it also recorded all these color escape >sequences. Try reading script's output file wit

Re: vi/emacs: Loging shell command and output

2001-03-09 Thread Osamu Aoki
Looks like emacs can do it. How about _vim_? I got following messagei from Eric Hanchrow: Osamu> I can use ... Control-U Meta-! in emacs to record shell Osamu> output but they do not record shell prompt nor shell Osamu> command itself. "M-x shell" Runs a shell within Emacs. Everything yo

Re: vi/emacs: Loging shell command and output

2001-03-09 Thread Mike Brownlow
Osamu Aoki wrote: > Hi folks, > > What is the best way to log shell command and their console output? Try 'script' from the bsdutils package. -- Mike Brownlowhttp://www.wsmake.org/~mike/ - 1024D/8AA6EAFD 386

Re: vi/emacs: Loging shell command and output

2001-03-09 Thread hansen
script see man script On Thu, Mar 08, 2001 at 11:42:40PM -0800, Osamu Aoki wrote: > Hi folks, > > What is the best way to log shell command and their console output? > > I can use !! in vi and Control-U Meta-! in emacs to record shell output > but they do not record shell prompt nor shell comm

Re: vi/emacs: Loging shell command and output

2001-03-09 Thread hogan
ls -la > outputToThisFileOverwritingExisting ls -la >> outputToThisFileAppendingToExisting - Original Message - From: "Osamu Aoki" <[EMAIL PROTECTED]> To: Sent: Friday, March 09, 2001 6:42 PM Subject: vi/emacs: Loging shell command and output > - s

vi/emacs: Loging shell command and output

2001-03-09 Thread Osamu Aoki
Hi folks, What is the best way to log shell command and their console output? I can use !! in vi and Control-U Meta-! in emacs to record shell output but they do not record shell prompt nor shell command itself. I know it is obvious to most of you but I am ignorant. If I can do this, my mainten