Fixed the flicker issue

Need to optimize the client display some more, there are some ansi quirk
as well need to investigate.