RenderKid icon indicating copy to clipboard operation
RenderKid copied to clipboard

Configure default terminalWidth for non TTY environment

Open abourdin opened this issue 3 years ago • 4 comments

Here in the code, the terminal width is defaulted to 80 for non-TTY terminals:

https://github.com/AriaMinaei/RenderKid/blob/e8c9744ac499a09219413177f6d45a24c4d346b5/src/tools.coffee#L83

This is causing lines to be cut when using in a context where Node is run using terminal redirection (WebStorm run console, AWS CloudWatch logs, ...)

Would it be possible to introduce an environment variable or a way to change this default value? If yes, I can open a pull-request for that. Environment variable could be something like RENDERKID_DEFAULT_TERMINAL_WIDTH.

abourdin avatar Nov 17 '20 14:11 abourdin