Вопрос по – Цветовые коды ANSI в VIM

34

Error: User Rate Limit Exceeded

[2012-05-14 18:00:02] ^[[0mINF: -- Starting update script --^[[0m
[2012-05-14 18:00:29] ^[[91mERR: Improper date, entry being ignored.^[[0m

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceeded

Error: User Rate Limit Exceededsuperuser.com/questions/358409/… Ciro Santilli 新疆改造中心 六四事件 法轮功

Ваш Ответ

4   ответа
45

Error: User Rate Limit Exceeded

less -R
Error: User Rate Limit Exceeded Blake
4

3

AnsiEscError: User Rate Limit ExceededlotsError: User Rate Limit ExceededError: User Rate Limit ExceededError: User Rate Limit Exceeded\033[31m red \033[0m; what is AnsiEscError: User Rate Limit Exceeded\033[... unrecognized ? It seems that AnsiEscError: User Rate Limit Exceeded

Error: User Rate Limit ExceededAnsiEscError: User Rate Limit Exceeded

Error: User Rate Limit ExceededTERM xterm-256colorError: User Rate Limit Exceeded

#!/bin/bash
# test https://en.wikipedia.org/wiki/ANSI_escape_code#Colors from gnu ls and grep

mkdir bluedir  2> /dev/null
ls -d --color=always  bluedir  > ls.out

echo red-hot | grep --color=always  red  > grep.out

od -c ls.out
# 0000000  033   [   0   m 033   [   3   4   m   b   l   u   e   d   i   r
# 0000020  033   [   0   m  \n                                            
# Vim 7.3 :AnsiEsc "bluedir" blue, \033[0m as is
# mvim 8.0 :AnsiEsc "bluedir" works

od -c grep.out
# 0000000  033   [   0   1   ;   3   1   m 033   [   K   r   e   d 033   [
# 0000020    m 033   [   K   -   h   o   t  \n                            
# both Vim and mvim display as is

Error: User Rate Limit ExceededError: User Rate Limit Exceeded .

33

before

:AnsiEsc<CR>

after

Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded91mError: User Rate Limit Exceeded93mError: User Rate Limit Exceeded31mError: User Rate Limit Exceeded33mError: User Rate Limit Exceeded Blake
Error: User Rate Limit Exceeded
Error: User Rate Limit Exceeded
Error: User Rate Limit ExceededImproved AnsiEsc (github).

Похожие вопросы