1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

eh no more escapes

This commit is contained in:
despair 2018-11-20 10:00:43 -06:00
parent 906f11d08f
commit f23afc9f98

View file

@ -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)