On Mon, Dec 08, 2008 at 11:34:21PM +0800, Cheng Renquan wrote:
> On Mon, Dec 8, 2008 at 9:22 PM, Larry Clapp <[EMAIL PROTECTED]> wrote:
> > On Mon, Dec 08, 2008 at 07:29:14PM +0800, Cheng Renquan wrote:
> >> BTW, someone know a good screen record software under Linux please
> >> suggest it to me, I will record a video to show this bug clearly,
> >
> > I think you want script(1):
> 
> No. I want to show that bash mishandling the cursor position,
> Can script(1) record the cursor position in the bash editing buffer?

Yes.  Type "xxx", backup three, insert yyy, resulting in

  bash: yyyxxx: command not found

is recorded as

  xxx^H^H^Hyxxx^H^H^Hyxxx^H^H^Hyxxx^H^H^H^M

(This is in "vi" mode; "emacs" mode might look different.  Dunno.)

Script can record a vim session; I'm pretty sure it'll record what
you're trying to reproduce.  But the proof is in the pudding: why
don't you try it?

See also "scriptreplay" to replay the recorded session.  See manpages
for both script and scriptreplay to figure it all out.

-- L



Reply via email to