3

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

4
  • 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, 2011 at 3:47
  • 2
    Where exactly do you want to type them? In Microsoft Word? In an email?
    – nmat
    Jul 30, 2011 at 3:47
  • I'm under linux terminal(ssh shell), no GUI available.
    – xpbug
    Jul 30, 2011 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, 2013 at 10:01

3 Answers 3

3

Press:

Ctrl+Shif+u

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

5
  • 2
    Note that this is for Linux. Jul 30, 2011 at 4:37
  • It works in my system: Ubuntu 10.10 64 bit using bash.
    – nmat
    Jul 30, 2011 at 4:39
  • Doesn't work in SSH shell.
    – xpbug
    Jul 30, 2011 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, 2011 at 5:14
  • 3
    Ctrl-Shift-U is specific to GTK-based programs (such as GNOME Terminal). It won't work in, for example, PuTTY. Jul 30, 2011 at 10:33
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
3
  • You mean one can only select it one by one under windows?
    – xpbug
    Jul 30, 2011 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, 2011 at 4:04
  • 3
    @berk : The user asked explicitly about Linux, not Windows.
    – jankes
    Jul 30, 2011 at 23:30
1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .