Git Product home page Git Product logo

rwte's Introduction

rwte

xcb and wayland terminal emulator, with lua, cairo, and pango

Todo

  • Shifted function/insert/del/end/etc keys, like what's done in urxvt
  • Implement urgent and bell in Window
  • Look into XEMBED
  • Straighten out responsibilities in copy/pasting, and pick a better data type for passing around the data
  • Numlock. I don't have a keypad.
  • Custom colors, color resetting
  • Media copy / 'print'

Notes

Borrows code and ideas from all over

  • most code has been derived from st and rxvt-unicode, but xterm and vte were involved too.
  • the excellent fmt library is embedded

Lua API

Introduction

At startup, a config file may be specified using the -c or --config, or rwte will search the search for a config.lua using xdg paths (~/.config/rwte is the most convenient place to put it). This file will be loaded and run in the global context after loading the normal lua libs and the term, window, and logging modules described below (note that the terminal and window aren't yet created, but handlers may be registered).

If the -b of --bench argument is supplied, rwte will exit after the config file is loaded/run. Lua code can look for these arguments to run tests and benchmarking.

The default library used for display is xcb. By specifying -x of --wayland on the command line, it'll use wayland instead. Note that wayland support is missing some things (e.g., all clipboard), and isn't repainting properly. It's a work in progress.

Re wayland repainting, now that we have multiple buffers, we need to use damage properly, as we don't fully repaint all the buffers, but we tell wayland to paint the whole buffer every time.

The config file is expected to assign to set a global config object, and may also connect event handlers for window / term events.

See also: API docs

config

config is a global lua table, assigned in the config file. Values in config may be overridden by command line args to rwte. The expected contents and possible values for fields in config are documented by comments in the example config.lua.

rwte's People

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.