No description
![]() the array is not accessed outside of base64dec() so it makes sense to limit it's scope to the related function. the static-storage duration of the array is kept intact. this also removes unnecessary explicit zeroing from the start and end of the array. anything that wasn't explicitly zero-ed will now be implicitly zero-ed instead. the validity of the new array can be easily confirmed via running this trivial loop: for (int i = 0; i < 255; ++i) assert(base64_digits[i] == base64_digits_old[i]); lastly, as pointed out by Roberto, the array needs to have 256 elements in order to able access it as any unsigned char as an index; the previous array had 255. however, this array will only be accessed at indexes which are isprint() || '=' (see `base64dec_getc()`), so reducing the size of the array to the highest printable ascii char (127 AFAIK) + 1 might also be a valid strategy. |
||
---|---|---|
.gitignore | ||
arg.h | ||
config.h | ||
config.mk | ||
FAQ | ||
LEGACY | ||
LICENSE | ||
Makefile | ||
README | ||
README.md | ||
st.1 | ||
st.c | ||
st.h | ||
st.info | ||
TODO | ||
win.h | ||
x.c |
st - simple terminal emulator for X
This is my terminal that I use every day, and maybe it will work for you too.
- Based on st-0.8.4
- Default theme: Apprentice
- Default font: fantasque-sans
- Spare font:
Source Code Pro
Bindings
- Scrollback: with
shift-↑/↓
- Scrollback mouse:
shift
while scrolling the mouse - Change font size:
ctrl+shift-↑/↓
- Reset font size:
ctrl+shift-home
returns to default - Copy/Paste text: with
ctrl+shift-c
,ctrl+shift+v
andctrl+shift-insert
or right mouse click - Extract all visible URLs and present rofi/dmenu to select and open one:
ctrl+shift+U
Requirements
make
tool for buildinglibXft
library for fonts drawingXlib
header files for interacting with an X serverxurls
tool for extract urls from plain textFantasque
default font which you can change inconfig.h
Patches
- st-scrollback
- st-scrollback-mouse
- alpha
- externalpipe
- rightclickpaste
- font2
Simple installation
git clone https://github.com/ssilaev/st
cd st
sudo make install