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:
parent
906f11d08f
commit
f23afc9f98
1 changed files with 8 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue