Skip to content

Add support for alternate screen

Michael Aaron Murphy requested to merge ftilde:master into master

Created by: ftilde

I went ahead and reimplemented the screen switching escape codes introduced in #66, but followed the suggestions of @jackpot51 in #77 (closed) and implemented a separate wrapper struct AlternateScreen.

Additionally I added two types ToAlternateScreen and ToMainScreen that can be used directly to switch between screens manually.

I tried adding tests similar to how it is done in raw.rs, but switching the screen would often mess up the output of cargo test, so I removed them.

Merge request reports