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

[BUG] dsu version 2.4.4 #74

Closed
chibeepatag opened this issue Jan 31, 2024 · 5 comments
Closed

[BUG] dsu version 2.4.4 #74

chibeepatag opened this issue Jan 31, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@chibeepatag
Copy link

Escape characters show when I do dsu browse

To Reproduce
Steps to reproduce the behavior:

  1. Do dsu browse w

Expected behavior
Escape characters should not show. Text should appear as you do dsu list t

Screenshot 2024-01-31 at 8 36 36 PM

Desktop (please complete the following information):

  • dsu version 2.4.4
  • Ruby version ruby 3.1.2p20
  • OS: macOS 13.4

Additional context
Terminal: iTerm
also tried in the stock terminal of mac with zsh

@chibeepatag chibeepatag added the bug Something isn't working label Jan 31, 2024
@gangelo
Copy link
Owner

gangelo commented Jan 31, 2024

Can you try this to see if the problem replicates itself?:
dsu theme show default | less

Then, try this to see if the problem rectifies itself?:
dsu theme show default | less -R

@gangelo
Copy link
Owner

gangelo commented Jan 31, 2024

Thank you chibeepatag. I think the problem may have been that you might have typed -R while browsing your entries using dsu browse w? -R will tell less to toggle escape sequencing on/off. If this behavior is persistent, can you check to see if you've enabled less to always turn escape sequences off (e.g. export LESS='-R') in any of your env files (like .bashrc or .zshrc)? This will cause less to always turn escaping off. If you want to keep that setting, just type -R while browsing your entries and all should be well. Let me know.

@chibeepatag
Copy link
Author

dsu browse w then -R does fix it. Thanks!

Here are some screencaps in case you want to look into this further. I'm good with doing -R any case. :-)
dsu theme show default
Screenshot 2024-02-01 at 5 27 32 AM

dsu browse w
Screenshot 2024-02-01 at 5 29 23 AM

dsu browse w --> then -R
Screenshot 2024-02-01 at 5 30 10 AM

less somefile
Screenshot 2024-02-01 at 5 34 38 AM

@gangelo
Copy link
Owner

gangelo commented Jan 31, 2024

dsu browse w then -R does fix it. Thanks!

Thanks Celine, I'll continue to look into this; however, I am of the opinion that you may have less settings in your environment forcing the behavior. If you don't mind, I am going to close this out, but I will continue to look into whether or not this is something I can remedy on our end.

@gangelo
Copy link
Owner

gangelo commented Jan 31, 2024

Closing this as user environment-specific. Will keep an eye out for recurring complaints and look into whether or not this is something we can mitigate on our end.

@gangelo gangelo closed this as completed Jan 31, 2024
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

2 participants