command line – Looking for an embedded terminal based text editor that will edit one file only


I have an embedded linux/unix system with a terminal interface, and as part of that system I need to edit a file in a text editor.

The details of the file being edited need to be hidden from the end user.

Most specifically I want:

  • Instantiated like: magic-text-editor /path/to/file.txt
  • No visibility of the underlying system, so no “save as” functionality, no “open arbitrary other file”, no “the file you’re editing is called file.txt”, no “let me drop you to a shell for no reason”.
  • Options to “save-and-exit” or “abort-and-exit”.

Happy to integrate a C library if an executable doesn’t exist.

Anything like this exist?



Source link

Related Posts

About The Author

Add Comment