Git Product home page Git Product logo

c-cli-editor's Introduction

Kilo Text Editor

This code for learn C

files

main.c : main program

edef.h : header global data globals.c : global data

estruct.h : global define

terminal.h : header terminal terminal.c : interactive with terminal

find.h : header find find.c : find word

row.h : header row row.c : manage row content

operations.h : header operations operations.c : manage content

buffer.h : header buffer buffer.c : interactive buffer content

file.h : header file file.c : manage file i/o

input.h : header input input.c : manage input

output.h : header output output.c : manage output

syntax.h : header syntax syntax.c : syntax highlight

Library

  • unistd.h Acess to POSIX system For read() and STDIN_FILENO

  • termios.h Control terminal I/O

  • stdlib.h Define data/function

  • ctype.h Check, mapping character

  • stdio.h I/O standard

Mode

  • View
  • Insert

Screen

+---------------------------------------------------------------+ | | | | | | | | | | | Main Screen | | | | | | | | | | | +---------------------------------------------------------------+ | Status bar | +---------------------------------------------------------------+ | Message bar | +---------------------------------------------------------------+

Pixel

A pixel screen is a ASCII [ ][ ][ ] [ ][ ][ ] [ ][ ][ ]

Data Structure

Function

write() Ex : write(STDOUT_FILENO, "~", 1); /* write character ~ */

"\x1b[2J" : clear screen "\x1b[K" : clear from to end line

"\x1b[H" : set cursor to begin "\x1b[?25l" : hide cursor "\x1b[?25h" : show cursor

"\r\n" : write break line

"\x1b[7m" : inverted colors "\x1b[m" : normal colors

c-cli-editor's People

Contributors

pularbacc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.