# Abstract class of the ANSI/VT100 escape sequences for directional moves.
abstract class TermDirectionalMove
super TermEscape
# The length of the move.
var magnitude: Int = 1 is protected writable
redef fun to_s do
if magnitude == 1 then return "{csi}{code}"
return "{csi}{magnitude}{code}"
end
# The code of the command.
protected fun code: String is abstract
end
lib/console/console.nit:31,1--45,3