When I pass "\x1b[" to anstream's StripStr::strip_next (and consume the iterator) , then call it again with "38;", the "38;" is not stripped as I would expect but is returned from the iterator. Printing out the StripStr shows that it is in the Ground state after the first call.
When I use StripBytes instead, the "38;" is stripped as I expected.
When I pass
"\x1b["to anstream'sStripStr::strip_next(and consume the iterator) , then call it again with"38;", the"38;"is not stripped as I would expect but is returned from the iterator. Printing out theStripStrshows that it is in theGroundstate after the first call.When I use
StripBytesinstead, the"38;"is stripped as I expected.