public TerminalSize withColumns ( int columns ) { if ( this . columns == columns ) { return this ; } if ( columns == 0 && this . rows == 0 ) { return ZERO ; } return new TerminalSize ( columns , this . rows ) ; }
Creates a new size based on this size but with a different width