improve effect and compatibility with normal terminal