Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor variables, add text right align setting, add input reader #67

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

sunjc826
Copy link
Contributor

@sunjc826 sunjc826 commented May 13, 2024

  • Made some minor changes based on shellcheck's suggestions.
  • Added pushd into script directory so shellcheck knows where to source (no need for # shellcheck source directive). This together with the .shellcheckrc makes hovering over variables/functions defined in simple_curses.sh in vscode work.
  • Added append <text> right
  • Added reading of input into the event loop, enabled by setting --enable-input. It does a bunch of somewhat "nonblocking" reads, technically read -n 1 char is blocking but it should always succeed.

Let me know what you think about the last feature! I think it is still very rough around the edges.

@sunjc826
Copy link
Contributor Author

Addresses #32 #33

@GrownLinux
Copy link

Thank you for the changes and updates! Firstly, incorporating Shellcheck suggestions is excellent as it helps maintain clean and error-free code. Additionally, including pushden in the script directory, along with .shellcheckrc, enhances Visual Studio Code integration, making it easier for Shellcheck to locate variable and function definitions. Moreover, the newly added append right function sounds interesting.

@metal3d metal3d merged commit 006b9ca into metal3d:master Jul 16, 2024
@metal3d
Copy link
Owner

metal3d commented Jul 16, 2024

Thank a lot for this PR!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants