Develop a basic text editor that provides the following
functionality:
- displays text as typed
- handles carriage returns correctly
- erases text using backspace key
- allows positioning within currently displayed text using arrow keys
You may want to start with this
code
.