Terminal control/Cursor positioning: Difference between revisions

Content added Content deleted
(Insert D)
Line 114: Line 114:
GOBACK
GOBACK
.</lang>
.</lang>


=={{header|D}}==
ANSI escape sequences allow you to move the cursor anywhere on the screen. See more at: [http://www.tldp.org/HOWTO/Bash-Prompt-HOWTO/x361.html Bash Prompt HowTo - Chapter 6. ANSI Escape Sequences: Colours and Cursor Movement]
Position the Cursor:
\033[<L>;<C>H
or
\033[<L>;<C>f
puts the cursor at line L and column C.

<lang D>
import std.stdio;

void main()
{
writef("\033[6;3fHello");
}
</lang>

'''Output:'''
0123456789
1
2
3
4
5
6 Hello
9
8
9

=={{header|Elena}}==
=={{header|Elena}}==
ELENA 3.2 :
ELENA 3.2 :