From owner-freebsd-questions Tue Dec 20 17:51:46 1994 Return-Path: questions-owner Received: (from root@localhost) by freefall.cdrom.com (8.6.9/8.6.6) id RAA12759 for questions-outgoing; Tue, 20 Dec 1994 17:51:46 -0800 Received: from cs.weber.edu (cs.weber.edu [137.190.16.16]) by freefall.cdrom.com (8.6.9/8.6.6) with SMTP id BAA12744 for ; Wed, 21 Dec 1994 01:51:43 GMT Received: by cs.weber.edu (4.1/SMI-4.1.1) id AA28168; Mon, 19 Dec 94 10:22:45 MST From: terry@cs.weber.edu (Terry Lambert) Message-Id: <9412191722.AA28168@cs.weber.edu> Subject: Re: vi question To: chuckr@Glue.umd.edu (Chuck Robey) Date: Mon, 19 Dec 94 10:22:44 MST Cc: FreeBSD-Questions@freefall.cdrom.com In-Reply-To: ; from "Chuck Robey" at Dec 18, 94 7:27 pm X-Mailer: ELM [version 2.3 PL11] Sender: questions-owner@freebsd.org Precedence: bulk > 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.