Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I make a command line text editor?

Tags:

I have gotten to know my way around a few programming languages, and I'd like to try my hand at making a command-line text editor -- something that runs in the terminal, like vim/emacs/nano, but is pure text (no guis, please). Preferably, I'd like to do this in python. Where do I start? Are there any (python) libraries to do command-line applications?

like image 225
So8res Avatar asked Mar 27 '09 02:03

So8res


People also ask

Is there a command line text editor in Windows?

The 64-bit versions of Windows do not support the edit command in the Windows command line. If you need to edit files from the command line, we suggest using the notepad command from the command line as shown in the example below.

What is a command line editor?

Command-line editing lets you access commands from your history file, edit them, and run the result. You have already seen this process before, when reading about some of the features of the r command.


1 Answers

try python curses module , it is a command-line graphic operation library.

like image 162
linjunhalida Avatar answered Sep 29 '22 12:09

linjunhalida