Click to See Complete Forum and Search --> : Putting non-keyboard characters into a file


prince_kenshi
07-23-2001, 10:31 PM
I just installed FreeBSD and I'm trying to get Licq among other things working. Well I want to use the uin that I'm not using on my Linux box so they can both be online at the same time. The problem with that is that I last used that uin in Windows and it has a Latin character in the password not found on a US keyboard. I haven't yet figured out how to type these characters in Unix except with the echo command and escape sequences. My editor of choice is vi. Does anyone know how to do it with vi? Perhaps any other way? Preferably on the command line because X doesn't work on my monitor and I'd rather not ftp the files to the computer I'm on now. Any assistance is appreciated.

Iassen
07-24-2001, 03:54 AM
Does this character have an ASCII code?
like ½ - which is alt+0189, or the french Ç (Cedille) - alt+0199?

All I know that some characters can be typed on the console using alt+....

prince_kenshi
07-24-2001, 08:15 AM
I guess that does work. I've never been able to type alt codes in Linux before. Maybe I was trying in X or something. Thanks.

prince_kenshi
07-25-2001, 02:31 AM
Well this is weird. The only time I can get it to type the character is at login. At the shell, it doesn't display and in Vi it puts the letter F instead of what it's supposed to. It does this in Joe too. Can anyone explain this oddity to me?

Iassen
07-25-2001, 02:41 AM
Which character are you trying to type (if it's not a secret of course :rolleyes: )

prince_kenshi
07-25-2001, 09:09 AM
If I could type it, I'd tell you. Actually it's the combination of A and E. You know the letter.

Iassen
07-25-2001, 10:04 AM
Is it by any chance alt+0198??

http://www.geocities.com/beef_tenderloin/round.gif

prince_kenshi
07-25-2001, 01:55 PM
Originally posted by Iassen:
<STRONG>Is it by any chance alt+0198??

http://www.geocities.com/beef_tenderloin/round.gif </STRONG>

Normally, yes it is. But when I type that in Vi or Joe, it just gives me the letter F. What's up with that?

Iassen
07-26-2001, 03:11 AM
Uhm, I really don't know.
I tried it with pico (i dont use vi or joe), it goes as it should - Æ
That's very strange
:rolleyes:

Strike
07-26-2001, 03:27 AM
In vim -

:set digraph
Then two-letter combos are done by {char1} &lt;BS&gt; {char2}. So yours would be A &lt;Backspace&gt; E. That gives me - Æ

prince_kenshi
07-26-2001, 11:50 AM
Thanks Strike.