autopy
crossterm
Our great sponsors
autopy | crossterm | |
---|---|---|
2 | 28 | |
804 | 2,964 | |
0.7% | 2.2% | |
2.8 | 6.8 | |
9 months ago | 3 days ago | |
Rust | Rust | |
Apache License 2.0 | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
autopy
-
Somehow AutoHotKey is kinda good now
Reciprocally, it's just amazing how much better AutoHotKey is at scripting the computer is than everything else is. The language was clearly never the reason why AHK persisted.
There's works like AutoPy (https://github.com/autopilot-rs/autopy) and AutoPilot-rs (https://github.com/autopilot-rs/autopilot-rs), but they offer like 1/100th the capabilities AHK does.
Personally I think this kind of computer-control is the perfect environment for teaching computing. Rather than writing apps or webapps, I feel like the idea of just writing code to do what you the user would do anyways, but better, is a fantastic introduction to computing & programming. In my ideal world, we'd have an EVE Online server that specifically re-enables the game-client's python interpretter (and periodically does total wipes), so folks can learn to program by scripting not just their desktop, but a complex & interesting game, via it's rich api.
-
Single Player Game With Behaviorai Combat
Autopy, a python library to control mouse and keyboard (I used it to play clicker heroes and automate ascensions, was great. I also used multiple X sessions in Linux so it will run in parallel to other keyboard/mouse sessions) https://github.com/autopilot-rs/autopy
crossterm
-
Question: In your experience, is Helix always more snappy/responsive than Neovim?
I have this feeling with all rust apps using crossterm crate as their backend like GitUI for example
-
Canonical way to handle concurrent events with crates that don't model that use case
I guess you could use EventStream like in this example
-
[2022 Day 14 (Part 1/2) [Rust] Made a small toy
Made a small toy using crossterm that simulates the falling sand using the rules laid out by day 14. Bit late to the party but was pretty fun. The moment I saw the prompt I was fully intent on making some sort of visualization for this after getting the solution.
-
How difficult is ncurses?
There are plenty of terminal UI libraries that are actually nice to work with. For Python, there's Textual and PyTermGUI. For Rust, there's ratatui and Cursive (or, if you want something a bit lower level, crosster or termion). For Go, there's bubbletea.
-
AMDGPU_TOP v0.1.2 - switch to crossterm-backend, add simple fdinfo viewer
Switching the backend of Cursive to crossterm removed dependence on ncurses
-
How can I create 'time' in my game loop?
I don't know where to start, CrossTerm can read events asynchronously with tokio https://github.com/crossterm-rs/crossterm/blob/master/examples/event-stream-tokio.rs , but I don't have any idea what that really means, I am coming from the HTML Canvas and TypeScript. I want the most simple and basic method possible. Cheers!
-
termion development status?
Just wondering if anyone has any insight into the current development and maintenance of termion? It currently has 67 issues and 24 merge requests and no code activity has happened since Sep 27 2021, so nothing in over a year. I am of course grateful for the existing project, but just somewhat concerned that it ends up being abandoned or forgotten seeing as it is one of the premiere tui libraries written purely in Rust (other being crossterm).
-
I made a terminal-based flashcard app - with incremental reading!
I might make a gui frontend in the future, but for now i'll focus on the terminal. The terminal doesn't mean it doesnt support mac or windows though, they have terminals too! And the library used for accepting key-input is crossterm which supports windows!
-
[Media] I made a Rust CLI game that tests how fast you can guess the language of a code block!
I used crossterm. Really love the simplicity of the API, definitely fit my purposes well.
-
How difficult could it be to make a console program that looks like this and has a game loop running on a separate thread? Any suggestions or crate recommendations are welcome!
For the terminal part you could use https://crates.io/crates/crossterm
What are some alternatives?
enigo - Cross platform input simulation in Rust
Termion - Mirror of https://gitlab.redox-os.org/redox-os/termion
nfd2 - OS native dialogs for Windows, MacOS, and Linux
tui-rs - Build terminal user interfaces and dashboards using Rust
Cloaker - Simple, drag-and-drop, password-based file encryption
pancurses - A Rust curses library, supports Unix platforms and Windows
whkd - A simple hotkey daemon for Windows
fui - Add CLI & form interface to your program. Docs: https://docs.rs/fui
orbtk - The Rust UI-Toolkit.
bearlibterminal - BearLibTerminal FFI for Rust
simuwaerm - A simple heat simulation in pure Rust.
rustgenhash - CLI tool written in Rust which can be used to generate hashes