15 lines
268 B
TypeScript
15 lines
268 B
TypeScript
import { print } from "./graphics";
|
|
|
|
const lines: string[] = [];
|
|
|
|
export function log(...args: unknown[]) {
|
|
// const line = args.join(" ");
|
|
lines.push(args.join(" "));
|
|
}
|
|
|
|
export function draw_log() {
|
|
for (const line of lines) {
|
|
print(line);
|
|
break;
|
|
}
|
|
}
|