Scarlet Devil Mansion

RemiSlang

RemiSlang are a set of bindings for S-Lang for the Crystal programming language.

Source Code Repository

Example Usage

require "remislang"

# Some aliases to save typing
alias Slang = RemiSlang
alias Screen = RemiSlang::Screen
alias Input = RemiSlang::Input

# withSlang will automatically handle initialization and deinitialization.
# It should be preferred in most cases.

# Initialize S-Lang and request TTY keypad handling.
Slang.withSlang(tty: Slang::TtyInit::Full) do
  Screen.clear      # Clear the screen
  Screen.hideCursor # Hide the cursor
  # ...call more stuff in Slang and Screen...
end