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

term.ui: use the new [flag] enums (#8881)

This commit is contained in:
spaceface
2021-02-21 15:07:49 +01:00
committed by GitHub
parent 0470baafa6
commit 260f677469
8 changed files with 92 additions and 81 deletions

View File

@@ -15,6 +15,9 @@ mut:
fn event(e &tui.Event, x voidptr) {
mut app := &App(x)
println(e)
if e.typ == .key_down && e.code == .escape {
exit(0)
}
}
fn frame(x voidptr) {
@@ -77,11 +80,6 @@ In the case of the various callbacks, they will not be fired if a handler has no
#### FAQ
Q: Why does this module not work on Windows?
A: As with many other things, Windows has a completely different and incompatible way of handling
input parsing and drawing primitives, and support has not been implemented yet.
Contributions are definitely welcome though.
Q: My terminal (doesn't receive events / doesn't print anything / prints gibberish characters),
what's up with that?
A: Please check if your terminal. The module has been tested with `xterm`-based terminals on Linux