left
right
delete
insert c
c
is a single character; perform the requested
operation and then print the modified line of text.
Here is a sample:
Note that things might be more user-friendly if insert followed by an immediate delete undid the insert. But according to the book, you would have to do:insert X, left, delete
.
Just goes to show you how important is the correct problem definition.