Portals0.7.0 · dev (544a5c68c72e · 2026-11-28 UTC)
Loading...
Searching...
No Matches
portals::legacy Namespace Reference

Minimal streaming compatibility for the original MarketDepthModelSample. This API does not run an Application, perform rendering, or own a terminal session. The caller serializes and flushes output and must not mix it with an active Application. More...

Classes

struct  VirtualTerminal
 Enable VT interpretation on the process's existing standard output. This stateless compatibility utility neither changes input mode nor opens a console. It does not restore output mode; use the retained Application for an owned terminal lifetime. More...

Functions

std::string moveTo (std::size_t line, std::size_t column)
 Return a cursor-position sequence without performing I/O.
std::string hideCursor ()
 Return the VT cursor-hide sequence; ignoring the result has no effect.
std::string showCursor ()
 Return the VT cursor-show sequence; ignoring the result has no effect.

Detailed Description

Minimal streaming compatibility for the original MarketDepthModelSample. This API does not run an Application, perform rendering, or own a terminal session. The caller serializes and flushes output and must not mix it with an active Application.

Function Documentation

◆ hideCursor()

std::string portals::legacy::hideCursor ( )

Return the VT cursor-hide sequence; ignoring the result has no effect.

Returns
Owning ESC[?25l string; the caller must output and flush it.
Exceptions
std::bad_allocIf string allocation fails.

◆ moveTo()

std::string portals::legacy::moveTo ( std::size_t line,
std::size_t column )

Return a cursor-position sequence without performing I/O.

Parameters
lineVT row number, normally one-based. Zero is emitted unchanged and means row one in VT.
columnVT column number, normally one-based. Zero is emitted unchanged and means column one in VT.
Returns
Owning ESC[line;columnH string, suitable for concatenation and stream insertion. Coordinates are not converted from CellPoint's zero-based convention or clamped to screen bounds.
Exceptions
std::bad_allocIf string allocation fails.

◆ showCursor()

std::string portals::legacy::showCursor ( )

Return the VT cursor-show sequence; ignoring the result has no effect.

Returns
Owning ESC[?25h string; the caller must output and flush it.
Exceptions
std::bad_allocIf string allocation fails.