1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
v/vlib
bpryer 3f7970db52
term: add get_cursor_position and set_terminal_title (#6279)
* added functions

added:
  - get_cursor_position()
  - set_terminal_title(title string)

* implement term.get_cursor_position and term.set_terminal_title on unix

* Cleanup

* make x,y fields of term.Coord mutable

* fix vrepl compilation

* use more descriptive var names in term_test.v

* do not change the current terminal title in dumb terminals; do not test term.set_terminal_title outside of CI

* unix: in term.set_terminal_title, return true even for dumb terminals

Co-authored-by: Brent Pryer <brent@pryermachine.com>
Co-authored-by: Delyan Angelov <delian66@gmail.com>
2020-09-08 22:00:10 +03:00
..
arrays arrays: common methods - min, max, idx_min, idx_max, shuffle, merge (#6177) 2020-09-07 13:50:53 +02:00
benchmark tests: parallelize compiler_errors_test.v using channels & threads 2020-08-07 16:44:49 +03:00
bitfield cgen: treat the main module like any other v module 2020-07-01 00:53:53 +02:00
builtin builtin: fix in for various numeric types (#6311) 2020-09-06 12:45:02 +02:00
cli all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00
clipboard clipboard: wrap pointer indexing in unsafe block (#6178) 2020-08-20 10:33:12 +02:00
crypto all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00
darwin gg: image: return an optional instead of panic(); darwin: fix nsstring() 2020-08-22 17:09:30 +02:00
dl builder: use .dylib for -shared builds in macOS 2020-05-29 04:52:19 +02:00
encoding all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00
eventbus eventbus: update test and docs too 2020-07-28 19:08:16 +03:00
flag vlib: transfer intro to readme; normalize comments 2020-06-08 00:04:23 +03:00
fontstash v2: simplify the type system; an initial version of the V interpreter 2020-02-02 07:56:18 +01:00
gg all: rune type for `` literals 2020-08-27 06:46:37 +02:00
glm glm: fix pointer indexing warnings (#6215) 2020-08-25 08:48:05 +02:00
gx gg: minor fixes 2020-08-20 08:32:05 +02:00
hash hash: use match expression with ranges (#6046) 2020-08-04 20:09:58 +02:00
io io: introduce a go-like io.util module (#6323) 2020-09-08 14:17:01 +02:00
json json: maps, memory leak, and error forwarding (#6116) 2020-08-16 02:30:37 +02:00
live vdoc: cleanup warnings on ./v doc -s vlib 2020-08-28 09:03:22 +03:00
log log: avoid the deprecated .is_opened() method (#6039) 2020-08-03 02:35:08 +03:00
math vdoc: cleanup warnings on ./v doc -s vlib 2020-08-28 09:03:22 +03:00
mysql builtin: x.vstring() instead of string(x) (#6102) 2020-08-10 18:05:26 +02:00
net autofree: lots of fixes 2020-09-05 12:00:35 +02:00
orm orm: add delete stmt (#5725) 2020-07-07 16:55:32 +02:00
os os: fix os.mv edge case and Windows style paths (#6302) 2020-09-06 13:12:07 +02:00
os2 vlib: use new filename format 2020-04-11 19:51:32 +02:00
pg all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00
picoev examples: fix v build-examples 2020-07-24 13:29:47 +03:00
picohttpparser parser: error on [unsafe_fn] (#6090) 2020-08-09 12:22:11 +03:00
rand builtin: x.vstring() instead of string(x) (#6102) 2020-08-10 18:05:26 +02:00
readline term: add get_cursor_position and set_terminal_title (#6279) 2020-09-08 22:00:10 +03:00
regex cc: add support for tcc backend on windows-i386 (#6297) 2020-09-08 15:15:35 +02:00
runtime runtime: simplify nr_cpus(), add a test for nr_jobs() 2020-07-20 17:36:44 +03:00
sokol sokol: add new mouse_dx and mouse_dy fields (fix for Android multitouch) 2020-08-24 23:01:14 +03:00
sqlite time: add .format_ss_milli and .format_ss_micro methods 2020-07-21 11:58:33 +03:00
stbi gg: image: return an optional instead of panic(); darwin: fix nsstring() 2020-08-22 17:09:30 +02:00
strconv strconv: fix f64_to_str_lnd and f64_to_str_l after 6921d46 2020-08-27 14:22:04 +03:00
strings all: rune type for `` literals 2020-08-27 06:46:37 +02:00
sync fmt: add support for chan types and operations (#6328) 2020-09-08 00:36:05 +02:00
szip szip: make compile (#6314) 2020-09-06 15:04:27 +02:00
term term: add get_cursor_position and set_terminal_title (#6279) 2020-09-08 22:00:10 +03:00
time sync/channels: provide `try_push(), try_pop() as public methods (#6101) 2020-08-10 18:06:42 +02:00
v checker: simplify argument qualifier errors (#6321) 2020-09-08 19:34:17 +02:00
vweb vweb: hide debug prints 2020-08-31 19:39:46 +02:00
x cc: add support for tcc backend on windows-i386 (#6297) 2020-09-08 15:15:35 +02:00
.vdocignore vdoc: parse with enable_globals: true 2020-08-28 08:53:12 +03:00