Re: VI EDITOR (157 Views)
Reply
Occasional Contributor
Adityavikram
Posts: 6
Registered: ‎11-25-2001
Message 1 of 3 (157 Views)

VI EDITOR

Say I want to put in some characters like
??
??
??
??
??
??
??
??
??
??
??
in the vi editor - is it possible ?
And if it is how do I do it? Or what is the criteria so that I can process those characters using C++ or any other programming language!

Any help would be appreciated.
Respected Contributor
Charles Slivkoff
Posts: 193
Registered: ‎06-06-2000
Message 2 of 3 (157 Views)

Re: VI EDITOR

There are several criteria that must be met inorder to input characters above 127. (See locale(1) and other referenced man pages.)



a/ The locale must recognize the characters as isprint().



b/ The terminal emulator must be internationalized (I10N'd) & localized. It must be capable of loading an appropriate font for the given locale.



c/ The tty/pty used by the terminal must be set to allow 8-bit character display (stty cs8 -strip -parity).



d/ The application (vi in this example) must be I10N'd.



Provided that these are met, the HP X server supports a "compose" feature using "mute"/"dead" keys [ALT]+[RTYUI].



[ALT+R] usldead_acute

[ALT+T] usldead_grave

[ALT+Y] usldead_asciicircum

[ALT+U] usldead_diaeresis

[ALT+R] usldead_asciitilde



So, for example, to generate , one would type [ALT+R]-[e], or [ALT+R]-[SHIFT][e] for .



This assumes a PS/2 or USB US English keyboard (see /etc/kbd_lang) being used directly on an HP X server.



While inputing from other sources should theoretically be possible, it would depend on the capabilities of the terminal / X emulation being used.



Honored Contributor
Wodisch
Posts: 3,786
Registered: ‎06-30-2000
Message 3 of 3 (157 Views)

Re: VI EDITOR

Hello,

your terminal line must permit 8bit characters, too:

stty cs8 -istrip

AND you'll need the proper fonts (I do expect you to use X-Windows/CDE, right?).
You might have to use "xmodmap" to set up some so-called "dead" keys for the accents, to be able to enter the characters with accents/tildas/tremas (diacritical characters)...

HTH,
Wodisch
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation.