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


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
Posts: 193
Registered: ‎06-06-2000
Message 2 of 3 (194 Views)


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
Posts: 3,794
Registered: ‎06-30-2000
Message 3 of 3 (194 Views)



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

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.