Terminal control/Positional read: Difference between revisions

mNo edit summary
Line 146:
The character at column 3, row 6 is 'A'
</pre>
 
=={{header|Julia}}==
<lang julia>using LibNCurses
 
randtxt(n) = foldl(*, rand(split("1234567890abcdefghijklmnopqrstuvwxyz", ""), n))
 
initscr()
 
for i in 1:20
LibNCurses.mvwaddstr(i, 1, randtxt(50))
end
 
row = rand(1:20)
col = rand(1:50)
ch = LibNCurses.winch(row, col)
LibNCurses.mvwaddstr(col, 52, "The character at ($row, $col) is $ch.") )
</lang>
 
 
=={{header|Kotlin}}==
4,102

edits