Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Vanishing files ?
- X-seq: zsh-users 10344
- From: Paul Lew <paullew@xxxxxxxxx>
- To: Anssi Saari <as@xxxxxx>
- Subject: Re: Vanishing files ?
- Date: Mon, 29 May 2006 10:51:25 -0700
- Authentication-results: sj-dkim-4.cisco.com; header.From=paullew@xxxxxxxxx; dkim=pass ( sig from cisco.com verified; );
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: a=rsa-sha1; q=dns; l=667; t=1148925086; x=1149789086; c=relaxed/simple; s=sjdkim4001; h=Content-Type:From:Subject:Content-Transfer-Encoding:MIME-Version; d=cisco.com; i=paullew@xxxxxxxxx; z=From:Paul=20Lew=20<paullew@xxxxxxxxx> |Subject:Re=3A=20Vanishing=20files=20?; X=v=3Dcisco.com=3B=20h=3D5MCGqP45RfFV+yqGRTmoXs4p02A=3D; b=pxjw7QAXokc/E7f7WkIjAjNBhVCDnWIjlsj51eo2nXEtyUwq+MOVltuXjgxaaBlZppO7EB1l tH8CdHBYjnrvFpCc1wd3HWF2Ch5tNTqDqumrByZK9ogGbk6gEQ5Xs7tq;
- In-reply-to: <20060529075722.GA28846@xxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20060528.172405.74744323.Meino.Cramer@xxxxxx> <060528113200.ZM31855@xxxxxxxxxxxxxxxxxxxxxx> <20060529075722.GA28846@xxxxxx>
>>>>> "Anssi" == Anssi Saari <as@xxxxxx> writes:
Anssi> That doesn't really work for escape sequences now does it?
Anssi> For example, on this machine, my prompt under script is
Anssi> shown in less like this:
Anssi> ^MESC[m^OESC[mESC[mESC[Jkuori% ESC[Kls^M
Anssi> That sed removes the ^M and escapes, but what it leaves
Anssi> behind is [m[m[m[Jkuori% [K
I used the following scripts for years, can be translated to zsh:
while (<>) {
s/\015$//;
s/^\015//;
s/[^\010]\010//g;
s/\033\[(;?\d+)*[a-zA-Z]//g;
s/^\017//; # ^O inserted by screen
print;
}
Messages sorted by:
Reverse Date,
Date,
Thread,
Author