James Harris
2021-07-14 13:56:31 UTC
Is there already a good standard way to interface with a textual
display? What I'm looking for is a pre-defined set of calls which I can
just implement rather than having to design from scratch.
For example,
* calls to manage display windows
* calls to manage widgets which go in those windows
* options, for example what to do when a line of text would extend past
the right-hand side of the available space (wrap or not), how to render
a window's borders, what controls a window should have, how elements
should be placed within windows, etc
AISI there are naturally:
Windows which are populated with various widgets
Widgets of various types, each having its own behaviour, which are
placed in windows.
To implement a terminal perhaps a widget could provide a scrollable view
into a text buffer with an input field at the bottom. Not sure.
Ideally, the calls would work whether they were interacting with a TUI
or a GUI so I guess I could follow a GUI standard. But I suspect that
that's getting rather complicated. :-(
Any suggestions?
display? What I'm looking for is a pre-defined set of calls which I can
just implement rather than having to design from scratch.
For example,
* calls to manage display windows
* calls to manage widgets which go in those windows
* options, for example what to do when a line of text would extend past
the right-hand side of the available space (wrap or not), how to render
a window's borders, what controls a window should have, how elements
should be placed within windows, etc
AISI there are naturally:
Windows which are populated with various widgets
Widgets of various types, each having its own behaviour, which are
placed in windows.
To implement a terminal perhaps a widget could provide a scrollable view
into a text buffer with an input field at the bottom. Not sure.
Ideally, the calls would work whether they were interacting with a TUI
or a GUI so I guess I could follow a GUI standard. But I suspect that
that's getting rather complicated. :-(
Any suggestions?
--
James Harris
James Harris