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:
@@ -39,7 +39,7 @@ fn main() {
|
||||
frame_fn: frame
|
||||
hide_cursor: true
|
||||
)
|
||||
app.tui.run()?
|
||||
app.tui.run()!
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user