Giter Club home page Giter Club logo

revery-terminal's Introduction

revery-terminal

Build Status

A terminal emulator built with Revery.

This is a barebones terminal emulator factored out from the work to include a terminal emulator in Onivim 2.

It's also a fun exploration in leveraging an Elm-style architecture in a natively compiled application.

image

Pre-requisites

Building

Running

  • esy run

Limitations

This is just meant as an exploration, and isn't production-ready. In particular, there are some pieces missing:

  • No Unicode support at the moment - assumes ASCII rendering
  • No ligatures or text shaping
  • No Windows support at the moment - we use the openpty API which is not available on Windows
  • Minimal keys are handled

These would all be great contribution opportunities, though!

Source Overview

Main modules

  • src/bin/App.re - this is the entry point for the application (where we start the window, wire up our store).
  • src/bin/Model.re - this is the heart of our application - that provides the definition of Model.t as well as how it changes over time (by providing an updater function).

Supporting modules

  • src/lib/ReveryTerminal.rei - contains cross-platform utilities for working with a terminal.
  • src/pty - small OCaml binding to the openpty system call, to create a pseudoterminal.

Technologies Used

We also use the JetBrains Mono font.

License

MIT

revery-terminal's People

Contributors

bryphe avatar

Watchers

James Cloos 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.