**Describe the unexpected behaviour**
```
milovidov-desktop :) SET output_format_pretty_row_numbers = 1

SET output_format_pretty_row_numbers = 1

Query id: bb15ca27-5a3c-48ac-814a-a3cfea42deda

Ok.

0 rows in set. Elapsed: 0.000 sec. 

milovidov-desktop :) SELECT 1 UNION ALL SELECT 2

SELECT 1
UNION ALL
SELECT 2

Query id: d940f566-7188-4d17-83d6-8421975791a9

   ┌─1─┐
1. │ 2 │
   └───┘
   ┌─1─┐
1. │ 1 │
   └───┘

2 rows in set. Elapsed: 0.001 sec.
```
#include <sys/ioctl.h>
#if defined(OS_SUNOS)
#  include <sys/termios.h>
#endif
#include <unistd.h>
#include <Processors/Formats/Impl/PrettyBlockOutputFormat.h>
#include <Formats/FormatFactory.h>
#include <IO/WriteBuffer.h>
#include <IO/WriteHelpers.h>
#include <IO/WriteBufferFromString.h>
#include <IO/Operators.h>
#include <Common/UTF8Helpers.h>
namespace DB
{
namespace ErrorCodes
{
}
PrettyBlockOutputFormat::PrettyBlockOutputFormat(
    WriteBuffer & out_, const Block & header_, const FormatSettings & format_settings_, bool mono_block_)
     : IOutputFormat(header_, out_), format_settings(format_settings_), serializations(header_.getSerializations()), mono_block(mono_block_)
{
    struct winsize w;
    if (0 == ioctl(STDOUT_FILENO, TIOCGWINSZ, &w))
        terminal_width = w.ws_col;
}
void PrettyBlockOutputFormat::calculateWidths(