0

Hey guys. I am somewhat new to the C++ language and was wanting to make a basic text editor. For this i was going to use Nodes and linked list to accomplish this. the main thing i need help with at this moment is creating a command prompt for the program, if anyone could give me some advice or an example code to go off of, that would be great.

2
Contributors
7
Replies
10
Views
5 Years
Discussion Span
Last Post by Ancient Dragon
0

what operating system and compiler do you have in mind? And do you want a command-line text editor, something like edlin.exe or a graphical program like Notepad.exe?

Edited by Ancient Dragon

0

I want create my own command lines within the program using functions, so an example would be like, the user
types in 'a', which is a command to add a new line to a file.

0

Thanks, the actual help i need it creating that function within the program

0

In a loop get a single character then perform a switch on it to determine what command is to be executed. Or you can call fgets() to get an entire line from the keyboard and parse it. Just like any other program, just don't try to get too ambitious at first, keep it simple.

Edited by Ancient Dragon

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.