From: james.harris.1@gmail.com   
      
   On 14/07/2021 15:27, Branimir Maksimovic wrote:   
   > On 2021-07-14, James Harris wrote:   
   >> 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?   
   >   
   > Why do you need widgets and what that would be?   
      
   Not sure what you mean. Widgets would support user interaction. See   
   https://en.wikipedia.org/wiki/Graphical_widget#List_of_common_generic_widgets   
   for examples.   
      
      
   --   
   James Harris   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|