1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

term.ui, vweb, v: update deprecated functions (#18726)

This commit is contained in:
Turiiya
2023-07-02 08:38:33 +02:00
committed by GitHub
parent 5d4c2cd832
commit a27f2ddcc3
18 changed files with 32 additions and 32 deletions

View File

@@ -39,7 +39,7 @@ fn main() {
frame_fn: frame
hide_cursor: true
)
app.tui.run()?
app.tui.run()!
}
```

View File

@@ -44,7 +44,7 @@ fn load_title() {
}
// run sets up and starts the terminal.
pub fn (mut ctx Context) run() ? {
pub fn (mut ctx Context) run() ! {
if ctx.cfg.use_x11 {
ctx.fail('error: x11 backend not implemented yet')
exit(1)

View File

@@ -101,7 +101,7 @@ pub fn init(cfg Config) &Context {
}
// run starts the windows console or restarts if it was paused.
pub fn (mut ctx Context) run() ? {
pub fn (mut ctx Context) run() ! {
frame_time := 1_000_000 / ctx.cfg.frame_rate
mut init_called := false
mut sw := time.new_stopwatch(auto_start: false)