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.

More specifically, in Vim if I press escape twice (and under some other circumstances too) I get this character appearing:

http://www.fileformat.info/info/unicode/char/1b/index.htm

It can be replicated by typing echo, then Ctrl-V, then escape

Here's what it looks like:

terminal output

I've tried changing the font and TERM setting, neither of which make a difference. No other terminals I've tried (xterm, urxvt, that KDE console) have the same behaviour.

What I'd like to know is whether this is a bug or intended behaviour, and if there's any workarounds

share|improve this question
    
On a related note, for anyone who is having the same issue with Vim, the cause is the visualbell setting. Placing set novisualbell in the vimrc seems to sort it –  benwh Sep 3 '12 at 22:45

1 Answer 1

up vote 2 down vote accepted

It's intended behavior. No typeface provides a glyph for that codepoint, so the font engine generates the default "codepoint-in-a-box" glyph.

share|improve this answer
1  
So the intended behaviour of all of the other terminal applications is to suppress it? –  benwh Sep 3 '12 at 10:40
1  
They use a different font engine. –  Ignacio Vazquez-Abrams Sep 3 '12 at 10:44
1  
@benwh: I'm not sure if there's even an "intended behavior" for this specific character. ESC is the first byte of all "escape sequences" that control the terminal's behavior (move cursor, set colors, etc) – so technically, when a program outputs a bare ESC, the terminal sees it as an invalid escape sequence and can choose to print it out, or to discard it. –  grawity Sep 3 '12 at 10:47
1  
how come all of the other terminal emulators know what to do with it? –  Quinn Wilson Nov 29 at 22:48
    
@QuinnWilson: They don't. They simply don't display anything since that's the behavior of their font engines. –  Ignacio Vazquez-Abrams Nov 29 at 22:51

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.