yaft (yet another framebuffer terminal)

Last update: Wed Aug 27 20:19:46 JST 2014

description

yaft is simple framebuffer terminal emulator for minimalist (living without X). This software is being developed to replace Linux console for personal use.

yaft supports UCS2 glyphs including wide character and 256 color. (Linux console can handle only 512 glyphs and doesn’t support 256 color.) What you need for build is only make and gcc (or bmake and clang).

Main target is Linux console, but yaft supports some other framebuffer platform, FreeBSD console and NetBSD/OpenBSD wscons (experimental). And there are other (non framebuffer) ports, yaftx (X Window System) and yaft-android (Android).

This repository includes yaft, yaft-freebsd, yaft-netbsd, yaft-openbsd and yaftx. yaft-android is found here.

download

(up-to-date)

$ git clone https://github.com/uobikiemukot/yaft

or

(maybe something old)

features

configuration

If you want to change configuration, rewrite conf.h

color

This value is an index of color_list (see color.h)

misc

terminal name and path

how to use your favorite fonts

You can use tools/mkfont_bdf to create glyph.h

usage: tools/mkfont_bdf ALIAS_FILE BDF1 BDF2 BDF3 … > glyph.h

change makefile like this

#./mkfont_bdf table/alias fonts/milkjf_k16.bdf fonts/milkjf_8x16r.bdf fonts/milkjf_8x16.bdf > glyph.h
./mkfont_bdf table/your_alias your/favorite/fonts.bdf > glyph.h

or change yaft.h

//#include "glyph.h"
#include "glyph_you_created.h"

environment variable

$ FRAMEBUFFER="/dev/fb1" yaft # use another framebuffer device
$ idump /path/to/wallpaper.png; YAFT="wall" yaft # set wallpaper (see yaft_wall script)

build and install (yaft)

Please check makefile and LANG environment variable before make (yaft uses wcwidth in libc for calculating glyph width)

($ export LANG=en_US.UTF-8)
$ make
# make install
(or install manually)

build and install (yaftx)

$ make yaftx

Please install manually

terminfo/termcap

terminfo/termcap is found in info/ directory

usage

$ yaft

For enabling wallpaper, you can use yaft_wall script (it requires fbv)

$ yaft_wall /path/to/wallpaper.jpg

or you can use idump

$ idump /path/to/wallpaper.jpg; YAFT="wall" yaft

screenshot

screenshot1
screenshot1

license

The MIT License (MIT)

Copyright (c) 2012 haru (uobikiemukot at gmail dot com)

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.