render multiple lines

This commit is contained in:
Mitchell Hashimoto
2022-04-19 08:42:37 -07:00
parent 81d8ca5b9c
commit e9661fa55e
3 changed files with 9 additions and 1 deletions

View File

@@ -89,7 +89,7 @@ pub fn create(alloc: Allocator) !*Window {
// Create our terminal
var term = Terminal.init(grid.size.columns, grid.size.rows);
errdefer term.deinit(alloc);
try term.append(alloc, "hello!");
try term.append(alloc, "hello!\r\nworld!");
self.* = .{
.window = window,