Fix terminal goto control sequence building
parent
780ddaf22b
commit
c8da79d785
|
@ -18,7 +18,7 @@ module term
|
||||||
// x is the x coordinate
|
// x is the x coordinate
|
||||||
// y is the y coordinate
|
// y is the y coordinate
|
||||||
pub fn set_cursor_position(x int,y int) {
|
pub fn set_cursor_position(x int,y int) {
|
||||||
print('\x1b[$y;$x;H')
|
print('\x1b[$y;$x'+'H')
|
||||||
}
|
}
|
||||||
|
|
||||||
// n is number of cells
|
// n is number of cells
|
||||||
|
|
Loading…
Reference in New Issue