kyx0r / nextfb Goto Github PK
View Code? Open in Web Editor NEWNext version of fbpad (framebuffer terminal/env)
Next version of fbpad (framebuffer terminal/env)
NEXTFB ===== Nextfb is a small linux framebuffer virtual terminal. It manages many terminals through single-letter tags; each tag can hold two terminals. The following table indicates Nextfb's key-bindings (m-k means pressing k, while holding the alt key). ============== ======================================= KEY COMMAND ============== ======================================= m-c execute a shell (SHELL) m-m execute mail program (MAIL) m-e execute editor program (EDITOR) m-x switch to tag 'x' (TAGS) m-j switch to current tag's alternative terminal m-k like m-j m-p show tag summary m-o jump to the previous tag m-tab show the next terminal m-s create a text screenshot (SCRSHOT) m-l redraw the terminal c-m-l lock the screen; use PASS to unlock c-m-o disable/enable tag switching m-q quit Nextfb m-, scroll up m-. scroll down m-= split tag horizontally/vertically m-- unsplit tag ============== ======================================= m-t reload the font for the focused terminal ============== ======================================= m-v paste yank buffer m-b paste yank buffer and exit yank mode m-y enter yank mode where: (again to exit) any start typing strings, autocomplete based on text displayed on the focused terminal enter copies first suggestion to yank buffer and exits yank mode backspace delete 1 char from input m-n completes the input till first suggestion m-u delete all input ============== ======================================= To execute only a single program in Nextfb, the program and its arguments should be passed as command line arguments of Nextfb. Nextfb executes the specified program in a terminal, disables all terminal switching commands, and exits as soon as the program finishes. Programs like fbpdf, fbvnc, and fbff read the FBDEV environment variable, which can specify the framebuffer device and its drawing region, like "/dev/fb0:1438x448+1+451". Nextfb defines this environment variable when executing a program, so that if a tag is split, the program running in its terminal is limited to its corresponding framebuffer region. SETTING UP ========== To configure Nextfb, you should edit conf.h. To get Nextfb running you need to make sure FR points to a valid Nextfb font (for testing you can try http://litcave.rudi.ir/courr.tf) and SHELL to the shell you want Nextfb to execute. Once these are set, you should be able to start Nextfb without problems. Nextfb fonts can be generated using fbpad_mkfn program (http://litcave.rudi.ir/). The FR, FI, and FB macros specify the path of Nextfb fonts for regular, italic, and bold fonts. If FI or FB is NULL, the regular font is used for italic or bold text. Next, you may want to change the list of Nextfb tags by changing TAGS. FGCOLOR and BGCOLOR macros specify foreground and background colors, for instance the FGCOLOR of 2 and BGCOLOR of 0 creates green on black terminals. Individual colors can be customized by editing the hex RGB color description of COLOR* macros. Also SCRSHOT macro specifies where Nextfb text screenshots, created by "m-s" command, must be saved. If you want to use Nextfb's scrsnap feature, you can edit TAGS_SAVED to change the list of saved terminals. Framebuffer memory is saved and reloaded for these tags, which is very convenient when you are using programs that change the framebuffer simultaneously, like fbpdf. 256-COLOR MODE ============== Nextfb supports xterm's 256-color extension, but most programs will not use this extension, unless the $TERM terminfo entry declares this feature. For this purpose, Nextfb-256 terminfo file can be created to contain (the two-space identation should be ignored): Nextfb-256, use=linux, U8#0, colors#256, pairs#32767, setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m, setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m, Which can be installed with tic command: $ tic -x ./Nextfb-256 The following line should be added to shell's startup script: export TERM=Nextfb-256 Note that in order to use this feature and italic fonts in Vim, adding Nextfb-256 terminfo is not necessary. Including the following lines in the vimrc file should enable them: set t_ZH=�[3m set t_Co=256
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.