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

test-cleancode: check some of the examples too

This commit is contained in:
Delyan Angelov
2021-02-04 17:34:49 +02:00
parent 3e4e0a35e3
commit 32cc95a340
8 changed files with 67 additions and 55 deletions

View File

@ -31,15 +31,17 @@ fn event(e &tui.Event, x voidptr) {
}
}
mut app := &App{}
app.tui = tui.init(
user_data: app
event_fn: event
window_title: 'V term.ui event viewer'
hide_cursor: true
capture_events: true
frame_rate: 60
use_alternate_buffer: false
)
println('V term.ui event viewer (press `esc` to exit)\n\n')
app.tui.run() ?
fn main() {
mut app := &App{}
app.tui = tui.init(
user_data: app
event_fn: event
window_title: 'V term.ui event viewer'
hide_cursor: true
capture_events: true
frame_rate: 60
use_alternate_buffer: false
)
println('V term.ui event viewer (press `esc` to exit)\n\n')
app.tui.run() ?
}