Git Product home page Git Product logo

mt's Introduction

mt - Modern, minimalist, minty-fresh terminal.

This is intended to be a modern, minimalist terminal emulator for X with the following design priorities:

  • Work well with other platform's modern terminal emulators (iTerm2, hterm). This means largely being xterm-compatible rather than using a custom terminfo database entry.
  • Zero non-terminal UI components (no menus, no scroll bars, etc.) and leverage in-terminal tools like tmux for these kinds of features.
  • High quality font rendering and color support. The terminal itself should look as good as it is possible to look in X.

While satisfying these criteria, the terminal should be as small and low-overhead as possible. Also, it should use any modern software development tools that make it easier to work with.

Requirements to build

You will need the Xlib header files, CMake, and a modern C++ toolchain. Using the Ninja generator of CMake is encouraged.

TODO list

Cleanup

  • Use C++ to simplify any constructs from the old C code.
  • Identify any existing libraries that can be used effectively.
  • Factor code into libraries and write unittests.

Terminal emulation

  • Compare all terminal codes with xterm, iTerm2, and hterm; harmonize where possible.
  • From the original st documentation
    • double-height support

Display and rendering

  • From the original st documentation
    • add diacritics support to xdraws()
    • make the font cache simpler
    • add better support for brightening of the upper colors

Application

  • Add configuration file reading rather than compiling all settings into the binary.

Bugs and/or known isuses

  • From the original st documentation
    • fix shift up/down (shift selection in emacs)
    • remove DEC test sequence when appropriate

FAQ

How do I get scrolling functionality?

Using a terminal multiplexer like tmux or screen.

Disclaimer

This is not an official Google product.

Credits

This is based on the st terminal, but doesn't share the same goals or development philosophy and so is very likely to diverge. From that project's documentation:

Based on Aurélien APTEL bt source code.

mt's People

Contributors

aaptel avatar agonrex avatar amade avatar blackbit42 avatar brandoninvergo avatar chandlerc avatar colona avatar drm00 avatar electronicru avatar ericpruitt avatar esjeon avatar frign avatar garbeam avatar hiltjo avatar jceb avatar k0gamsx avatar medgar123 avatar michaelforney avatar mihailzenkov avatar mvdan avatar nullplan avatar osandov avatar pilona avatar radare avatar rafaelgg avatar sam-mccall avatar schachmat avatar suiginsoft avatar v4hn avatar wengxt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mt's Issues

Support file-based configuration

Your opinions on fonts and colors are incorrect :-)

Happy to take a stab at this, but wanted your opinion before writing code. Proposal:

  • the current stuff in config.h becomes a struct config, char[] becomes string etc.
  • existing values become the defaults
  • defaults can be overridden using $HOME/.mt (not configurable, not via flags, etc)
  • format is key=value, e.g
    # This is a comment
    font=Roboto Mono for Powerline:size=9:antialias=true:autohint=true
    colors[8]=#cccccc
    keys[shift+KP_Home]=\033[1;2H
  • config parser is ad-hoc and initially only handles most important options (font, colors, window size). Keys are deferred to later because of complexity.
  • missing .mt is ignored, unreadable file prints a warning, unparseable lines print a warning each

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.