diff --git a/render/cursor.go b/render/cursor.go index 9cd89b9..120953c 100644 --- a/render/cursor.go +++ b/render/cursor.go @@ -64,6 +64,10 @@ func deltaMarkup(fromCur, toCur Cursor) string { /* remove effects */ + if from.Bold && !to.Bold { + out += "\033[22m" + } + if from.Faint && !to.Faint { out += "\033[22m" } @@ -78,6 +82,10 @@ func deltaMarkup(fromCur, toCur Cursor) string { /* add effects */ + if !from.Bold && to.Bold { + out += "\033[1m" + } + if !from.Faint && to.Faint { out += "\033[2m" }