Files
herolib/lib/ui/generic/log.v
2025-10-12 12:30:19 +03:00

31 lines
714 B
V

module generic
// import incubaid.herolib.ui.console
// import incubaid.herolib.ui.telegram { UITelegram }
import incubaid.herolib.ui.uimodel
// log content to the log panel (not every UI has this capability)
// ```
// args:
// content string
// clear bool //means screen is reset for content above
// lf_before int //line feed before content
// lf_after int
// cat LogCat
// defines colors as used in the representation layer
// enum LogCat {
// info
// log
// warning
// header
// debug
// error
// }
// ```
pub fn (mut c UserInterface) log(args uimodel.LogArgs) ! {
// match mut c.channel {
// UIConsole { return c.channel.log(args)! }
// else { panic("can't find channel") }
// }
}