docs: Update README & TUI

This commit is contained in:
Ting-Jun Wang 2021-04-24 22:09:12 +08:00
parent e356e87472
commit e8cc0b6503
Signed by: snsd0805
GPG Key ID: 8DB0D22BC1217D33
2 changed files with 19 additions and 5 deletions

View File

@ -10,10 +10,23 @@ It just a practice for npyscreen, this respository may not update any more.
## Usage ## Usage
`python main.py` - Change Language Settings: `vim config.json`
- You can find Language Code in [ISO-639-1](https://en.wikipedia.org/wiki/ISO_639-1) or [Google Support](https://cloud.google.com/translate/docs/languages) or `LanguageCode.csv`
```
{
"inputLanguage": "en",
"outputLanguage": "zh-TW"
}
```
- Start
- `python main.py`
## Controls ## Controls
- Send Request: `ALT + ENTER` - Send Request: `ALT + ENTER`
- Delete all input: `CTRL + D` - Delete all input: `CTRL + D`
- Exit: `Ctrl + Q` - Exit: `Ctrl + Q`
- Select Language: `Ctrl + S`
- Select other Widget: `TAB`/`Shift+TAB`
- Select: `ENTER`

View File

@ -53,9 +53,10 @@ class MainForm(npyscreen.FormBaseNew):
It just a practice for npyscreen, this respository may not update any more. It just a practice for npyscreen, this respository may not update any more.
- ^Q : quit - ^Q : Quit
- ALT + ENTER : search - ALT + ENTER : Search
- CTRL + D : delete all input - CTRL + D : Delete all input
- CTRL + S : Select Language
''', ''',
editable=False editable=False
) )