X-Git-Url: http://nitlanguage.org diff --git a/lib/console.nit b/lib/console.nit index e922a84..0020b7a 100644 --- a/lib/console.nit +++ b/lib/console.nit @@ -18,7 +18,7 @@ module console # A ANSI/VT100 escape sequence. abstract class TermEscape # The US-ASCII ESC character. - protected fun esc: Char do return 27.ascii + protected fun esc: Char do return 27.code_point # The Control Sequence Introducer (CSI). protected fun csi: String do return "{esc}[" @@ -44,8 +44,6 @@ end class TermMoveUp super TermDirectionalMove - init do end - # Move by the specified number of cells. init by(magnitude: Int) do self.magnitude = magnitude @@ -56,8 +54,6 @@ end class TermMoveDown super TermDirectionalMove - init do end - # Move by the specified number of cells. init by(magnitude: Int) do self.magnitude = magnitude @@ -68,8 +64,6 @@ end class TermMoveFoward super TermDirectionalMove - init do end - # Move by the specified number of cells. init by(magnitude: Int) do self.magnitude = magnitude @@ -80,8 +74,6 @@ end class TermMoveBackward super TermDirectionalMove - init do end - # Move by the specified number of cells. init by(magnitude: Int) do self.magnitude = magnitude @@ -102,8 +94,6 @@ class TermMove # 1 is the left. var column: Int = 1 - init do end - # Move at the specified position. # # (1, 1) is the top-left corner of the display.