This project provides a simple demonstration of utilizing the termbox-go
library to display a string message in the center of a terminal while simultaneously using the robotgo
library to move the mouse cursor by 1 pixel on the X-axis every second.
- Displays a string message at the center of the terminal.
- Moves the mouse cursor incrementally every second.
- Exits the program when a key is pressed.
Ensure you have the following dependencies installed:
-
termbox-go: A library for creating cross-platform text-based interfaces.
go get -u github.com/nsf/termbox-go
-
robotgo: A cross-platform library for GUI automation.
go get -u github.com/go-vgo/robotgo
- Clone the repository.
- Navigate to the project directory.
- Run the program:
go run main.go
Once executed, you'll see the message "YOu hIght on MeTHamPhEtamInEs" displayed at the center of your terminal. Simultaneously, the mouse cursor will move by 1 pixel on the X-axis every second.
Press any key to exit the program.
Feel free to fork the project, submit PRs, and report issues or suggestions. We always welcome contributions from the community!
This project is open-sourced under the MIT License.