We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3f9be2 commit fe5b05fCopy full SHA for fe5b05f
packages/kittik-shape-rectangle/src/Rectangle.ts
@@ -14,9 +14,7 @@ export class Rectangle extends Shape implements ShapeRenderable {
14
const filler = ' '.repeat(width);
15
16
cursor.moveTo(x1, y1).background(background).foreground(foreground);
17
-
18
for (let y = y1; y <= y2; y++) cursor.write(filler).moveTo(x1, y);
19
20
cursor.moveTo(x1 + (width / 2 - text.length / 2), y1 + height / 2).write(text);
21
}
22
0 commit comments