Hi everyone. I am coding a console-based game in racket to teach shell to
freshman on university. In some point, I need to print a message that can
have a lot of lines. I want to do a less(the command in the shell)-like
output, so the output will freeaze on the end of line, if the user type 'q'
the command exit to the game, and if the user press the keyboard arrows the
text move in the right way.

The context exposed, I think the only problem that I need to solve is : how
can I know the number of lines in a terminal port? If the
current-output-port is a terminal, how can I do (terminal-port-number-lines
(current-output-port)) and have the number?

The only function acting on terminal that I see is "terminal-port?".

Thanks for listening.

-- 
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