1
0
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:
Nahua
2023-01-20 10:07:28 +01:00
committed by GitHub
parent 25f1b713aa
commit 90dbf683d5
4 changed files with 33 additions and 11 deletions

View File

@ -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')