Thanks, Neil. I will test today later. :)

Em qui, 3 de jan de 2019 04:35, Neil Van Dyke <n...@neilvandyke.org
escreveu:

> If you're on a Unix, like GNU/Linux or a BSD, you could use the
> `charterm` package:
>
> #lang racket/base
> (require charterm)
> (with-charterm
>   (let-values (((w h) (charterm-screen-size)))
>     (charterm-clear-screen)
>     (charterm-display "Width: " w " Height: " h " ")
>     (charterm-cursor 1 2)))
>
> `charterm` can probably also do the other things you mentioned.  See the
> demo program that the documentation mentions.
>
> https://www.neilvandyke.org/racket/charterm/
>
> You mentioned `less`.  If you want to be able to scroll backwards
> vertically one line at a time, like `less` can, without redrawing the
> screen, then you might want to use `charterm-insert-line`. (This will
> probably work for any terminal you have today.  It probably won't work
> on terminal emulators that are set to strict "VT-100" emulation, but it
> should work with later VT model emulation and "ANSI".)
>
> I haven't been developing `charterm` since I originally wrote it, so
> some things are relatively over-engineered, while other things are
> missing or could be improved.  If `charterm` doesn't do what you want, I
> see two other interesting packages to look at:
>
> https://pkgs.racket-lang.org/package/termios
> https://pkgs.racket-lang.org/package/ansi
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to