Sublime Text 3 doesn't support ANSI












0















I installed the SublimeANSI package, I edited the both the Makefile and Python sublime-build file using PackageResourceViewer.

Makefile:



{
"shell_cmd": "make",
"file_regex": "^(..[^:n]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${folder:${project_path:${file_path}}}",
"selector": "source.makefile",
"syntax": "Packages/Makefile/Make Output.sublime-syntax",
"keyfiles": ["Makefile", "makefile"],

/* add target and syntax */
"target": "ansi_color_build",
"syntax": "Packages/ANSIescape/ANSI.tmLanguage",

"variants":
[
{
"name": "Clean",
"shell_cmd": "make clean"
}
]
}


Python:



{
"shell_cmd": "python -u "$file"",
"file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
"selector": "source.python",

"env": {"PYTHONIOENCODING": "utf-8"},

/* add target and syntax */
"target": "ansi_color_build",
"syntax": "Packages/ANSIescape/ANSI.tmLanguage",


"variants":
[
{
"name": "Syntax Check",
"shell_cmd": "python -m py_compile "${file}"",
}
]

}


But, for some reason the output still cannot decode ANSI:



 * Serving Flask app "app" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: on
* Restarting with stat
* Debugger is active!
* Debugger PIN: 782-294-512
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
127.0.0.1 - - [16/Feb/2019 11:15:07] "[37mGET / HTTP/1.1[0m" 200 -









share|improve this question























  • Based on the package description I think it works in editor windows, not in the console. Besides, the screenshot shows that it converts unprintable characters from placeholders. Your console doesn't contain unprintable characters, they are already converted to escape sequences.

    – gronostaj
    Feb 16 at 11:18
















0















I installed the SublimeANSI package, I edited the both the Makefile and Python sublime-build file using PackageResourceViewer.

Makefile:



{
"shell_cmd": "make",
"file_regex": "^(..[^:n]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${folder:${project_path:${file_path}}}",
"selector": "source.makefile",
"syntax": "Packages/Makefile/Make Output.sublime-syntax",
"keyfiles": ["Makefile", "makefile"],

/* add target and syntax */
"target": "ansi_color_build",
"syntax": "Packages/ANSIescape/ANSI.tmLanguage",

"variants":
[
{
"name": "Clean",
"shell_cmd": "make clean"
}
]
}


Python:



{
"shell_cmd": "python -u "$file"",
"file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
"selector": "source.python",

"env": {"PYTHONIOENCODING": "utf-8"},

/* add target and syntax */
"target": "ansi_color_build",
"syntax": "Packages/ANSIescape/ANSI.tmLanguage",


"variants":
[
{
"name": "Syntax Check",
"shell_cmd": "python -m py_compile "${file}"",
}
]

}


But, for some reason the output still cannot decode ANSI:



 * Serving Flask app "app" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: on
* Restarting with stat
* Debugger is active!
* Debugger PIN: 782-294-512
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
127.0.0.1 - - [16/Feb/2019 11:15:07] "[37mGET / HTTP/1.1[0m" 200 -









share|improve this question























  • Based on the package description I think it works in editor windows, not in the console. Besides, the screenshot shows that it converts unprintable characters from placeholders. Your console doesn't contain unprintable characters, they are already converted to escape sequences.

    – gronostaj
    Feb 16 at 11:18














0












0








0








I installed the SublimeANSI package, I edited the both the Makefile and Python sublime-build file using PackageResourceViewer.

Makefile:



{
"shell_cmd": "make",
"file_regex": "^(..[^:n]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${folder:${project_path:${file_path}}}",
"selector": "source.makefile",
"syntax": "Packages/Makefile/Make Output.sublime-syntax",
"keyfiles": ["Makefile", "makefile"],

/* add target and syntax */
"target": "ansi_color_build",
"syntax": "Packages/ANSIescape/ANSI.tmLanguage",

"variants":
[
{
"name": "Clean",
"shell_cmd": "make clean"
}
]
}


Python:



{
"shell_cmd": "python -u "$file"",
"file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
"selector": "source.python",

"env": {"PYTHONIOENCODING": "utf-8"},

/* add target and syntax */
"target": "ansi_color_build",
"syntax": "Packages/ANSIescape/ANSI.tmLanguage",


"variants":
[
{
"name": "Syntax Check",
"shell_cmd": "python -m py_compile "${file}"",
}
]

}


But, for some reason the output still cannot decode ANSI:



 * Serving Flask app "app" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: on
* Restarting with stat
* Debugger is active!
* Debugger PIN: 782-294-512
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
127.0.0.1 - - [16/Feb/2019 11:15:07] "[37mGET / HTTP/1.1[0m" 200 -









share|improve this question














I installed the SublimeANSI package, I edited the both the Makefile and Python sublime-build file using PackageResourceViewer.

Makefile:



{
"shell_cmd": "make",
"file_regex": "^(..[^:n]*):([0-9]+):?([0-9]+)?:? (.*)$",
"working_dir": "${folder:${project_path:${file_path}}}",
"selector": "source.makefile",
"syntax": "Packages/Makefile/Make Output.sublime-syntax",
"keyfiles": ["Makefile", "makefile"],

/* add target and syntax */
"target": "ansi_color_build",
"syntax": "Packages/ANSIescape/ANSI.tmLanguage",

"variants":
[
{
"name": "Clean",
"shell_cmd": "make clean"
}
]
}


Python:



{
"shell_cmd": "python -u "$file"",
"file_regex": "^[ ]*File "(...*?)", line ([0-9]*)",
"selector": "source.python",

"env": {"PYTHONIOENCODING": "utf-8"},

/* add target and syntax */
"target": "ansi_color_build",
"syntax": "Packages/ANSIescape/ANSI.tmLanguage",


"variants":
[
{
"name": "Syntax Check",
"shell_cmd": "python -m py_compile "${file}"",
}
]

}


But, for some reason the output still cannot decode ANSI:



 * Serving Flask app "app" (lazy loading)
* Environment: production
WARNING: Do not use the development server in a production environment.
Use a production WSGI server instead.
* Debug mode: on
* Restarting with stat
* Debugger is active!
* Debugger PIN: 782-294-512
* Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)
127.0.0.1 - - [16/Feb/2019 11:15:07] "[37mGET / HTTP/1.1[0m" 200 -






sublime-text-3 make build






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 16 at 10:16









zafirzaryazafirzarya

1




1













  • Based on the package description I think it works in editor windows, not in the console. Besides, the screenshot shows that it converts unprintable characters from placeholders. Your console doesn't contain unprintable characters, they are already converted to escape sequences.

    – gronostaj
    Feb 16 at 11:18



















  • Based on the package description I think it works in editor windows, not in the console. Besides, the screenshot shows that it converts unprintable characters from placeholders. Your console doesn't contain unprintable characters, they are already converted to escape sequences.

    – gronostaj
    Feb 16 at 11:18

















Based on the package description I think it works in editor windows, not in the console. Besides, the screenshot shows that it converts unprintable characters from placeholders. Your console doesn't contain unprintable characters, they are already converted to escape sequences.

– gronostaj
Feb 16 at 11:18





Based on the package description I think it works in editor windows, not in the console. Besides, the screenshot shows that it converts unprintable characters from placeholders. Your console doesn't contain unprintable characters, they are already converted to escape sequences.

– gronostaj
Feb 16 at 11:18










0






active

oldest

votes












Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1406424%2fsublime-text-3-doesnt-support-ansi%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Super User!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1406424%2fsublime-text-3-doesnt-support-ansi%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

Mangá

 ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕