Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ANSI colorings breaks after file autoreload #25

Open
ivan-aksamentov opened this issue Sep 1, 2016 · 0 comments
Open

ANSI colorings breaks after file autoreload #25

ivan-aksamentov opened this issue Sep 1, 2016 · 0 comments

Comments

@ivan-aksamentov
Copy link

ivan-aksamentov commented Sep 1, 2016

Brief:

I use SublimeANSI to review logging output of my programs. Sometimes I want to review logs when program is still running (and is writing to the log file). ANSI coloring breaks every time file is changed externally and reloaded by Sublime.

Version:

ANSIescape v0.1.5 (from package manager)

Steps to reproduce:

  • Open file with ANSI escape sequences in Sublime (e.g. test/ansi_test_file.txt provided in the repository)
  • Switch to ANSI syntax
  • change file externally: open the same file in another text editor (e.g. Notepad or Atom), change (add newline an the top) and save it; or write into this file programmatically
  • Bring Sublime back to focus

Desired behavior:

File contents updates along with ANSI coloring

Observed behavior:

File contents updates, dark ANSI theme is still up, but escape sequences are no longer recognized properly: there are "ESC" signs and colored fragments in random places

Workarounds:

  • Switching to plain text and back fixes the colors, but only until the next refresh
  • "Auto Refresh" package allows for disabling of the default auto refresh, but this defeats the purpose of real-time logging. Also it is tedious to do so for every file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant