console :: TermDirectionalMove :: magnitude=
The length of the move.console $ TermDirectionalMove :: SELF
Type of this instance, automatically specialized in every classcore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
console :: TermEscape :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
console :: TermDirectionalMove :: magnitude=
The length of the move.core :: Object :: output_class_name
Display class name on stdout (debug only).magnitude
columns (CUB).
magnitude
rows (CUD).
magnitude
columns (CUF).
magnitude
rows (CUU).
# 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