, I logged into my account to send email to a woman who has an "e acute" in her first name. I couldn't use my laptop's Ubuntu to copy it into the shell. I looked for 'French' and 'Roman' encodings in the menu options but saw nothing.
How do you key accented vowels when typing in a shell?

· · Web · 11 · 8 · 0

@cosullivan Here's a free one you can paste: é

It's going to depend on the terminal I guess. I'm using rxvt-unicode and it works out of the box.


Depending on your terminal & settings, sometimes you can CTRL+SHIFT+u then enter the Unicode point by number.

Solution 1/
You can add a french keyword in your desktop preferences and type them like :
* é=2 key
* è=7 key
* à=0 key
Solution 2:
You can use compose key (to be defined in keyboard preferences too and type:
compose+'+e for é
compose+`+e for è
compose+`+a for à
compose+^+o for ô

@cosullivan I recommend the compose key suggestion, because it will apply across all programs. "setxkbmap -option compose:prsc" will turn that useless printscreen key into Compose. Or you could use "compose:caps" or "compose:sclk" to put it on Caps Lock or Scroll Lock.

@cosullivan I use the compose key like others (it's AltGr for me, which AFAICT is the default), but when I'm in Emacs (which I usually am) I use gk-unilat.el


assign a compose key, typically one of the right-hand modifiers (menu, alt, win, ctrl, shift)

then hit and release each in order compose, e, '


alternately, look up the unicode codepoint, hit crtl-shift-u, then the four decimal digits of the codepoint, then space

@cosullivan You can use unicode. For é you can use ctrl-shift-u then e9 enter.

Ctrl + Shift + U and then the unicode character number.

Example é:
Ctrl + Shift + U and then type E9

@cosullivan I think this depends on your keyboard layout. I am using US-intl where this can be typed with AltGr+e. There are a lot of other special symbols behind AltGr+<some letter>. Just look around and you will find the right one.

Sign in to participate in the conversation
Mastodon @ SDF

"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko