|
|
|
@ -34,12 +34,16 @@ namespace llarp
|
|
|
|
|
{
|
|
|
|
|
if(buff.base + idx == buff.cur)
|
|
|
|
|
{
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
|
printf("%c[1;31m", 27);
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
printf("%.2x", buff.base[idx]);
|
|
|
|
|
if(buff.base + idx == buff.cur)
|
|
|
|
|
{
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
|
printf("%c[0;0m", 27);
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
++idx;
|
|
|
|
|
if(idx % align == 0)
|
|
|
|
@ -59,7 +63,9 @@ namespace llarp
|
|
|
|
|
{
|
|
|
|
|
if(buff.base + idx == buff.cur)
|
|
|
|
|
{
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
|
printf("%c[1;31m", 27);
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
if(std::isprint(buff.base[idx]))
|
|
|
|
|
{
|
|
|
|
@ -71,7 +77,9 @@ namespace llarp
|
|
|
|
|
}
|
|
|
|
|
if(buff.base + idx == buff.cur)
|
|
|
|
|
{
|
|
|
|
|
#ifndef _WIN32
|
|
|
|
|
printf("%c[0;0m", 27);
|
|
|
|
|
#endif
|
|
|
|
|
}
|
|
|
|
|
++idx;
|
|
|
|
|
if(idx % align == 0)
|
|
|
|
|