Skip to main content

Module geom

Module geom 

Source
Expand description

Pure geometry helpers for host-driven mouse translation.

These helpers are host-agnostic: they operate on doc-space coordinates (row/col in chars) and tab-expanded visual columns. The TUI host and any future GUI host use them independently after doing their own pixel-or-cell → visual-column conversion.

Functions§

visual_col_to_char_col
Inverse of visual_col_for_char (which lives in hjkl-engine).