From 3de526125687668cbe66789f9cd6eff22b7bb012 Mon Sep 17 00:00:00 2001 From: Russell Sim Date: Fri, 6 Oct 2023 14:37:58 +0200 Subject: [PATCH] make area use default cursor writer Make the area use the default area writer so that if the default cursor is set, then its write is used within the area writer. --- area.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/area.go b/area.go index 5b26b5d..6a98e7a 100644 --- a/area.go +++ b/area.go @@ -18,7 +18,7 @@ type Area struct { func NewArea() Area { return Area{ height: 0, - writer: os.Stdout, + writer: cursor.writer, cursor: cursor, cursorPosY: 0, }