I'm studying the ed text editor.
To exit from input mode, a user should enter a line a single period (.
).
Let's say I want to enter the period as text.
I thought of a workaround: first, I insert something like ..
. Then, I replace ..
with .
.
But my approach is little unwieldy. Is there a better way to do this?