Terminal control/Restricted width positional input/No wrapping: Difference between revisions
Terminal control/Restricted width positional input/No wrapping (view source)
Revision as of 19:32, 14 March 2021
, 3 years ago→{{header|Julia}}
Line 108:
=={{header|Julia}}==
Requires an ANSI compatible terminal and a system C library implementing _getch() for unbuffered keyboard input. Note the code below is identical to the code in [[/Terminal_control/Restricted_width_positional_input/No_wrapping]] but with no width argument in the input call.
<lang julia>getch() = UInt8(ccall(:_getch, Cint, ()))
cls() = print("\33[2J")
|