Add ps to output string

This commit is contained in:
Daniel Imms
2022-10-02 14:25:08 -07:00
parent f2ff3a6a7a
commit c741c13409
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -941,7 +941,7 @@ function sgrTest(): void {
];
const maxNameLength = entries.reduce<number>((p, c) => Math.max(c.name.length, p), 0);
for (const e of entries) {
term.writeln(`\x1b[0m\x1b[${e.ps}m ${e.name.padEnd(maxNameLength, ' ')} - ${testString}\x1b[0m`);
term.writeln(`\x1b[0m\x1b[${e.ps}m ${e.ps.toString().padEnd(2, ' ')} ${e.name.padEnd(maxNameLength, ' ')} - ${testString}\x1b[0m`);
}
}