1
0
Fork 0
mirror of https://github.com/alemidev/scope-tui.git synced 2024-11-14 18:59:19 +01:00

fix: update readme and increments

This commit is contained in:
əlemi 2023-01-13 02:59:53 +01:00
parent b48989d4e9
commit 6807bb5972
No known key found for this signature in database
GPG key ID: BBCBFE5D7244634E
2 changed files with 15 additions and 12 deletions

View file

@ -42,18 +42,21 @@ To change audio buffer size, the PulseAudio client must be restarted. Because of
## Controls ## Controls
* Use `q` or `CTRL+C` to exit * Use `q` or `CTRL+C` to exit
* Use `t` to toggle triggered mode
* Use `<SPACE>` to pause and resume display * Use `<SPACE>` to pause and resume display
* Use `<LEFT>` and `<RIGHT>` to decrease or increase range by 100 * Use `<LEFT>` and `<RIGHT>` to increase or decrease time range by 25
* Use `<UP>` and `<DOWN>` to decrease or increase threshold by 100 * Use `<UP>` and `<DOWN>` to increase or decrease amplitude scale by 250
* Combine arrows with `<SHIFT>` to increase or decrease by 1000 instead * Use `<PG-UP>` and `<PG-DOWN>` to increase or decrease threshold by 250
* Combine arrows with `<CTRL>` to increase or decrease by 10 instead * Combine arrows with `<SHIFT>` to increase or decrease by x4
* Combine arrows with `<ALT>` to increase or decrease by 1 instead * 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 `v` to toggle vectorscope mode
* Use `s` to toggle scatter mode * Use `s` to toggle scatter mode
* Use `b` to toggle braille characters * Use `b` to toggle braille characters
* Use `h` to toggle interface * Use `h` to toggle interface
* Use `r` to toggle reference lines * 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 # 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. 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.

View file

@ -270,12 +270,12 @@ pub fn run_app<T : Backend>(args: Args, terminal: &mut Terminal<T>) -> Result<()
KeyModifiers::CONTROL => { KeyModifiers::CONTROL => {
match key.code { // mimic other programs shortcuts to quit, for user friendlyness match key.code { // mimic other programs shortcuts to quit, for user friendlyness
KeyCode::Char('c') | KeyCode::Char('q') | KeyCode::Char('w') => break, KeyCode::Char('c') | KeyCode::Char('q') | KeyCode::Char('w') => break,
KeyCode::Up => app.cfg.scale -= 10, // inverted to act as zoom KeyCode::Up => app.cfg.scale -= 50, // inverted to act as zoom
KeyCode::Down => app.cfg.scale += 10, // inverted to act as zoom KeyCode::Down => app.cfg.scale += 50, // inverted to act as zoom
KeyCode::Right => app.cfg.width += 1, KeyCode::Right => app.cfg.width += 5,
KeyCode::Left => app.cfg.width -= 1, KeyCode::Left => app.cfg.width -= 5,
KeyCode::PageUp => app.cfg.threshold += 10.0, KeyCode::PageUp => app.cfg.threshold += 50.0,
KeyCode::PageDown => app.cfg.threshold -= 10.0, KeyCode::PageDown => app.cfg.threshold -= 50.0,
KeyCode::Char('r') => { // reset settings KeyCode::Char('r') => { // reset settings
app.cfg.references = !args.no_reference; app.cfg.references = !args.no_reference;
app.cfg.show_ui = !args.no_ui; app.cfg.show_ui = !args.no_ui;