Where is xterm Equivalent sequences like "Esc | 112 m"?

When implementing xterm-256 colors in ConEmu, I found some Escape sequences unknown to me (used by Vim), for example

Esc | 7 m Esc | 15 m Esc | 112 m 

From Vim sources, I understand that these codes are used to change bold or inverse attributes, but I can not find any documents about them.

Are there any specifications for Esc | N m sequences Esc | N m Esc | N m ? They were not mentioned here .

+6
source share
1 answer

I believe these are internal vim codes for internal processing: first set \033| tagged

 /* * GUI pseudo term-cap. */ 

and AFAIR are processed in gui.c or gui_*.c , the second set is marked

 /* * These codes are valid for the pc video. The entries that start with ESC | * are translated into conio calls in os_msdos.c. Default for MSDOS. */ 

the third set is marked

 /* * These codes are valid for the Win32 Console . The entries that start with * ESC | are translated into console calls in os_win32.c. The function keys * are also translated in os_win32.c. */ 

(I'm talking about builtin_termcaps array ). Further references: only in the update_tcap function , there are no direct links that they are processed by any other function, but it is unlikely that this is something else (not familiar with the pseudo-thermal code processing code). With the exception of term.c , this is only visible directly (i.e., Grep finds \033| ) in screen.c (twice) and gui.c (once).

And by the way, I was not able to see this code in the output of vim running in a login session using env TERM=xterm vim {args} .

+5
source

All Articles