function locate(r,f)
{
printf("\033[%d;%dH",r,f)
}

function at(r,f)
{
return sprintf("\033[%d;%dH",r,f)
}

BEGIN{
locate(3,2)
print "test text"
print ""
print at(5,2) "test text1"
print at(6,3) "test text2"
}





戻る