How can I type characters with an overbar, like the NOT symbol in math, when in a linux SSH shell with no GUI?

link|improve this question

14% accept rate
2  
It would help if you specificed your OS, and maybe posted a link to a picture of what you want exactly. – KCotreau Jul 30 '11 at 3:47
2  
Where exactly do you want to type them? In Microsoft Word? In an email? – nmat Jul 30 '11 at 3:47
I'm under linux terminal(ssh shell), no GUI available. – xpbug Jul 30 '11 at 3:53
feedback

3 Answers

Under Windows, you can use character map to locate and copy the character you want. In Character Map, check the Advanced View box and search for "Macron" to get a list of all characters with the bar.

To open the character map:

  • Windows XP and earlier: Start > Run, type in charmap then hit enter
  • Windows Vista/7: Start, type in character map
link|improve this answer
You mean one can only select it one by one under windows? – xpbug Jul 30 '11 at 3:55
Actually, character map allows the selection of multiple characters, but individual characters must be re-copied for different combinations. – berk98 Jul 30 '11 at 4:04
@berk : The user asked explicitly about Linux, not Windows. – jankes Jul 30 '11 at 23:30
feedback

In which program? Look in the font settings in whichever program for something like "Overline" or "Overstrike." Not all programs support such font decorations.

If the program you're using supports Unicode entities then you can probably use the Overline Combine character entity to accomplish this. For example, in H̅T̅M̅L̅.

link|improve this answer
feedback

Press:

Ctrl+Shif+u

Then type 0304 and press Enter. Now type the letter you want. 0304 is Unicode combining code for that character.

link|improve this answer
Note that this is for Linux. – Christian Mann Jul 30 '11 at 4:37
It works in my system: Ubuntu 10.10 64 bit using bash. – nmat Jul 30 '11 at 4:39
Doesn't work in SSH shell. – xpbug Jul 30 '11 at 4:39
Well, you need UTF-8 support. What is the output of locale? If it doesn't show LANG=XXXXXX.utf8 then you can't use utf-8 characters – nmat Jul 30 '11 at 5:14
1  
Ctrl-Shift-U is specific to GTK-based programs (such as GNOME Terminal). It won't work in, for example, PuTTY. – grawity Jul 30 '11 at 10:33
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.