docs: Update README & TUI
This commit is contained in:
parent
e356e87472
commit
e8cc0b6503
15
README.md
15
README.md
@ -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`
|
||||||
|
|||||||
@ -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
|
||||||
)
|
)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user