1 ! Copyright (C) 2012 John Benediktsson
2 ! See http://factorcode.org/license.txt for BSD license
4 USING: accessors classes.struct kernel math system terminal
9 M: windows (terminal-size)
10 STD_OUTPUT_HANDLE GetStdHandle
11 CONSOLE_SCREEN_BUFFER_INFO new
12 [ GetConsoleScreenBufferInfo ] keep swap zero? [
16 [ [ Right>> ] [ Left>> ] bi - 1 + ]
17 [ [ Bottom>> ] [ Top>> ] bi - 1 + ] bi