fix terminal functionality. if give it isErr, it should print in red