Question: Create a simple text editor that allows users to input, edit, and display text. This mini project involves handling strings, user input, and dynamic memory
Create a simple text editor that allows users to input, edit, and display text. This mini
project involves handling strings, user input, and dynamic memory management.
Features:
Allow the user to input multiple lines of text.
Provide basic editing commands like insert, delete, and display.
Implement a dynamic buffer to store the text, simulating heap memory management.
Implementation Details
Mini Project Setup
Create a new MIPS assembly file in MARS.
Define data structures and initial settings for the text buffer.
User Interface
Display a menu with options: Insert text, Delete text, Display text, and Exit.
Use syscalls for user input and output.
Text Buffer Management
Implement functions to handle dynamic allocation for the text buffer.
Ensure that the buffer can grow as more text is added.
Text Editing Operations
Insert: Add text at a specified position.
Delete: Remove text from a specified position.
Display: Show the current content of the text buffer.
Undo Operation: Implement an undo feature to revert the last text modification.
Find and Replace: Allow the user to search for a substring and replace it with another
string.
Cursor Navigation: Implement cursorbased text navigation and editing insertdelete at
cursor position
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
