Enforce sentence case in documentation headings and list items and add rule to AGENTS.md

This commit is contained in:
Luxferre committed 2026-10-26 19:27:27 +02:00
1 parent 4264877868
commit 418e0e55a2
5 files changed
+106 -105

No files matched your search

+52 -52
View File
@@ -1,17 +1,17 @@
# Bananarchy NeoUI SDK Reference (`SDK.md`)
# Bananarchy NeoUI SDK reference (`SDK.md`)
**NeoUI** (`libneoui.so` + `/usr/include/neoui.h`) is the native `240x320` QVGA graphical user interface SDK for **Bananarchy Linux**.
It encapsulates all low-level X11 (`Xlib`), `Xft`, `Pango`, `libjpeg-turbo`, `libpng`, `.Xresources` / `~/.xthemes/*.xth` live theme resolution, offscreen `Pixmap` double-buffering, standardized OS shell widgets, FIFO IPC, softkey chord handling (`Left+Right` softkey -> `xdrawer`), and multi-tap T9 keypad input behind:
It encapsulates all low-level X11 (`Xlib`), `Xft`, `Pango`, `libjpeg-turbo`, `libpng`, `.Xresources` / `~/.xthemes/*.xth` live theme resolution, offscreen `Pixmap` double buffering, standardized OS shell widgets, FIFO IPC, softkey chord handling (`Left+Right` softkey -> `xdrawer`), and multi-tap T9 keypad input behind:
1. A **C-compatible FFI (`neoui_*`)** designed for both C programs and foreign-function interfaces (such as **Yabasic** `frnfn_call` / `frnfn_call$`, LuaJIT FFI, Janet, Python `ctypes`, etc.).
2. A **C++20 SDK (`namespace bananarchy`)** providing `ThemeSpec`, `PluginTheme`, `NeoWindow`, and direct Pango/Xft/image helpers used across all 14 built-in Bananarchy DWM plugins.
3. A **Yabasic wrapper library (`neoui.yab`)** preinstalled in `/home/user/Projects/neoui.yab` (and symlinked at `/usr/lib/neoui.yab`), paired with a full showcase application (`/home/user/Projects/neoui_demo.yab`).
---
## 1. Architecture & Files
## 1. Architecture and files
| Path on Target Device | Source in Repository | Description |
| Path on target device | Source in repository | Description |
| :--- | :--- | :--- |
| `/usr/lib/libneoui.so` | `src/neoui/neoui.cpp` | Shared library (`armv7` hard-float) implementing the C FFI and C++20 SDK |
| `/usr/include/neoui.h` | `src/neoui/neoui.h` | Unified C99 and C++20 header file |
@@ -19,17 +19,17 @@ It encapsulates all low-level X11 (`Xlib`), `Xft`, `Pango`, `libjpeg-turbo`, `li
| `/usr/lib/neoui.yab` | `overlay/rootfs/usr/lib/neoui.yab` | Symlink to `/home/user/Projects/neoui.yab` so `import neoui` works from any working directory |
| `/home/user/Projects/neoui_demo.yab` | `overlay/rootfs/home/user/Projects/neoui_demo.yab` | Interactive 3-tab Yabasic showcase demonstrating all NeoUI widgets, multi-tap input, custom drawing, modals, and live theme reload |
### Key Design Principles
- **Zero-Flicker Offscreen Double Buffering**: Every NeoUI window (`240x296` at `X=0, Y=24`, directly below the 24px `dwm` top status bar) renders into an offscreen X11 `Pixmap` during `neoui_begin_frame()` .. `neoui_end_frame()` and copies the completed frame to the visible window in a single `XCopyArea` call.
- **Automatic `.Xresources` / `.xth` Theme Resolution**: NeoUI automatically parses the active theme from X11 `RESOURCE_MANAGER` and `~/.Xresources`, derives 29 semantic color tokens and 4 proportional Pango font sizes (`Small`, `Main`, `Icon`, `Large` scaled from `theme.baseFontSize`), and hot-reloads on the fly whenever `RELOAD_THEME` arrives on `/tmp/dwm_plugin_<app_name>.fifo` or `.Xresources` changes on disk.
- **FFI-Safe Return Types**: Every `extern "C"` function in `neoui.h` returns `int` (`int32`), `uint32_t` (`uint32`), or `const char*` (`string`)—never `void`—so FFI callers like Yabasic's `frnfn_call` work without `void`-return restrictions.
### Key design principles
- **Zero-flicker offscreen double buffering**: every NeoUI window (`240x296` at `X=0, Y=24`, directly below the 24px `dwm` top status bar) renders into an offscreen X11 `Pixmap` during `neoui_begin_frame()` .. `neoui_end_frame()` and copies the completed frame to the visible window in a single `XCopyArea` call.
- **Automatic `.Xresources` / `.xth` theme resolution**: NeoUI automatically parses the active theme from X11 `RESOURCE_MANAGER` and `~/.Xresources`, derives 29 semantic color tokens and 4 proportional Pango font sizes (`Small`, `Main`, `Icon`, `Large` scaled from `theme.baseFontSize`), and hot-reloads on the fly whenever `RELOAD_THEME` arrives on `/tmp/dwm_plugin_<app_name>.fifo` or `.Xresources` changes on disk.
- **FFI-safe return types**: every `extern "C"` function in `neoui.h` returns `int` (`int32`), `uint32_t` (`uint32`), or `const char*` (`string`)—never `void`—so FFI callers like Yabasic's `frnfn_call` work without `void`-return restrictions.
---
## 2. Constants & Enumerations
## 2. Constants and enumerations
### 2.1 Screen Geometry (`NeoGeometry`)
| C Constant | Yabasic Constant | Value | Meaning |
### 2.1 Screen geometry (`NeoGeometry`)
| C constant | Yabasic constant | Value | Meaning |
| :--- | :--- | :--- | :--- |
| `NEO_SCREEN_W` | `neoui.SCREEN_W` | `240` | Full physical display width in pixels |
| `NEO_SCREEN_H` | `neoui.SCREEN_H` | `320` | Full physical display height in pixels |
@@ -41,8 +41,8 @@ It encapsulates all low-level X11 (`Xlib`), `Xft`, `Pango`, `libjpeg-turbo`, `li
| `NEO_HEADER_H` | `neoui.HEADER_H` | `34` | Standard NeoUI header height |
| `NEO_SOFTBAR_H` | `neoui.SOFTBAR_H` | `26` | Standard bottom softkey bar height |
### 2.2 Theme Color Token IDs (`NeoColorId` for `neoui_color(color_id)`)
| ID | C Constant | Yabasic Constant | Description |
### 2.2 Theme color token IDs (`NeoColorId` for `neoui_color(color_id)`)
| ID | C constant | Yabasic constant | Description |
| :--- | :--- | :--- | :--- |
| `0` | `NEO_COLOR_BG_MAIN` | `neoui.COLOR_BG_MAIN` | Primary window background |
| `1` | `NEO_COLOR_BG_BAR` | `neoui.COLOR_BG_BAR` | Top status bar background |
@@ -74,15 +74,15 @@ It encapsulates all low-level X11 (`Xlib`), `Xft`, `Pango`, `libjpeg-turbo`, `li
| `27` | `NEO_COLOR_DANGER` | `neoui.COLOR_DANGER` | Semantic red (danger / error / reject) |
| `28` | `NEO_COLOR_DANGER_BG` | `neoui.COLOR_DANGER_BG` | Selected danger button background |
### 2.3 Font Roles (`NeoFontRole`) & Text Color Roles (`NeoTextColor`)
| ID | Font Role (`NeoFontRole`) | Yabasic | Description |
### 2.3 Font roles (`NeoFontRole`) and text color roles (`NeoTextColor`)
| ID | Font role (`NeoFontRole`) | Yabasic | Description |
| :--- | :--- | :--- | :--- |
| `0` | `NEO_FONT_SMALL` | `neoui.FONT_SMALL` | Small UI font (`baseFontSize - 2`, min `10px`) |
| `1` | `NEO_FONT_MAIN` | `neoui.FONT_MAIN` | Main UI Bold font (`baseFontSize`, default `13px`) |
| `1` | `NEO_FONT_MAIN` | `neoui.FONT_MAIN` | Main UI bold font (`baseFontSize`, default `13px`) |
| `2` | `NEO_FONT_ICON` | `neoui.FONT_ICON` | Nerd Font icon glyph layout (`baseFontSize + 2`, default `15px`) |
| `3` | `NEO_FONT_LARGE` | `neoui.FONT_LARGE` | Large Bold title/number font (`baseFontSize + 3`, default `16px`) |
| `3` | `NEO_FONT_LARGE` | `neoui.FONT_LARGE` | Large bold title/number font (`baseFontSize + 3`, default `16px`) |
| ID | Text Color Role (`NeoTextColor`) | Yabasic | Mapped Theme Token |
| ID | Text color role (`NeoTextColor`) | Yabasic | Mapped theme token |
| :--- | :--- | :--- | :--- |
| `0` | `NEO_TEXT_WHITE` | `neoui.TEXT_WHITE` | `theme.fgBright` |
| `1` | `NEO_TEXT_LIGHT` | `neoui.TEXT_LIGHT` | `theme.fgMain` |
@@ -93,8 +93,8 @@ It encapsulates all low-level X11 (`Xlib`), `Xft`, `Pango`, `libjpeg-turbo`, `li
| `6` | `NEO_TEXT_ORANGE` | `neoui.TEXT_ORANGE` | `theme.warning` |
| `7` | `NEO_TEXT_RED` | `neoui.TEXT_RED` | `theme.danger` |
### 2.4 Event Types (`NeoEventType`) & Logical Keypad Keys (`NeoKey`)
| Event ID | C Constant | Yabasic Constant | Description |
### 2.4 Event types (`NeoEventType`) and logical keypad keys (`NeoKey`)
| Event ID | C constant | Yabasic constant | Description |
| :--- | :--- | :--- | :--- |
| `0` | `NEO_EV_NONE` | `neoui.EV_NONE` | Timeout elapsed with no event |
| `1` | `NEO_EV_EXPOSE` | `neoui.EV_EXPOSE` | Window exposed or multi-tap candidate auto-committed; redraw frame |
@@ -107,7 +107,7 @@ It encapsulates all low-level X11 (`Xlib`), `Xft`, `Pango`, `libjpeg-turbo`, `li
| `8` | `NEO_EV_THEME_RELOAD` | `neoui.EV_THEME_RELOAD` | Theme reloaded (`RELOAD_THEME`); redraw frame |
| `9` | `NEO_EV_CLOSE_REQ` | `neoui.EV_CLOSE_REQ` | `CLOSE` received on FIFO |
| Key ID | C Constant | Yabasic Constant | Physical Key |
| Key ID | C constant | Yabasic constant | Physical key |
| :--- | :--- | :--- | :--- |
| `0` | `NEO_KEY_NONE` | `neoui.KEY_NONE` | Unmapped key |
| `1`..`4` | `NEO_KEY_UP`, `DOWN`, `LEFT`, `RIGHT` | `neoui.KEY_UP`, `KEY_DOWN`, `KEY_LEFT`, `KEY_RIGHT` | D-Pad directions |
@@ -115,32 +115,32 @@ It encapsulates all low-level X11 (`Xlib`), `Xft`, `Pango`, `libjpeg-turbo`, `li
| `6` | `NEO_KEY_BACK` | `neoui.KEY_BACK` | `BackSpace` / `Delete` / `Escape` |
| `7` | `NEO_KEY_CALL` | `neoui.KEY_CALL` | Green Call / Send key (`XF86PickupPhone` / `F3`) |
| `8` | `NEO_KEY_END` | `neoui.KEY_END` | Red End / Power key (`XF86HangupPhone` / `F4`) |
| `9` | `NEO_KEY_SOFT_LEFT` | `neoui.KEY_SOFT_LEFT` | Left Softkey (`XF86KbdLcdMenu1` / `F1`) |
| `10` | `NEO_KEY_SOFT_RIGHT` | `neoui.KEY_SOFT_RIGHT` | Right Softkey (`XF86KbdLcdMenu2` / `F2`) |
| `9` | `NEO_KEY_SOFT_LEFT` | `neoui.KEY_SOFT_LEFT` | Left softkey (`XF86KbdLcdMenu1` / `F1`) |
| `10` | `NEO_KEY_SOFT_RIGHT` | `neoui.KEY_SOFT_RIGHT` | Right softkey (`XF86KbdLcdMenu2` / `F2`) |
| `32` | `NEO_KEY_SPACE` | `neoui.KEY_SPACE` | Space |
| `35` | `NEO_KEY_HASH` | `neoui.KEY_HASH` | `#` key (`numbersign`) |
| `42` | `NEO_KEY_STAR` | `neoui.KEY_STAR` | `*` key (`asterisk`) |
| `43` | `NEO_KEY_PLUS` | `neoui.KEY_PLUS` | `+` key (`plus`) |
| `48`..`57` | `NEO_KEY_0` .. `NEO_KEY_9` | `neoui.KEY_0` .. `neoui.KEY_9` | Keypad digits `0`–`9` |
### 2.5 Built-in Nerd Font Icon Names (`neoui_icon(name)`)
### 2.5 Built-in Nerd Font icon names (`neoui_icon(name)`)
Any widget parameter accepting `icon_str` (or `neoui_icon(name)`) resolves the following symbolic names to their Nerd Font UTF-8 codepoints (or passes raw UTF-8 strings through unchanged):
- **Telephony & Messaging**: `"phone"`, `"hangup"`, `"contacts"`, `"user"`, `"sms"`, `"reply"`, `"in_call"`, `"out_call"`, `"missed_call"`, `"sim"`, `"signal"`, `"ussd"`, `"voicemail"`
- **Connectivity & Hardware**: `"wifi"`, `"bluetooth"`, `"globe"`, `"hotspot"`, `"usb"`, `"torch"`, `"sun"`, `"speaker"`, `"earpiece"`, `"mute"`, `"mic"`, `"mic_off"`, `"bell"`, `"vibrate"`, `"silent"`, `"dnd"`, `"camera"`, `"battery"`, `"lock"`
- **Files, Media & UI Actions**: `"folder"`, `"file"`, `"image"`, `"music"`, `"Gamepad"`, `"term"`, `"theme"`, `"settings"`, `"search"`, `"plus"`, `"edit"`, `"trash"`, `"check"`, `"close"`, `"info"`, `"warning"`, `"star"`, `"refresh"`, `"copy"`, `"sort"`, `"eye"`, `"backspace"`, `"up"`, `"down"`, `"left"`, `"right"`
- **Telephony and messaging**: `"phone"`, `"hangup"`, `"contacts"`, `"user"`, `"sms"`, `"reply"`, `"in_call"`, `"out_call"`, `"missed_call"`, `"sim"`, `"signal"`, `"ussd"`, `"voicemail"`
- **Connectivity and hardware**: `"wifi"`, `"bluetooth"`, `"globe"`, `"hotspot"`, `"usb"`, `"torch"`, `"sun"`, `"speaker"`, `"earpiece"`, `"mute"`, `"mic"`, `"mic_off"`, `"bell"`, `"vibrate"`, `"silent"`, `"dnd"`, `"camera"`, `"battery"`, `"lock"`
- **Files, media, and UI actions**: `"folder"`, `"file"`, `"image"`, `"music"`, `"Gamepad"`, `"term"`, `"theme"`, `"settings"`, `"search"`, `"plus"`, `"edit"`, `"trash"`, `"check"`, `"close"`, `"info"`, `"warning"`, `"star"`, `"refresh"`, `"copy"`, `"sort"`, `"eye"`, `"backspace"`, `"up"`, `"down"`, `"left"`, `"right"`
---
## 3. C SDK Reference (`/usr/include/neoui.h`)
## 3. C SDK reference (`/usr/include/neoui.h`)
### 3.1 Compiling C Applications on the Device
### 3.1 Compiling C applications on the device
```bash
gcc -O2 myapp.c -lneoui -o myapp
```
### 3.2 C Function Summary
### 3.2 C function summary
#### Window & Daemon Lifecycle
#### Window and daemon lifecycle
```c
int neoui_init(const char* app_name, int preload_mode);
int neoui_init_ex(const char* app_name, const char* res_name,
@@ -163,7 +163,7 @@ int neoui_end_frame(void);
int neoui_flush(void);
```
#### Unified `.Xresources` / `.xth` Theme & Icon Resolution
#### Unified `.Xresources` / `.xth` theme and icon resolution
```c
int neoui_reload_theme(void);
int neoui_check_reload_theme(void);
@@ -184,7 +184,7 @@ const char* neoui_format_hex_rgb(uint32_t rgb);
const char* neoui_icon(const char* icon_name);
```
#### Drawing Primitives, Text & Image Rendering
#### Drawing primitives, text, and image rendering
```c
int neoui_clear(uint32_t rgb);
int neoui_fill_rect(int x, int y, int w, int h, uint32_t rgb);
@@ -208,7 +208,7 @@ int neoui_draw_image_file(const char* path, int x, int y, int w, int h,
int scale_mode);
```
#### Standardized OS Shell Widgets
#### Standardized OS shell widgets
```c
int neoui_draw_header(const char* icon_str, int icon_color_role,
const char* title, const char* right_badge);
@@ -265,7 +265,7 @@ int neoui_show_toast(const char* message, int duration_ms);
int neoui_clear_toast(void);
```
#### Event Loop, Keypad & Multi-Tap Input
#### Event loop, keypad, and multi-tap input
```c
int neoui_poll_event(int timeout_ms);
int neoui_event_key(void);
@@ -289,14 +289,14 @@ const char* neoui_input_candidate_bar(const char* idle_hint);
int neoui_draw_multitap_bar(int x, int y, int w, int h, const char* idle_hint);
```
#### System & IPC Utilities
#### System and IPC utilities
```c
int neoui_send_plugin_cmd(const char* plugin_name, const char* cmd);
int neoui_vibrate(int duration_ms);
int neoui_now_ms(void);
```
### 3.3 Minimal C Example
### 3.3 Minimal C example
```c
#include <neoui.h>
#include <stdio.h>
@@ -348,18 +348,18 @@ int main(void) {
---
## 4. C++20 SDK Reference (`namespace bananarchy`)
## 4. C++20 SDK reference (`namespace bananarchy`)
When `#include <neoui.h>` is compiled under C++, it also exposes the `bananarchy` namespace used by Bananarchy's native DWM plugins (`src/dwm-plugins/*.cpp` and `src/xdrawer/xdrawer.cpp`).
### 4.1 Compiling C++ Applications or Plugins
### 4.1 Compiling C++ applications or plugins
```bash
g++ -O2 -std=c++17 myapp.cpp \
$(pkgconf --cflags --libs x11 xft fontconfig freetype2 pango pangoxft) \
-lneoui -o myapp
```
### 4.2 Core C++ Classes & Helpers
### 4.2 Core C++ classes and helpers
- **`bananarchy::ThemeSpec`**:
- Holds all 29 RGB color tokens (`bgMain`, `bgHeader`, `bgFooter`, `selBg`, `selFg`, `accent`, `fgMain`, `fgBright`, `fgMuted`, `border`, `divider`, `success`, `info`, `warning`, `danger`, etc.), `fontFace`, `iconFontFace`, and `baseFontSize`.
- Methods: `loadActive(dpy, screen)`, `loadFromFile(path)`, `saveToFile(path)`, `serializeXresources()`, `recomputeDerivedFromCore()`, `colorById(id)`, `sizeSmall()`, `sizeMain()`, `sizeIcon()`, `sizeLarge()`.
@@ -377,7 +377,7 @@ g++ -O2 -std=c++17 myapp.cpp \
- `void drawToast(msg, softbarH = 26)`
- `void clearBg()` / `void present()`
- `bool checkReloadTheme()` / `void reloadTheme()`
- **Shared Text, Multi-Tap & Image Helpers in `libneoui.so`**:
- **Shared text, multi-tap, and image helpers in `libneoui.so`**:
- `std::string formatMultiTapBar(prefix, table, activeIdx, makeUpper, maxItems = 7, maxChars = 21)`: formats a scrolling candidate bar window centered around `activeIdx` so long symbol sequences (such as the 33-character `1` key table) never overflow the `240px` viewport.
- `std::string tailFitPangoText(layout, text, maxWidthPx)`: returns the UTF-8 suffix of `text` that fits within `maxWidthPx`.
- `bool loadImageRgb24(path, &outRgb, &outW, &outH)`: decodes JPEG (`libjpeg-turbo`), PNG (`libpng`), or other formats (`ffmpeg` fallback) into 24-bit RGB.
@@ -388,12 +388,12 @@ g++ -O2 -std=c++17 myapp.cpp \
---
## 5. Yabasic SDK Reference (`neoui.yab`)
## 5. Yabasic SDK reference (`neoui.yab`)
Bananarchy includes `/home/user/Projects/neoui.yab` (symlinked to `/usr/lib/neoui.yab`), which wraps every C FFI function in `/usr/lib/libneoui.so` using Yabasic's native `libffi` foreign function interface (`frnfn_call` and `frnfn_call$`).
### 5.1 Running Yabasic NeoUI Programs
- **From the File Manager (`xfiles`)**: navigate to `/home/user/Projects/`, highlight `neoui_demo.yab` (or your own `.yab` file), and press **Center `OK` (`Return`)**.
### 5.1 Running Yabasic NeoUI programs
- **From the file manager (`xfiles`)**: navigate to `/home/user/Projects/`, highlight `neoui_demo.yab` (or your own `.yab` file), and press **Center `OK` (`Return`)**.
- **From a terminal or SSH**:
```bash
DISPLAY=:0 yabasic ~/Projects/neoui_demo.yab
@@ -407,9 +407,9 @@ import neoui
- All exported subroutines can be called directly (e.g. `neoui_init("myapp", 0)`, `neoui_draw_header(...)`) or qualified with `neoui.` (`neoui.neoui_init(...)`).
- All module constants are accessed with the `neoui.` prefix (e.g. `neoui.TEXT_YELLOW`, `neoui.FONT_MAIN`, `neoui.COLOR_ACCENT`, `neoui.EV_KEY_PRESS`, `neoui.KEY_OK`).
### 5.3 Exported Yabasic Functions in `neoui.yab`
### 5.3 Exported Yabasic functions in `neoui.yab`
#### 1. Window & Frame Lifecycle
#### 1. Window and frame lifecycle
- `neoui_init(app_name$, preload_mode)` -> `1` on success, `0` on error
- `neoui_init_ex(app_name$, res_name$, res_class$, win_title$, x, y, w, h, override_redirect, preload_mode)`
- `neoui_shutdown()`
@@ -418,7 +418,7 @@ import neoui
- `neoui_width()` / `neoui_height()`
- `neoui_begin_frame()` / `neoui_end_frame()` / `neoui_flush()`
#### 2. Theme, Color & Icon Resolution
#### 2. Theme, color, and icon resolution
- `neoui_reload_theme()` / `neoui_check_reload_theme()`
- `neoui_apply_theme_file(xth_path$)` / `neoui_broadcast_theme_reload(skip_plugin$)`
- `neoui_theme_name$()` / `neoui_font_face$()` / `neoui_icon_font_face$()`
@@ -428,7 +428,7 @@ import neoui
- `neoui_parse_hex_rgb(hex_str$, fallback_rgb)` / `neoui_format_hex_rgb$(rgb)`
- `neoui_icon$(icon_name$)`
#### 3. Drawing Primitives, Text & Images
#### 3. Drawing primitives, text, and images
- `neoui_clear(rgb)`
- `neoui_fill_rect(x, y, w, h, rgb)` / `neoui_draw_rect(x, y, w, h, rgb)`
- `neoui_draw_line(x1, y1, x2, y2, rgb)`
@@ -440,7 +440,7 @@ import neoui
- `neoui_text_width(font_role, text$)` / `neoui_tail_fit_text$(font_role, text$, max_w)`
- `neoui_draw_image_file(path$, x, y, w, h, scale_mode)`
#### 4. Standardized OS Shell Widgets
#### 4. Standardized OS shell widgets
- `neoui_draw_header(icon_str$, icon_color_role, title$, right_badge$)`
- `neoui_draw_header_ex(h, icon_str$, icon_color_role, title$, title_color_role, right_badge$, right_color_role)`
- `neoui_draw_tabs(pipe_labels$, active_idx, y, h)`
@@ -458,7 +458,7 @@ import neoui
- `neoui_draw_menu_popup(pipe_items$, pipe_icons$, selected_idx, max_visible_rows)`
- `neoui_draw_toast(message$)` / `neoui_show_toast(message$, duration_ms)` / `neoui_clear_toast()`
#### 5. Event Loop, Keypad & Multi-Tap Input
#### 5. Event loop, keypad, and multi-tap input
- `neoui_poll_event(timeout_ms)`
- `neoui_event_key()` / `neoui_event_keycode()` / `neoui_event_keysym()` / `neoui_event_command$()`
- `neoui_set_chord_xdrawer(enabled)`
@@ -467,12 +467,12 @@ import neoui
- `neoui_input_feed_key(neo_key)` / `neoui_input_commit_tap()` / `neoui_input_backspace()` / `neoui_input_is_tap_active()`
- `neoui_input_candidate_bar$(idle_hint$)` / `neoui_draw_multitap_bar(x, y, w, h, idle_hint$)`
#### 6. System & IPC Utilities
#### 6. System and IPC utilities
- `neoui_send_plugin_cmd(plugin_name$, cmd$)`
- `neoui_vibrate(duration_ms)`
- `neoui_now_ms()`
### 5.4 Minimal Yabasic Starter Template
### 5.4 Minimal Yabasic starter template
```yabasic
#!/usr/bin/yabasic
import neoui