Re: [netsniff-ng] [PATCH] netsniff-ng: Fix color breaking in less mode

2015-05-05 Thread Tobias Klauser
On 2015-05-05 at 09:44:57 +0200, Vadim Kochan wrote: > From: Vadim Kochan > > Automatic new line indentation can break terminal > ESC color sequence by inserting new line within it. > > Fixed by considering that color ESC sequence is not closed > by 'm' and only after it is closed - print new l

[netsniff-ng] [PATCH] netsniff-ng: Fix color breaking in less mode

2015-05-05 Thread Vadim Kochan
From: Vadim Kochan Automatic new line indentation can break terminal ESC color sequence by inserting new line within it. Fixed by considering that color ESC sequence is not closed by 'm' and only after it is closed - print new line with spaces. Signed-off-by: Vadim Kochan --- tprintf.c | 12 +