31 lines
714 B
V
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") }
|
|
// }
|
|
}
|