Update README.md

This commit is contained in:
Timon 2018-07-14 12:14:35 +02:00 committed by GitHub
parent fa907fbbb1
commit 4ff5b30aeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -287,14 +287,19 @@ And if there are any changes that affect previous versions I will [describe](lin
I still have some things in mind to implement. I still have some things in mind to implement.
- Handling mouse events - Handling mouse events
I want to be able to do something based on the clicks the use has done with is mouse. I want to be able to do something based on the clicks the use has done with is mouse.
- Handling key comn - Handling key events
I want to be able read key combination inputs. I want to be able read key combination inputs.
- reading from the console. - reading from the console.
I want to be able to read the input of the console. I want to be able to read the input of the console.
- Error handling - Error handling
Currently I am not doing that mutch with returend errors. This is bad since I suspect that everyting is working. I want to mange this better. When you build this crate you will see the warnings about not used return values. This is what needs to be improved. Currently I am not doing that mutch with returend errors. This is bad since I suspect that everyting is working. I want to mange this better. When you build this crate you will see the warnings about not used return values. This is what needs to be improved.
- Tests - Tests
Also I want to have tests for this crate, and yes maybe a little late :). But I find it difficult to test some functionalities because how would you ever test if the screen is indeed int alternate, raw modes or how would you ever test if the terminal cursor is moved certainly. Also I want to have tests for this crate, and yes maybe a little late :). But I find it difficult to test some functionalities because how would you ever test if the screen is indeed int alternate, raw modes or how would you ever test if the terminal cursor is moved certainly.
## Contributing ## Contributing
@ -302,12 +307,17 @@ I still have some things in mind to implement.
If you would like to contribute to Crossterm, than please design the code as it is now. If you would like to contribute to Crossterm, than please design the code as it is now.
For example a module like cursor has the following file stucture: For example a module like cursor has the following file stucture:
- mod.rs - mod.rs
This file contains some trait, in this case `ITerminalCursor`, for other modules to implement. So that it can work at a specific platform. This file contains some trait, in this case `ITerminalCursor`, for other modules to implement. So that it can work at a specific platform.
- cursor.rs - cursor.rs
The end user will call this module to access the cursor functionalities. This module will deside withch implementation to use based on the current platform. The end user will call this module to access the cursor functionalities. This module will deside withch implementation to use based on the current platform.
- winapi_cursor - winapi_cursor
This is the cursor trait (located in mod.rs) implementation with winapi. This is the cursor trait (located in mod.rs) implementation with winapi.
- ansi_cursor - ansi_cursor
This is the cursor trait (located in mod.rs) implementation with ANSI escape codes. This is the cursor trait (located in mod.rs) implementation with ANSI escape codes.
The above structure is the same for the terminal, color, manager modules. The above structure is the same for the terminal, color, manager modules.