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

@@ -34,6 +34,7 @@ fn restore_terminal_state() {
os.flush()
}
// init initializes the context of a windows console given the `cfg`.
pub fn init(cfg Config) &Context {
mut ctx := &Context{
cfg: cfg
@@ -99,6 +100,7 @@ pub fn init(cfg Config) &Context {
return ctx
}
// run starts the windows console or restarts if it was paused.
pub fn (mut ctx Context) run() ? {
frame_time := 1_000_000 / ctx.cfg.frame_rate
mut init_called := false