Giter Club home page Giter Club logo

st's Introduction

st - simple terminal

st is a simple terminal emulator for X which sucks less.

See suckless.org for more info.

Violet's Patches

Yeah, it's basically my terminal and no one elses. You can't easily remove the patches, so probably scurry along, curious browser. Nothing to see here.

  • scrollback: add scrollback capabilities
    • scrollback: M-S-k, M-S-j to scroll
    • resizing reflows text
    • mouse wheel scrolls
  • ligatures: ligature support
    • also using FiraCode Nerd Font for ligature support
  • bold-is-not-bright: bold attribute doesn't use bright colors
  • anysize: terminal doesn't enforce size (expected variant)
  • copyurl: allows for copying urls to clipboard
    • M-u, M-S-u cycle forward, backward (resp.)
    • highlights the links and supports multiline links
  • open copied url: opens the url from copyurl
    • M-Return to open the url with xdg-open
  • undercurl: supports undercurl (ie, in nvim)
  • w3m: w3mimg support for images (ie, in ranger with review_images_method = w3m)
  • autocomplete: autocomplete words or fuzzily (or more if you want)
    • M-S-l, M-S-; complete word or fuzzyily
    • M-S-BackSpace reverts the completion back to the original text
  • dracula: colorscheme

Violet's Keymaps

Key Description
C-S-= Increase font size
C-S-- Decrease font size
C-S-0 Reset font size
C-S-c Copy to Clipboard
C-S-v Paste from Clipboard
C-S-y Past from Selection (alt: S-Insert)
M-S-k Scroll terminal up
M-S-j Scroll terminal down
M-u Copy & highlight URLs cyclicly upwards from bottom
M-S-u Copy & highlight URLs cyclicly downwards from top
M-Return Open copied URL
M-S-l Complete a partial word that is somewhere in the terminal buffer
M-S-; Complete a fuzzy match of text in the terminal buffer
M-S-BackSpace Undo the completion (revert to original text)
  • C-S-{key} is Control + Shift + {key}
  • M-{key} is Meta (Alt) + {key}
  • M-S-{key} is Meta (Alt) + Shift + {key}

Violet's Notes

I use rm -f config.h; make && sudo make install && make clean after modifying config.def.h; do whatever feels comfy, though, and don't remove config.h if it has changes, obviously.

For undercurl support in tmux, add this to your .tmux.conf:

set -as terminal-overrides ',*:Smulx=\E[4::%p1%dm'  # undercurl support
set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{255}%&%d::%p1%{255}%&%d%;m'  # underscore colours - needs tmux-3.0

Obviously, if you want ligatures, use a monospace font that supports ligatures.

Requirements

In order to build st you need the Xlib header files.

Installation

Edit config.mk to match your local setup (st is installed into the /usr/local namespace by default).

Afterwards enter the following command to build and install st (if necessary as root):

make clean install

Running st

If you did not install st with make clean install, you must compile the st terminfo entry with the following command:

tic -sx st.info

See the man page for additional details.

Credits

Based on Aurélien APTEL bt source code.

st's People

Contributors

aaptel avatar k0gamsx avatar hiltjo avatar djpohly avatar colona avatar violetjewel avatar avih avatar frign avatar medgar123 avatar electronicru avatar garbeam avatar ericpruitt avatar vain avatar schachmat avatar pickfire avatar blackbit42 avatar lotheac avatar michaelforney avatar suiginsoft avatar esjeon avatar n-r-k avatar mvdan avatar radare avatar osandov avatar pilona avatar v4hn avatar agonrex avatar wengxt avatar amade avatar bennofs avatar

Watchers

 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.