From owner-freebsd-questions Fri Apr 3 11:15:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA27068 for freebsd-questions-outgoing; Fri, 3 Apr 1998 11:15:01 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from murphy (murphy.utc.com [192.65.177.210]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA26648 for ; Fri, 3 Apr 1998 11:14:06 -0800 (PST) (envelope-from MetcalJM@utrc.utc.com) From: MetcalJM@utrc.utc.com Received: from cliff-fe.res.utc.com (172.31.20.77) by murphy.utc.com (PMDF V4.3-10 #6532) id <01IVFJ30EF3K00G2NW@murphy.utc.com>; Fri, 03 Apr 1998 11:30:40 -0500 (EST) Received: from Express5.res.utc.com by cliff-fe.res.utc.com (SMI-8.6/SMI-SVR4) id LAA26728; Fri, 3 Apr 1998 11:29:53 -0500 Received: by express5.res.utc.com with Internet Mail Service (5.5.1960.3) id ; Fri, 3 Apr 1998 11:30:00 -0500 Date: Fri, 03 Apr 1998 11:29:51 -0500 Subject: Q: Adapt code for terminal emulation to clean files To: questions@FreeBSD.ORG Cc: metcalf@snet.net Message-id: MIME-version: 1.0 X-Mailer: Internet Mail Service (5.5.1960.3) Content-type: text/plain Content-transfer-encoding: 7BIT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, I was wondering if anybody could point me to some routines in the FreeBSD source code. To describe the code I'm looking for, let me describe the problem I'm trying to solve. My users and I log shell sessions with tools such as 'watch' and 'script'. But as you know, they don't do any terminal emulation. All characters appear there, backspaces, bell characters, etc. I was wondering if I can adapt any of the routines used by the UNIX terminal buffers to clean those files up line-by-line. Or if you know of any perl code that has been written to do that, it would be appreciated as well. Thank You, JM > ------------- > Jeffrey M. Metcalf > United Technologies Research Center > metcaljm@utrc.utc.com > (860) 610-7576 > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message