mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
term: add missing documentation for all remaining public functions (#17044)
This commit is contained in:
@ -13,6 +13,7 @@ mut:
|
||||
|
||||
const ctx_ptr = &Context(0)
|
||||
|
||||
// init initializes the terminal console with Config `cfg`.
|
||||
pub fn init(cfg Config) &Context {
|
||||
mut ctx := &Context{
|
||||
cfg: cfg
|
||||
@ -42,6 +43,7 @@ fn load_title() {
|
||||
flush_stdout()
|
||||
}
|
||||
|
||||
// run sets up and starts the terminal.
|
||||
pub fn (mut ctx Context) run() ? {
|
||||
if ctx.cfg.use_x11 {
|
||||
ctx.fail('error: x11 backend not implemented yet')
|
||||
|
Reference in New Issue
Block a user