mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
term.ui: add support for multi byte/UTF-8 events (#13274)
This commit is contained in:
@ -6,6 +6,9 @@ module ui
|
||||
struct ExtraContext {
|
||||
mut:
|
||||
read_buf []byte
|
||||
// read_all_bytes causes all the raw bytes to be read as one event unit.
|
||||
// This is cruicial for UTF-8 support since Unicode codepoints can span several bytes.
|
||||
read_all_bytes bool = true
|
||||
}
|
||||
|
||||
const ctx_ptr = &Context(0)
|
||||
|
Reference in New Issue
Block a user