Previous: , Up: Output functions   [Contents][Index]

4.6.4 A word about coordinates

The move function takes the y coordinate first and then x as its arguments. A common mistake by beginners is to pass x, y in that order.

If you use the #:y and #:x key parameters that most output procedures have in lieu of using the move statement, you can use enter the coordinates in whichever order seems most natural to you.

;; either
(addstr win "Hi" #:x 0 #:y 10)
;; or
(addstr win "Hi" #:y 10 #:x 0)