Move the cursor position in bash to a specific column

advertisements

I want to move the bash cursor in an echo command on a specific column, but without changing the line. What I have so far is:

this.echo('NONE found on ' + accountName + '(' + accountPos + ')' + '\033[30f !!!');

I want the 30 to be the column number, but the line to stay the same, but for a reason or another, the above just thinks my line number is 0, hence it resets the line to that value.


Found the answer to my own question, by moving the cursor at the beginning of line and then move it forward by 30 columns, as in this example:

\033[50D\033[30C My Text Goes Here