Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Screen clear problem. #98

Closed
gooker opened this issue May 23, 2021 · 4 comments
Closed

Screen clear problem. #98

gooker opened this issue May 23, 2021 · 4 comments

Comments

@gooker
Copy link

gooker commented May 23, 2021

  1. shell cmd "clear" / shortcut "ctrl+l" ,
    can't :"clear screen and move cursor to top-left corner control"

    (in top,send"enter"/q refresh or quit also have some problem)
    GIF

  2. c language : printf("\033[2J");
    can't clear screen;

@kingToolbox
Copy link
Owner

This clear issue is a bit similar to #61 , and I failed to reproduce again. Can you tell me your server system name and version number printed by the command lsb_release -a? Thank you.

In your screen recording, I noticed that you did not turn on the Mode - Word Wrap, which caused only part of the text to be displayed on the screen when the cursor was asked to move to the end of the long line. This only needs to turn on Word Wrap to avoid this problem.

In shell, please use echo -e "\033[2J" to clear the screen, prinft of c language does not work for shell.

@gooker
Copy link
Author

gooker commented May 24, 2021

This clear issue is a bit similar to #61 , and I failed to reproduce again. Can you tell me your server system name and version number printed by the command lsb_release -a? Thank you.

In your screen recording, I noticed that you did not turn on the Mode - Word Wrap, which caused only part of the text to be displayed on the screen when the cursor was asked to move to the end of the long line. This only needs to turn on Word Wrap to avoid this problem.

In shell, please use echo -e "\033[2J" to clear the screen, prinft of c language does not work for shell.

my pc is win10, linux server is centos7.3 64bit (kernel 3.10.0),vmware 16.1.2.

echo -e "\033[2J"
20210524201432
"

@gooker
Copy link
Author

gooker commented May 25, 2021

turn on the Mode - Word Wrap, everything is ok.

@gooker gooker closed this as completed May 25, 2021
@kingToolbox
Copy link
Owner

Thank you, I will try to reproduce clear screen bug in the centos7.3 64bit. If there is a problem, I will fix it, but this work will be done after the version 2.2.0 is released. It is expected to be in August and September.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants