Return to Home

Building a Text Editor—Terminal UI

~2 mins reading time

I've added a text editor example using the basic-cli platform to the roc-ansi repository. The goal was a simple text editor that could be used to help teach functional programming.

If anyone is interested in developing a Terminal UI then I hope this example provides some good ideas.

Below is a demo of the text editor opening a new file called abc.txt and writing some content. I demonstrate a few features like saving the changes, undo and redo changes, and moving the cursor around the screen.

screen capture of the application being used

You can find the example code located in the roc-ansi repository.

If you have any feedback or suggestions please let me know.