From owner-freebsd-questions Sat Jun 5 13: 8:51 1999 Delivered-To: freebsd-questions@freebsd.org Received: from uven.ru (uven.ru [62.76.35.162]) by hub.freebsd.org (Postfix) with ESMTP id D722514D4D for ; Sat, 5 Jun 1999 13:08:41 -0700 (PDT) (envelope-from vlad@high.net.ru) Received: from ns.ulstu.ru (root@ns.ulstu.ru [62.76.34.36]) by uven.ru (8.9.1a/8.9.1) with ESMTP id AAA04865; Sun, 6 Jun 1999 00:08:04 +0400 (MSD) Received: from hq.spc.high ([195.151.42.233]) by ns.ulstu.ru (8.8.5-MVC-230198/8.8.7) with ESMTP id AAA22973; Sun, 6 Jun 1999 00:07:23 +0400 (MSD) (envelope-from vlad@high.net.ru) Received: (from vlad@localhost) by hq.spc.high (8.9.3/8.9.3) id AAA03557; Sun, 6 Jun 1999 00:03:20 +0400 (MSD) (envelope-from vlad) From: Vlad Skvortsov Message-Id: <199906052003.AAA03557@hq.spc.high> Subject: Re: script-like utility wanted In-Reply-To: from Doug White at "Jun 4, 1999 3:50: 5 pm" To: dwhite@resnet.uoregon.edu (Doug White) Date: Sun, 6 Jun 1999 00:03:19 +0400 (MSD) Cc: freebsd-questions@freebsd.org X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >> Script is very convinient tool, but there's a problem if I use >> backspace characters and the like. If I start "script SOMEWHERE" and >> insert file SOMEWHERE to, for example, vi, the picture is not so >> pretty: > >This is normal. Script also records any control characters. If you have >long commands for `script'ing, use a shell script to avoid typos. Scripting itself is not a problem :-) I use script mainly for inserting "logs" of my shell sessions to mails. So control characters in mail messages ARE the problem. >> Script started on Fri Jun 4 17:22:59 1999 >> [vlad@hq] ~ > this is =1B[15`=1B[Kecho see those ? eh ?=08=1B[K=08=08=1B= [K=08=1B[K=08 >> see those _ z >> [vlad@hq] ~ > ^D=08=08 >> Script done on Fri Jun 4 17:23:28 1999 >>=20 >> Is there a filter that would help it ? > >You can substitute them out with an approrpriate regexp. Well, I can substitute control characters but I cannot pretend that those characters work. I mean that backspace should delete previous character and ^u should delete the whole line.=20 Is there any system tool that allows such substitutions ? If not, I think, I'll patch script some way ... --=20 Vlad Skvortsov, vss@ulstu.ru To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message