Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Dec 94 10:22:44 MST
From:      terry@cs.weber.edu (Terry Lambert)
To:        chuckr@Glue.umd.edu (Chuck Robey)
Cc:        FreeBSD-Questions@freefall.cdrom.com
Subject:   Re: vi question
Message-ID:  <9412191722.AA28168@cs.weber.edu>
In-Reply-To: <Pine.OSF.3.91.941218192040.2324A-100000@modem.eng.umd.edu>; from "Chuck Robey" at Dec 18, 94 7:27 pm

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

It *is* a single character (you'll note that, like an embedded ^T, it
takes up a single character advance position when cursoring over it).

If you are asking "can I type one in a search string" the answer is
"it depends on what you are using to do your input".  You can use a
^V followed by the character itself.  The question is whether you can
get one out of your keyboard or not.

I think you can do "the DOS thing" on at least one of the console drivers
...that is, you can hold down the alt key and enter the character as a
decimal value on the keypad.

The only problem after that is converting 0xc4 to decimal. 8^).

> 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...

Well, if you are using X, there are several "PC" character sets available,
but I don't think they are shipped by anyone by default.  If you started
an xterm and you were 8-bit clean otherwise, and you displayed the file
to the screen, then it would display like on a PC.


					Terry Lambert
					terry@cs.weber.edu
---
Any opinions in this posting are my own and not those of my present
or previous employers.



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