ghostty_terminal_scroll_viewport function
- @Native<Void Function(GhosttyTerminal, GhosttyTerminalScrollViewport)>(GhosttyTerminal, GhosttyTerminalScrollViewport)>()
- GhosttyTerminal terminal,
- GhosttyTerminalScrollViewport behavior
Scroll the terminal viewport.
Scrolls the terminal's viewport according to the given behavior. When using GHOSTTY_SCROLL_VIEWPORT_DELTA, set the delta field in the value union to specify the number of rows to scroll (negative for up, positive for down). For other behaviors, the value is ignored.
@param terminal The terminal handle (may be NULL, in which case this is a no-op) @param behavior The scroll behavior as a tagged union
@ingroup terminal
Implementation
@ffi.Native<ffi.Void Function(GhosttyTerminal, GhosttyTerminalScrollViewport)>()
external void ghostty_terminal_scroll_viewport(
GhosttyTerminal terminal,
GhosttyTerminalScrollViewport behavior,
);