minicrossterm/UPGRADE Manual

25 lines
678 B
Plaintext
Raw Normal View History

2018-05-20 22:31:49 +10:00
Upgrade crossterm 0.2 to 0.2.1
Namespaces:
2018-06-04 16:32:21 +10:00
I have changed the namespaces. I found the namsespaces to long so I have shortened them like the following:
2018-05-20 22:31:49 +10:00
2018-06-04 15:56:11 +10:00
Old: crossterm::crossterm_style
2018-05-20 22:31:49 +10:00
New: crossterm::style
2018-06-04 15:56:11 +10:00
Old: crossterm::crossterm_terminal
2018-05-20 22:31:49 +10:00
New: crossterm::terminal
2018-06-04 15:56:11 +10:00
Old: crossterm::crossterm_cursor
2018-05-20 22:31:49 +10:00
New: crossterm::cursor
Method names that changed [Issue 4](https://github.com/TimonPost/crossterm/issues/4):
Old: crossterm::crossterm_cursor::get();
New: use crossterm::cursor::cursor();
Old: crossterm::crossterm_terminal::get();
New: use crossterm::terminal::terminal();
Old: crossterm::crossterm_style::color::get();
New: use crossterm::style::color::color();