GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
text_surface(3) FreeBSD Library Functions Manual text_surface(3)

text_surface - Create a simplified text video object

vid
text_surface( int:rows, int:cols, vid:inplace, table:rowtable )

This creates a surface that is backed by a TUI screen of rows and cols maximum dimensions. It works as a cheaper form of render_text as a way of retaining text contents for later querying and modification, without the parsing complexity and volatility of render_text .

The contents of rowtable is a table for each row to populate, with an optional int:y and int:x to skip to specific positions to avoid having a number of empty cells. Each n-indexed entry in the rowtable can be either a string or an attribute table which are covered below.

This is marked experimental still as some details are yet to be fleshed out and subject to change, mainly how one can alter the internal font representation (currently uses the set default system font), get feedback on shaped line offsets, query for picking, shaping, processing direction and ligature substitutions.

-- @group: image
-- @cfunction: textsurface
-- @related: render_text
function text_surface0()

show_image(text_surface(1, 10, {{"hi there"}})) end

-- @group: image
-- @cfunction: textsurface
-- @related: render_text
function text_surface1()

show_image(text_surface(1, 10, {{"hi", {bold = true, fr = 255, fg = 0, fb = 0}, "there"}}) end
July 2025 Arcan Lua API

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.