diff --git a/coloring/ref_table.nu b/coloring/ref_table.nu index 11282bb..7e97aca 100644 --- a/coloring/ref_table.nu +++ b/coloring/ref_table.nu @@ -21,11 +21,10 @@ $"($row_header)($row_data)($nl)($nl)" # This is the meat of the script that prints the little squares of color seq 0 6 | each { |row_idx| let r = ($"($row_idx) * 36 + 16" | math eval) - let row_header = (echo $r | str from -d 0 | str lpad -c ' ' -l 4) + let row_header = (echo $r | into string -d 0 | str lpad -c ' ' -l 4) let row_data = (seq 0 35 | each { |row| - let val = ($"($r + $row)" | math eval | str from -d 0) + let val = ($"($r + $row)" | math eval | into string -d 0) $"($ansi_bg)($val)m (ansi -e 'm') " } | str collect) $"($row_header) ($row_data)($nl)($nl)" } | str collect - diff --git a/stdlib_candidate/print.nu b/stdlib_candidate/print.nu index bb22fec..a17eb0a 100644 --- a/stdlib_candidate/print.nu +++ b/stdlib_candidate/print.nu @@ -46,7 +46,7 @@ def print2 [ # A print command that concatenates arguments together with an optional separator. # This print command will also concatenate tables like [1 2 3] as well as most other primitives -# since the str from command has been updated with wider support. +# since the into string command has been updated with wider support. def print3 [ --separator(-s):any # Optional separator (not yet flagged as optional?) --flat(-f) # If tables are found, flatten them