/scrawl-editor

xv6 integrated with a fully functional text editor

Primary LanguageCOtherNOASSERTION

scrawl-editor

Scrawl is a sophisticated text editor that can be integrated to xv6. It was developed using C making sure it’s compatible with xv6.

Our text editor can be used to create programs from within the operating system itself as it has syntax highlighting feature based on the language used.

Using Scrawl, all file formats supported by xv6 can be created or modified within the system itself.

With Scrawl present in xv6 the user need not look for other sources to open, edit and create.

It is a very sophisticated text editor involving many advanced features such as searching based on keywords, syntax highlighting and fluid cursor movements.

It also provides facilities like save, save as, quit without saving and so on and indicates if any changes are made after saving.

Scrawl also gives us a live statistic on the file in use which enables the user to keep track of his/her whereabouts in the file.

MAJOR FEATURES OF SCRAWL

It’s not your average editor:

​​Scrawl has extremely fluid cursor movements. HOME can be used to travel to the start of a line. Scrawl also recognizes page Up, page Down and all our arrow keys can be used. It also has functionalities of a regular editor such as the usage of the return key for a new line, delete key to delete a character, etc.

Search:

​Scrawl provides the user with functionality to search for the occurrence of a particular string throughout the file. The found string is highlighted in a different colour for easier recognition.

Syntax highlighting:

​​Based on the type of file scrawl highlights the contents of a file to improve user readability. This improves the efficiency of the work done by the user to a great extent.

Smart Save:

​​Scrawl provides the functionality to save a user file permanently so that the work done by the user is not lost. Even if the user initiates the quit sequence Scrawl smartly checks whether the file has been saved or not. If it has not been saved then the user must press quit thrice in order to make sure that quitting without saving a file was not an accident.

Note: The editor was made with the help of an online tutorial // https://viewsourcecode.org/snaptoken/kilo/