typo-eq 0.1.1

Typo-eq is a typing training app for other languages. All it needs is a dictionary for words and their translations.
Documentation
1
2
3
4
5
6
7
8
9
use crossterm::terminal;

pub fn term_center() -> (u16, u16) {
    let (width, height) = terminal::size()
        .expect("Could not get terminal window size");
    let x = width / 2;
    let y = height / 2;
    (x, y)
}