docs: Update README & TUI
This commit is contained in:
parent
e356e87472
commit
e8cc0b6503
17
README.md
17
README.md
@ -10,10 +10,23 @@ It just a practice for npyscreen, this respository may not update any more.
|
||||
|
||||
## 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
|
||||
|
||||
- Send Request: `ALT + ENTER`
|
||||
- Delete all input: `CTRL + D`
|
||||
- Exit: `Ctrl + Q`
|
||||
- Exit: `Ctrl + Q`
|
||||
- Select Language: `Ctrl + S`
|
||||
- Select other Widget: `TAB`/`Shift+TAB`
|
||||
- Select: `ENTER`
|
||||
|
||||
@ -53,9 +53,10 @@ class MainForm(npyscreen.FormBaseNew):
|
||||
|
||||
It just a practice for npyscreen, this respository may not update any more.
|
||||
|
||||
- ^Q : quit
|
||||
- ALT + ENTER : search
|
||||
- CTRL + D : delete all input
|
||||
- ^Q : Quit
|
||||
- ALT + ENTER : Search
|
||||
- CTRL + D : Delete all input
|
||||
- CTRL + S : Select Language
|
||||
''',
|
||||
editable=False
|
||||
)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user