We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71c89c3 commit ecdf5cdCopy full SHA for ecdf5cd
CHANGELOG.md
@@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
12
13
### Changed
14
- Update .gitattributes so we have consistent line endings
15
+- Test runner detects console width if possible, allowing variable width from 80-132 chars
16
17
### Deprecated
18
exe/arduino_ci.rb
@@ -3,8 +3,14 @@
3
require 'set'
4
require 'pathname'
5
require 'optparse'
6
+require 'io/console'
7
-WIDTH = 80
8
+# be flexible between 80 and 132 cols of output
9
+WIDTH = begin
10
+ [132, [80, IO::console.winsize[1] - 2].max].min
11
+rescue NoMethodError
+ 80
+end
VAR_CUSTOM_INIT_SCRIPT = "CUSTOM_INIT_SCRIPT".freeze
VAR_USE_SUBDIR = "USE_SUBDIR".freeze
VAR_EXPECT_EXAMPLES = "EXPECT_EXAMPLES".freeze
0 commit comments