Re: Logging With Screen

From:

Trent W. Buck

Subject:

Re: Logging With Screen

Date:

Fri, 03 Apr 2009 14:43:36 +1100

User-agent:

Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux)

"Charles A. Templeton III"
<address@hidden> writes:
> Why does screen logs look the way they do? For example, when I am in
> in the terminal I see this:
>
>>computer:~ user$ sudo port selfupdate
>
> But when I look in the log file it writes a new line to the log file
> for every character change and some more (escaped characters written
> to the terminal perhaps?). Basically, it tell me exactly how I got
> there.
>
>>-- 1:bash -- time-stamp -- Feb/15/09 12:57:26 --
>>
>>computer:~ user$ s
>>computer:~ user$ su
>>computer:~ user$ sud
I would guess that is because you told your shell to redraw the entire
line after any update. Try using /bin/sh, setting PS1='$ ' and
unsetting any prompt updating voodoo you use. Does the problem go away?