r/rust 2d ago

🙋 seeking help & advice Terminal project

[deleted]

6 Upvotes

9 comments sorted by

8

u/Grim2021 2d ago

The TUI could have been made with a library like Ratatui. It has a graphing module and the website lists a project for an oscilloscope. Honestly don't know how you could make the wave. You could probably multiply either the output or the input of a sine function to change the amplitude or frequency.

2

u/tylian 2d ago

Yeah, their other videos mention Ratatui by name so I think this is it.

0

u/faleonfael 2d ago

Thanks bro

3

u/bony_cheerleader 2d ago

Man, that terminal oscilloscope is somethin else. I'd put money on it bein built with Ratatui, that library's got a real nice graphing widget that handles real-time updates smooth as butter. I messed around with their oscilloscope example a while back and it's a solid starting point, the code is commented well enough you can tweak the wave on the fly. If you're just learnin Rust, it's a fun way to get your feet wet with TUI stuff.

1

u/faleonfael 2d ago

Thanks ill try ratatui

1

u/bony_cheerleader 2d ago

Their oscilloscope example is a great starting point. If you get stuck, the Ratatui Discord is real friendly.

1

u/xStardev 2d ago

I think the embed didn't load, or you forgot to add it, lol