Terminal control/Restricted width positional input/No wrapping: Difference between revisions
Content added Content deleted
(julia example) |
|||
Line 108: | Line 108: | ||
=={{header|Julia}}== |
=={{header|Julia}}== |
||
Requires an ANSI compatible terminal and a system C library implementing _getch() for unbuffered keyboard input. |
Requires an ANSI compatible terminal and a system C library implementing _getch() for unbuffered keyboard input. This is the same as |
||
[[Terminal_control/Restricted_width_positional_input/No_wrapping]] but with no width argument in the input call. |
|||
<lang julia>getch() = UInt8(ccall(:_getch, Cint, ())) |
<lang julia>getch() = UInt8(ccall(:_getch, Cint, ())) |
||
cls() = print("\33[2J") |
cls() = print("\33[2J") |
||
Line 131: | Line 132: | ||
cls() |
cls() |
||
reposition(3, 5) |
reposition(3, 5) |
||
s = input_y_x_upto(3, 5 |
s = input_y_x_upto(3, 5, 8) |
||
println("\n\n\nResult: You entered <<$s>>") |
println("\n\n\nResult: You entered <<$s>>") |
||
</lang> |
</lang> |
||
=={{header|Kotlin}}== |
=={{header|Kotlin}}== |