You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in the output method is comparing the screen width with each formated line of the output without ripping the formatting of. What I mean is, when calculating the length of a line which has colorful text, it takes the escape sequences as if it was part of the line. For example, the header of the output select * from media_types, is considered to be
Activity
amjith commentedon Aug 22, 2020
I'm not able to reproduce this, can you tell me what pager you're using?
You can check the env var $PAGER or $LESS in your terminal.
I presume you're using linux, if you're on windows, you might want to install less.exe and use that as your pager.
FreddieOliveira commentedon Aug 22, 2020
Hey @amjith, thanks for the response. I'm on Linux using less as pager. What's causing the problem is the fact that this line
litecli/litecli/main.py
Line 648 in 11c87db
in the
outputmethod is comparing the screen width with each formated line of the output without ripping the formatting of. What I mean is, when calculating the length of a line which has colorful text, it takes the escape sequences as if it was part of the line. For example, the header of the outputselect * from media_types, is considered to beinstead of simply
To check that, add
print(bytearray(line, 'utf-8'))right after the for loop, run the program and run a command with colorful output: