223 views
0 votes
0 votes
A user at a terminal issues a command to an editor to delete the word on line $5$ occupying character positions $7$ through and including $12.$ Assuming the cursor is not on line $5$ when the command is given, what ANSI escape sequence should the editor emit to delete the word?

1 Answer

0 votes
0 votes

Answer:

The cursor will move to the line $5$ and position $7$, and then it will delete $6$ characters.

$\therefore$ The sequence is: $\mathbf {ESC} [5,7\mathrm H\;\mathbf {ESC} \;[6\;\text{P}$

Related questions

0 votes
0 votes
0 answers
2
admin asked Oct 28, 2019
296 views
In Fig. 5-36 there is a class to RegisterClass. In the corresponding $X$ Window code, in Fig. 5-34, there is no such call or anything like it. Why not?