Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
dtach eats output of prev. commands #6
Dtach doesn't really understand the terminal emulator that you're using. It doesn't filter the output from the host at all.
Because of this the 'alternate screen' that 'screen' and 'tmux' can use to preserve the previous state of the terminal is not available; it may be used by the program that you run using dtach.
Now IF your problem is that you're running a text editor under dtach and the text editor would normally use the alternate screen but the screen is getting cleared with dtach. I may have a solution for you.
The second item in my PR #5 will let you disable this clear screen.