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

HN Results not appearing #1

Closed
tararoshan opened this issue Sep 7, 2024 · 2 comments
Closed

HN Results not appearing #1

tararoshan opened this issue Sep 7, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@tararoshan
Copy link
Owner

Result from running newspaper (from source code) today was

ESC[42;1mAsk HN: Who is hiring? (September 2024)ESC[0;22m
ESC[35mBay Area Comments (0)ESC[0m, ESC[36mDallas Area Comments (0)ESC[0m
~
~
~

@tararoshan tararoshan added the bug Something isn't working label Sep 7, 2024
@tararoshan
Copy link
Owner Author

Got feedback from @CyrusRoshan and it's a new issue caused by the colors not showing up in the terminal. Seems like a known problem with the color library: fatih/color#216

@tararoshan
Copy link
Owner Author

Found this in the man pages for less (more also follows these conventions, it seems):

       -R or --RAW-CONTROL-CHARS
              Like -r, but only ANSI "color" escape sequences and OSC 8
              hyperlink sequences are output in "raw" form.  Unlike -r, the
              screen appearance is maintained correctly, provided that there
              are no escape sequences in the file other than these types of
              escape sequences.  Color escape sequences are only supported
              when the color is changed within one line, not across lines.  In
              other words, the beginning of each line is assumed to be normal
              (non-colored), regardless of any escape sequences in previous
              lines.  For the purpose of keeping track of screen appearance,
              these escape sequences are assumed to not move the cursor.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant