Nothing Special   »   [go: up one dir, main page]

Skip to content

dankamongmen/contour

Β 
Β 

Contour - a modern & actually fast Terminal Emulator

CI Build codecov C++20 Discord Twitch Live Stream open collective badge

screenshot showcasing notcurses ncneofetch on KDE/Fedora

contour is a modern and actually fast, modal, virtual terminal emulator, for everyday use. It is aiming for power users with a modern feature mindset.

Features

  • βœ… Available on all 4 major platforms, Linux, OS/X, FreeBSD, Windows.
  • βœ… GPU-accelerated rendering.
  • βœ… Font ligatures support (such as in Fira Code).
  • βœ… Unicode: Emoji support (-: 🌈 πŸ’ πŸ˜› πŸ‘ͺ - including ZWJ, VS15, VS16 emoji :-)
  • βœ… Unicode: Grapheme cluster support
  • βœ… Bold and italic fonts
  • βœ… High-DPI support.
  • βœ… Vertical Line Markers (quickly jump to markers in your history!)
  • βœ… Vi-like input modes for improved selection and copy'n'paste experience and Vi-like scrolloff feature.
  • βœ… Blurred behind transparent background support for Windows 10 and above as well as the KDE and GNOME desktop environment on Linux.
  • βœ… Blurrable Background image support.
  • βœ… Runtime configuration reload
  • βœ… 256-color and Truecolor support
  • βœ… Key binding customization
  • βœ… Color Schemes
  • βœ… Profiles (grouped customization of: color scheme, login shell, and related behaviours)
  • βœ… Synchronized rendering (via SM ? 2026 / RM ? 2026)
  • βœ… Text reflow (configurable via SM ? 2028 / RM ? 2028)
  • βœ… Clickable hyperlinks via OSC 8
  • βœ… Clipboard setting via OSC 52
  • βœ… Sixel inline images
  • βœ… Terminal page buffer capture VT extension to quickly extract contents.
  • βœ… Builtin Fira Code inspired progress bar support.
  • βœ… Read-only mode, protecting against accidental user-input to the running application, such as Ctrl+C.
  • βœ… VT320 Host-programmable and Indicator status line support.
  • βœ… and much more ...

Installation

contour is packaged and available for installation on multiple distributions.

sudo dnf install contour-terminal

Installing via Flatpak

Install from Flathub

Click the following button to install Contour from the Flathub store.

Get it on Flathub

Prerequisites

Requirements

  • operating system: A recent operating system (OS/X 12, Windows 10+, an up-to-date Linux, or FreeBSD)
  • GPU: driver must support at least OpenGL 3.3 hardware accelerated or as software rasterizer.
  • CPU: x86-64 AMD or Intel with AES-NI instruction set or ARMv8 with crypto extensions.

Configuration

In order to configure Contour, it is necessary to modify the configuration file contour.yml, which is initially generated in the $HOME/.config/contour directory. Some features also require shell integration. These can be generated via the CLI (see below), these currently exist for zsh, fish and tcsh.

Installing from source

Contour is best installed from supported package managers, but you can build from source by following the instructions below. You can use Qt 5 or Qt 6, by default contour will be compiled with Qt 6, to change Qt version use QTVER=5 ./scripts/install-deps.sh to fetch dependencies and cmake flag -D CONTOUR_QT_VERSION=5.

UNIX-like systems (Linux, FreeBSD, OS/X)

Prerequisites

./scripts/install-deps.sh

This script might ask you for the administrator password if a package dependency can be insalled via the system package manager.

Compile

cmake -S . -B build -G Ninja
cmake --build build/

# Optionally, if you want to install from source
cmake --build build/ --target install

Windows 10 or newer

Prerequisites

For Windows, you must have Windows 10, 2018 Fall Creators Update, and Visual Studio 2019, installed. It will neither build nor run on any prior Windows OS, due to libterminal making use of ConPTY API.

  1. Set up vcpkg, preferably somewhere high up in the folder hierarchy, and add the folder to your PATH.
cd C:\
git clone https://github.com/Microsoft/vcpkg.git
.\vcpkg\bootstrap-vcpkg.bat
  1. Install Visual Studio Build Tools (make sure to select the CLI tools for C++, which you might need to do in the separate components tab).
  2. Install Qt6 (i.e. to C:\Qt)
  3. Open the developer version of Powershell.
  4. In the contour source folder execute .\scripts\install-deps.ps1. This step may take a very long time.

Compile

In the developer version of Powershell:

# change paths accordingly if you installed QT and vcpkg to somewhere else
cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=C:\vcpkg\scripts\buildsystems\vcpkg.cmake -DCMAKE_PREFIX_PATH=C:\Qt\6.5.0\msvc2019_64\lib\cmake
cmake --build build/

# Optionally, if you want to install from source
cmake --build build/ --target install

Distribution Packages

Packaging status

CLI - Command Line Interface

  Usage:

    contour [terminal] [config FILE] [profile NAME] [debug TAGS] [live-config] [dump-state-at-exit PATH]
                       [early-exit-threshold UINT] [working-directory DIRECTORY] [class WM_CLASS]
                       [platform PLATFORM[:OPTIONS]] [session SESSION_ID] [PROGRAM ARGS...]
    contour font-locator [config FILE] [profile NAME] [debug TAGS]
    contour info vt
    contour help
    contour version
    contour license
    contour parser-table
    contour list-debug-tags
    contour generate terminfo to FILE
    contour generate config to FILE
    contour generate integration shell SHELL to FILE
    contour capture [logical] [words] [timeout SECONDS] [lines COUNT] to FILE
    contour set profile [to NAME]

References

License

Contour - A modern C++ Terminal Emulator
-------------------------------------------

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

About

Modern C++ Terminal Emulator

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C++ 92.6%
  • CMake 4.2%
  • Shell 1.7%
  • QML 0.5%
  • GLSL 0.4%
  • PowerShell 0.2%
  • Other 0.4%