Skip to content

Fast and reasonably complete (framebuffer) terminal emulator.

License

Notifications You must be signed in to change notification settings

HBelusca/flanterm

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Flanterm

Flanterm is a fast and reasonably complete terminal emulator with support for multiple output backends. Included is a fast framebuffer backend.

Quick usage

To quickly set up and use a framebuffer Flanterm instance, it is possible to use the flanterm_fb_simple_init() function as such:

#include <flanterm/flanterm.h>
#include <flanterm/backends/fb.h>

struct flanterm_context *ft_ctx = flanterm_fb_simple_init(
    framebuffer_ptr, framebuffer_width, framebuffer_height, framebuffer_pitch
);

Where framebuffer_{ptr,width,height,pitch} represent the corresponding info about the framebuffer to use for this given instance.

To then print to the terminal instance, simply use the flanterm_write() function on the given instance. For example:

#include <flanterm/flanterm.h>

const char msg[] = "Hello world\n";

flanterm_write(ft_ctx, msg, sizeof(msg));

About

Fast and reasonably complete (framebuffer) terminal emulator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%