Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pol-guarch/text-editor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Text Editor

Table of Contents

Overview

This c an go program simulates a text editor with an integrated clipboard manager which can handle the following operations:

  • TYPE
  • SELECT <start_index> <end_index>
  • MOVE_CURSOR
  • COPY
  • PASTE or PASTE <steps_back>
  • EXIT

The project contains also a custom implementation of a queue in c language.

Installation

Project can be downloaded from the attached folder or by clonning my git repository:

git clone https://github.com/gpol2003/text-editor.git

Usage

c

To compile main.c and the queue module:

cd c-project
make

To execute the editor program:

make test

To execute editor program with Valgrind memory error detector:

make check

go

To compile and execute main.go

cd go-project
go run main.go

Example

Input: "TYPE We hate pointers", "MOVE_CURSOR -3", "SELECT 3 6", "TYPE love"
Output: We love pointers
Input: "EXIT"
Leaving text editor...

Contact

Pol Guarch Bosom - [email protected] - https://www.linkedin.com/in/pol-guarch/

Project Link: https://github.com/gpol2003/text-editor.git

Acknowledgments

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published