Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question
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
    
Linux terminal is not synonymous with ssh shell. In fact, you can ssh from windows, in which case you will be in a linux shell over ssh from a windows terminal and a windows ssh client. And it is the terminal part that matters here. Which terminal program are you using? On which system? –  njsg Oct 20 '13 at 10:01

3 Answers 3

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
share|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

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

share|improve this answer

Press:

Ctrl+Shif+u

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

share|improve this answer
1  
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
2  
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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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