Closed StreetStrider closed 9 years ago
@StreetStrider it looks that height of terminal gets resolved to 0
, and that makes repeat
to be called with -1
.
Still it's only v0.3 where this bug may occur. It's no longer the case with v1 (current version) where reset
no longer uses repeat
. So best would be if you just upgrade to use cli-color at v1. Mind there are some API changes, but nothing that can't be quickly patched
@medikoo, yes, I know migration would be easy. I'll update and come back with results. Thanks.
've updated flawlessly. Everything works fine. :+1: The issue most probably was caused by redirecting output to file (which is forever
do). That caused incorrect terminal size resolution. Thanks for help.
Good day. I have strange error which can only be reproduced in special environment. I've tried to determine the problem myself, but I do not know
cli-color
andes5-ext
packages well enough.Here's the problem: My project uses
console-ultimate
package of my own, depends oncli-color
(depends ones5-ext
). Everything works fine. But when I start project inforever
I have constraint error:console-ultimate
extensively usescli-color
, but the only feature fails is.clear
, I workaround it by removingvar reset = require('cli-color').reset
in.clear
.This issue reproduces on remote machines with Ubuntu and Centos.
Do you have any ideas why this code fails? Maybe there's conflict in prototypes?