From owner-freebsd-questions Sun Dec 18 16:28:01 1994 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.8/8.6.6) id QAA28445 for questions-outgoing; Sun, 18 Dec 1994 16:28:01 -0800 Received: from glueserv1.umd.edu (glueserv1.umd.edu [129.2.70.69]) by freefall.cdrom.com (8.6.8/8.6.6) with ESMTP id QAA28435 for ; Sun, 18 Dec 1994 16:27:59 -0800 Received: from modem.eng.umd.edu (modem.eng.umd.edu [129.2.98.187]) by glueserv1.umd.edu (8.6.9/8.6.4) with ESMTP id TAA05068 for ; Sun, 18 Dec 1994 19:27:57 -0500 Received: from localhost (chuckr@localhost) by modem.eng.umd.edu (8.6.4/8.6.4) id TAA02350; Sun, 18 Dec 1994 19:27:56 -0500 Date: Sun, 18 Dec 1994 19:27:54 -0500 (EST) From: Chuck Robey To: FreeBSD Questions Subject: vi question Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 | ----------------------------+-----------------------------------------------