mirror of
https://github.com/alemidev/scope-tui.git
synced 2024-11-14 10:49:20 +01:00
fix: update readme and increments
This commit is contained in:
parent
b48989d4e9
commit
6807bb5972
2 changed files with 15 additions and 12 deletions
15
README.md
15
README.md
|
@ -42,18 +42,21 @@ To change audio buffer size, the PulseAudio client must be restarted. Because of
|
|||
|
||||
## Controls
|
||||
* Use `q` or `CTRL+C` to exit
|
||||
* Use `t` to toggle triggered mode
|
||||
* Use `<SPACE>` to pause and resume display
|
||||
* Use `<LEFT>` and `<RIGHT>` to decrease or increase range by 100
|
||||
* Use `<UP>` and `<DOWN>` to decrease or increase threshold by 100
|
||||
* Combine arrows with `<SHIFT>` to increase or decrease by 1000 instead
|
||||
* Combine arrows with `<CTRL>` to increase or decrease by 10 instead
|
||||
* Combine arrows with `<ALT>` to increase or decrease by 1 instead
|
||||
* Use `<LEFT>` and `<RIGHT>` to increase or decrease time range by 25
|
||||
* Use `<UP>` and `<DOWN>` to increase or decrease amplitude scale by 250
|
||||
* Use `<PG-UP>` and `<PG-DOWN>` to increase or decrease threshold by 250
|
||||
* Combine arrows with `<SHIFT>` to increase or decrease by x4
|
||||
* Combine arrows with `<CTRL>` to increase or decrease by /5
|
||||
* Press `<TAB>` to restore width and scale to default values
|
||||
* Use `v` to toggle vectorscope mode
|
||||
* Use `s` to toggle scatter mode
|
||||
* Use `b` to toggle braille characters
|
||||
* Use `h` to toggle interface
|
||||
* Use `r` to toggle reference lines
|
||||
* Use `t` to toggle triggered mode
|
||||
* Use `<ESC>` to show ui and revert to oscilloscope
|
||||
* Use `<C-R>` to reset all options to startup values
|
||||
|
||||
# About precision
|
||||
While "scatter" plot mode is as precise as Pulseaudio and the terminal lets us be, "line" plot mode simply draws a straight line across points, meaning high frequencies don't get properly represented.
|
||||
|
|
12
src/app.rs
12
src/app.rs
|
@ -270,12 +270,12 @@ pub fn run_app<T : Backend>(args: Args, terminal: &mut Terminal<T>) -> Result<()
|
|||
KeyModifiers::CONTROL => {
|
||||
match key.code { // mimic other programs shortcuts to quit, for user friendlyness
|
||||
KeyCode::Char('c') | KeyCode::Char('q') | KeyCode::Char('w') => break,
|
||||
KeyCode::Up => app.cfg.scale -= 10, // inverted to act as zoom
|
||||
KeyCode::Down => app.cfg.scale += 10, // inverted to act as zoom
|
||||
KeyCode::Right => app.cfg.width += 1,
|
||||
KeyCode::Left => app.cfg.width -= 1,
|
||||
KeyCode::PageUp => app.cfg.threshold += 10.0,
|
||||
KeyCode::PageDown => app.cfg.threshold -= 10.0,
|
||||
KeyCode::Up => app.cfg.scale -= 50, // inverted to act as zoom
|
||||
KeyCode::Down => app.cfg.scale += 50, // inverted to act as zoom
|
||||
KeyCode::Right => app.cfg.width += 5,
|
||||
KeyCode::Left => app.cfg.width -= 5,
|
||||
KeyCode::PageUp => app.cfg.threshold += 50.0,
|
||||
KeyCode::PageDown => app.cfg.threshold -= 50.0,
|
||||
KeyCode::Char('r') => { // reset settings
|
||||
app.cfg.references = !args.no_reference;
|
||||
app.cfg.show_ui = !args.no_ui;
|
||||
|
|
Loading…
Reference in a new issue