Use light box drawing symbols

This commit is contained in:
Eelco Dolstra 2020-01-31 14:06:26 +01:00
parent 678301072f
commit e91f32f2b5
3 changed files with 6 additions and 6 deletions

View file

@ -459,9 +459,9 @@ void ignoreException();
/* Tree formatting. */ /* Tree formatting. */
constexpr char treeConn[] = "╠═══"; constexpr char treeConn[] = "├───";
constexpr char treeLast[] = "╚═══"; constexpr char treeLast[] = "└───";
constexpr char treeLine[] = " "; constexpr char treeLine[] = " ";
constexpr char treeNull[] = " "; constexpr char treeNull[] = " ";

View file

@ -152,7 +152,7 @@ struct CmdWhyDepends : SourceExprCommand
std::cout << fmt("%s%s%s%s" ANSI_NORMAL "\n", std::cout << fmt("%s%s%s%s" ANSI_NORMAL "\n",
firstPad, firstPad,
node.visited ? "\e[38;5;244m" : "", node.visited ? "\e[38;5;244m" : "",
firstPad != "" ? "=> " : "", firstPad != "" ? " " : "",
pathS); pathS);
if (node.path == dependencyPath && !all if (node.path == dependencyPath && !all

View file

@ -6,7 +6,7 @@ drvPath=$(nix-instantiate dependencies.nix)
echo "derivation is $drvPath" echo "derivation is $drvPath"
nix-store -q --tree "$drvPath" | grep '║ ╚═══.*builder1.sh' nix-store -q --tree "$drvPath" | grep '│ └───.*builder1.sh'
# Test Graphviz graph generation. # Test Graphviz graph generation.
nix-store -q --graph "$drvPath" > $TEST_ROOT/graph nix-store -q --graph "$drvPath" > $TEST_ROOT/graph
@ -24,7 +24,7 @@ if test -n "$dot"; then
$dot < $TEST_ROOT/graph $dot < $TEST_ROOT/graph
fi fi
nix-store -q --tree "$outPath" | grep '═══.*dependencies-input-2' nix-store -q --tree "$outPath" | grep '───.*dependencies-input-2'
echo "output path is $outPath" echo "output path is $outPath"