mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-26 07:44:29 +00:00
Honor utf8 in diagonal graph lines ##graph
This commit is contained in:
parent
aa50013606
commit
143a6a7c5a
@ -329,7 +329,27 @@ loop:
|
||||
if (!(x == x2 && y == y2)) {
|
||||
int i = (*chizzle == '_' && sy < 0) ? 1 : 0;
|
||||
if (G(x, y - i)) {
|
||||
W(chizzle);
|
||||
if (useUtf8) {
|
||||
switch (*chizzle) {
|
||||
case '/':
|
||||
W("╯");
|
||||
break;
|
||||
case '\\':
|
||||
W("└");
|
||||
break;
|
||||
case '|':
|
||||
W("│");
|
||||
break;
|
||||
case '_':
|
||||
W("─");
|
||||
break;
|
||||
default:
|
||||
W("?");
|
||||
break;
|
||||
}
|
||||
} else {
|
||||
W(chizzle);
|
||||
}
|
||||
}
|
||||
goto loop;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user