Skip to content
المشاريع

حول

Fast and reasonably complete (framebuffer) terminal emulator.

أدوات التطوير

كيف تُقاس هذه الأرقام

153 نجمة20 التفرعات +1 خلال 24 ساعة

النمو المقاس للنجوم

خلال 24 ساعة
+١
خلال 7 أيام
جارٍ جمع السجل
خلال 15 يومًا
جارٍ جمع السجل
خلال شهر
جارٍ جمع السجل

تغيّر صافي النجوم خلال فترات متداخلة، وليس مجموعًا يوميًا. تبقى القياسات المفقودة فارغة. النجوم تقيس الاهتمام لا جودة البرمجيات.

README.md

الأصل

Flanterm

A fast, reasonably complete terminal emulator with multiple output backends; a framebuffer backend is included. Freestanding C99 - suitable for kernels, bootloaders, and other bare-metal environments.

Flanterm implements a partial subset/superset of the Linux console/VT100 vocabulary described in console_codes(4).

Quick start

Framebuffer context initialisation:

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

struct flanterm_context *ft_ctx = flanterm_fb_init(
    NULL,
    NULL,
    framebuffer_ptr, width, height, pitch,
    red_mask_size, red_mask_shift,
    green_mask_size, green_mask_shift,
    blue_mask_size, blue_mask_shift,
    NULL,
    NULL, NULL,
    NULL, NULL,
    NULL, NULL,
    NULL, 0, 0, 1,
    0, 0,
    0,
    0,
    true
);

framebuffer_ptr, width, height, pitch, and the six *_mask_* arguments describe the framebuffer; the rest are covered in BACKEND_FB.md.

Terminal output:

const char msg[] = "Hello world\n";
flanterm_write(ft_ctx, msg, sizeof(msg) - 1);

Documentation

استكشف مشاريع مشابهة ومرتبطة

جارٍ التحميل…