From owner-freebsd-questions Sun Dec 18 16:55:56 1994 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.8/8.6.6) id QAA06105 for questions-outgoing; Sun, 18 Dec 1994 16:55:56 -0800 Received: from uclink3.berkeley.edu (uclink3.Berkeley.EDU [128.32.136.74]) by freefall.cdrom.com (8.6.8/8.6.6) with ESMTP id QAA06085 for ; Sun, 18 Dec 1994 16:55:55 -0800 Received: from uclink.berkeley.edu by uclink3.berkeley.edu (8.6.8/1.33(web)-OV2) id QAA11949; Sun, 18 Dec 1994 16:55:53 -0800 Received: by uclink.berkeley.edu (8.6.9/1.33(web)-OV4) id QAA16420; Sun, 18 Dec 1994 16:55:51 -0800 From: gibbs@uclink.berkeley.edu (Justin Theodore Gibbs) Message-Id: <199412190055.QAA16420@uclink.berkeley.edu> Subject: Re: vi question To: chuckr@Glue.umd.edu (Chuck Robey) Date: Sun, 18 Dec 1994 16:55:50 -0800 (PST) Cc: FreeBSD-Questions@freefall.cdrom.com In-Reply-To: from "Chuck Robey" at Dec 18, 94 07:27:54 pm X-Mailer: ELM [version 2.4 PL23] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Content-Length: 1463 Sender: questions-owner@freebsd.org Precedence: bulk > > I wanted to browse a text file I got from Seagate about a new disk of mine. > The file had a bunch of non-printable chars in it. Usually, I go into > vi, and using the ^V control char prefix, I edit out all the control > characters that make things hard to read. This time, the characters > involved must be part of the IBM graphics character set, and instead of > getting stuff like "^T" (or somesuch) I found single characters, in vi, > being represented as "0xc4", and that is (in fact) one of the chars I found. > > Does anyone happen to know if there's a way, inside vi, to represent a > character such as "0xc4" as a single char, so I can use it in a > substitution? > > Alternatively, does anyone know how I could display the file with the > character set that would be appropriate to the file, so I could see the > snazzy graphics stuff? Or maybe print it? I've a postscript printer... > > ----------------------------+----------------------------------------------- > Chuck Robey | Interests include any kind of voice or data > chuckr@eng.umd.edu | communications topic, C programming, and Unix. > 7608 Topton St. | > New Carrollton, MD 20784 | I run Journey2 (Esix SVR4) and n3lxx (FreeBSD) > (301) 459-2316 | > ----------------------------+----------------------------------------------- Cat the file while on a vty. Cons25 should handle most of the characters. -- Justin