console :: TermMove :: defaultinit
core :: Object :: class_factory
Implementation used byget_class
to create the specific class.
console :: TermEscape :: defaultinit
core :: Object :: defaultinit
console :: TermMove :: 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.
core :: Object :: output_class_name
Display class name on stdout (debug only).
# ANSI/VT100 code to move the cursor at the specified position (CUP).
class TermMove
super TermEscape
# Vertical position.
#
# 1 is the top.
var row: Int = 1
# Horizontal position.
#
# 1 is the left.
var column: Int = 1
# Move at the specified position.
#
# (1, 1) is the top-left corner of the display.
init at(row: Int, column: Int) do
self.row = row
self.column = column
end
redef fun to_s do
if row == 1 then
if column == 1 then return "{csi}H"
return "{csi};{column}H"
else
if column == 1 then return "{csi}{row}H"
return "{csi}{row};{column}H"
end
end
end
lib/console/console.nit:87,1--118,3