Skip to content

Latest commit

 

History

History

InlineCLI

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

InlineCLI ExampleDemonstrates Terminal.Gui's Inline rendering mode, which renders UI inline withinthe primary (scrollback) terminal buffer instead of switching to the alternate screen buffer.## How It WorksSetting Application.AppModel = AppModel.Inline before calling Init() tellsTerminal.Gui to:1. Skip the alternate screen buffer ΓÇö no CSI ?1049h is emitted.2. Render in the primary buffer ΓÇö output appears below the shell prompt.3. Exit cleanly ΓÇö no CSI ?1049l is emitted; the shell prompt appears naturally below the rendered content, which stays in scrollback history.## Runningbashdotnet run --project Examples/InlineCLI## APIcsharp// Set Inline mode BEFORE InitApplication.AppModel = AppModel.Inline;IApplication app = Application.Create ().Init ();app.Run<MyView> ();app.Dispose ();## InspirationThis mode is inspired by tools like:- Claude Code CLI- GitHub Copilot CLI- Ink (React for terminals)