I am wondering how to create the appearance of a “full-screen” window inside a shell, as in vim, emacs, etc. Is it possible to do this programmatically in Ruby? And how platform-dependent would that be?
Edit: I am not looking for how to make my shell go full-screen. I’m looking for a way to hide the previous commands entered and “fill” the shell screen with an app. It’s for an installer.
What you’re probably looking for is ncurses or S-Lang support to provide your full TUI experience.
Ruby’s
gemenvironment provides several gems that might be worth exploring:The author of the
rbcursepackage recommends using thencurses-rubygem.rbcurseprovides some pre-written widgets and the ability to write new widgets in the same style — it looks mighty useful.I haven’t yet found any S-Lang bindings for Ruby; based on the project’s focus on providing a language interpreter, I just don’t think it’ll be easy to build Ruby bindings. Pity, because many application authors do prefer S-Lang over ncurses.