Width of console output
- Dominant language
- JavaScript
- Stars
- 12.2k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
Hi. The writelns/oklns/errorlns methods on grunt.log all output text that wraps at 80 characters. It's common these days to have console/terminal windows with much larger widths. To make best use of people's console windows, it would be really useful if these methods used the actual width of the console/terminal instead of always wrapping at 80 characters.
node.js provides the process.stdout.getWindowSize() method to find the console width.
It returns an array with the width and height of the console:
``` shell
>node
> process.stdout.getWindowSize();
[ 150, 59 ]
```
process.stdout.getWindowSize() even works on Windows!
Contributor guide
Research direction
Start by locating the grunt.log writelns, okl n s, and errorlns methods mentioned in the issue, then review how they currently wrap output at 80 characters. Use process.stdout.getWindowSize() as the stated source for the terminal width, and consider the work complete when these methods wrap according to the actual console width.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, node.js
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100