kingToolbox / kingToolbox/WindTerm

Linux Screen Command

Open
#2,171 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
32.3k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

I've actually experienced this for quite a long time, but because I thought this bug had been known before and I thought it would be updated in the latest update, but apparently not at all.

So the case is when I use the [screen](https://man7.org/linux/man-pages/man1/screen.1.html) command then do detach mode **ctrl a+d** then do commands like **htop** and other normal commands, suddenly the text here is all messed up. The solution was that I had to disconnect the SSH session, then reconnect. I have to do this every time I use the **screen** command.

If you want to try please follow these steps
1. Make sure the "screen" command has been installed previously
2. Try running "screen -R mysession"
3. Then run "ctrl a+d"
4. Run other commands such as nano, vim, htop, and so on

Here is the pictures with before and after use screen in WindTerm.

![Screenshot_6](https://github.com/kingToolbox/WindTerm/assets/61914261/748d84ba-e27c-43a0-9cb9-6fbb755aa062)
![Screenshot_7](https://github.com/kingToolbox/WindTerm/assets/61914261/44005a14-3e5d-4a44-9a57-62d82d5bfea9)
![Screenshot_8](https://github.com/kingToolbox/WindTerm/assets/61914261/629ca3e6-2bc1-48a6-b417-261fba8fd507)

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the issue in WindTerm by running `screen -R mysession`, detaching with Ctrl+A+D, and then launching commands such as nano, vim, or htop. Compare the terminal display before and after detaching, using the screenshots and the SSH disconnect/reconnect workaround as reference. Done means normal command output remains correctly rendered without reconnecting the SSH session.

Written by the indexing model from the issue text.

Assessment

Tech stack
c, linux, shell
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.