2

I was tasked with creating a command line text editor in just two weeks by my friend, and I think it would actually be pretty fun to do. I'm allowed to use any resources available, I just have to complete it by the deadline, which is why I'm here.

What I'm going for is reading the contents of the file the user specifies and then printing them line by line, and then making them editable. Is there any way to do this? If so, could you show me how?

P.S. I'm on Mac.

6
  • yes there definitely is. Commented Jun 8, 2020 at 17:54
  • ok, but how can i do it? Commented Jun 8, 2020 at 17:54
  • You code it with python Commented Jun 8, 2020 at 17:57
  • yes, but could you show me the code to do it? Commented Jun 8, 2020 at 17:58
  • 1
    To me, this seems harder than making a GUI editor. I would start with curses module documentation Commented Jun 8, 2020 at 17:59

1 Answer 1

2

I've never tried, but I believe it's entirely possible.

Try starting with those libraries:

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.