Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

drcforbin/rwte

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

211 Commits
211 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

xcb terminal emulator, with lua, cairo, and pango

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.