question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

linux GNU screen Clear-Host

See original GitHub issue

Steps 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:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
MaynardMinercommented, Oct 2, 2019

Yes, as soon as I finish my current project, I’ll update, and notate results.

0reactions
msftbot[bot]commented, Nov 22, 2019

This issue has been marked as fixed and has not had any activity for 1 day. It has been closed for housekeeping purposes.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found