linux GNU screen Clear-Host
See original GitHub issueSteps to reproduce
screen -S test
pwsh
clear-host
Expected behavior
host should clear, with command prompt starting at top of terminal.
Actual behavior
host goes blank, no command prompt. Pressing ``ctrl+a+esc`` you can scroll up to see original commands.
Environment data
Name Value
---- -----
PSVersion 6.2.1
PSEdition Core
GitCommitId 6.2.1
OS Linux 4.15.0-47-generic #50-Ubuntu SMP Wed Mar 13 10:44:52 UTC 2019
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0
I know that clear-host
simply calls /usr/bin/clear
, but for some reason pwsh doesn’t show command prompt after running clear
while in screen
.
I haven’t found a way to workaround as of yet, either.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How do I clear the GNU screen command screen?
Duplicate. Pressing Ctrl a + C; clear; Pressing Ctrl a : and entering the command scrollback 0 .
Read more >How to prevent GNU screen from clearing the screen when ...
By default, screen will clear the screen of its host terminal to display its own emulated terminal and where available will use the...
Read more >GNU-Screen doesn't automatically clear the terminal after ...
As shown in the following screenshot, after I detaching from a gnu-screen session, the screen isn't cleared, so it's messed up.
Read more >GNU screen: how to clear scrollback and screen at once
I'm looking for a way to clear both the scrollback and the visible screen at once in GNU screen. At the moment I...
Read more >`cls` in PowerShell and cmd.exe doesn't fully clear the ...
I would expect clear-host to fully clear the screen, and then [3J to fully clear scrollback, so [2J should be redundant? 9
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yes, as soon as I finish my current project, I’ll update, and notate results.
This issue has been marked as fixed and has not had any activity for 1 day. It has been closed for housekeeping purposes.