Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Dec 1994 16:55:50 -0800 (PST)
From:      gibbs@uclink.berkeley.edu (Justin Theodore Gibbs)
To:        chuckr@Glue.umd.edu (Chuck Robey)
Cc:        FreeBSD-Questions@freefall.cdrom.com
Subject:   Re: vi question
Message-ID:  <199412190055.QAA16420@uclink.berkeley.edu>
In-Reply-To: <Pine.OSF.3.91.941218192040.2324A-100000@modem.eng.umd.edu> from "Chuck Robey" at Dec 18, 94 07:27:54 pm

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199412190055.QAA16420>