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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user