Repository: tarkah/tickrs (language: rust)

Issue:
Cursor showing in Alacritty for WSL2 in Windows
Cursor is showing in bottom left when using Alacritty for Windows with WSL2. This problem does not occur when using Powershell from Alacritty

![image](https://user-images.githubusercontent.com/10239377/108436060-8f514800-71ff-11eb-8d23-b2c0e3737ebb.png)



Discussion / hints:

Fix patch:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index a23a3b0..9dca7cc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -29,6 +29,7 @@ and `Removed`.
 ### Fixed
 
 - Fixed panic when width of terminal was too small on main stock screen ([4cc00d0](https://github.com/tarkah/tickrs/commit/4cc00d052c4bfff993587f1342086498ee8b2766))
+- Fix bug where cursor icon still shows in some terminals such as WSL2 on Windows with Alacritty ([#79])
 
 ## [0.12.0] - 2021-02-17
 
@@ -114,3 +115,4 @@ and `Removed`.
 [#69]: https://github.com/tarkah/tickrs/pull/69
 [#75]: https://github.com/tarkah/tickrs/pull/75
 [#76]: https://github.com/tarkah/tickrs/pull/76
+[#79]: https://github.com/tarkah/tickrs/pull/79
\ No newline at end of file
diff --git a/src/main.rs b/src/main.rs
index caff729..ff959d0 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -204,8 +204,8 @@ fn main() {
 fn setup_terminal() {
     let mut stdout = io::stdout();
 
-    execute!(stdout, terminal::EnterAlternateScreen).unwrap();
     execute!(stdout, cursor::Hide).unwrap();
+    execute!(stdout, terminal::EnterAlternateScreen).unwrap();
 
     execute!(stdout, terminal::Clear(terminal::ClearType::All)).unwrap();
 


Test patch: