v/examples
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
..
2048 gen: fix multiple call of expression in match (#6324) 2020-09-08 00:38:24 +02:00
assets/fonts examples: add license files for fonts 2020-03-07 14:14:37 +01:00
compiletime comp_for: allow checking full mehod and arg types (#5997) 2020-08-27 15:00:44 +02:00
concurrency examples/concurrency: cleanup (#6018) 2020-07-29 20:11:08 +03:00
database examples: fix sqlite.v 2020-06-16 12:27:47 +02:00
eventbus checker: add error for `fn f() Struct { return &Struct{} }` (#6019) 2020-07-29 21:40:43 +02:00
game_of_life gg: GG => Context 2020-06-04 20:26:18 +02:00
gg examples/gg/rectangles.v: add missing logo.png picture 2020-08-05 19:56:01 +03:00
hot_reload examples: fix graph for hdpi screens 2020-08-30 19:58:15 +03:00
linear_regression .gitignore: ignore all binary files by default 2020-04-29 16:49:13 +02:00
pico examples: fix `v build-examples` 2020-07-24 13:29:47 +03:00
smtp examples: add example for using the SMTP module (#5870) 2020-07-18 15:59:54 +03:00
sokol gen: fix multiple call of expression in match (#6324) 2020-09-08 00:38:24 +02:00
tetris gg: fixes and Android support (#6161) 2020-08-19 07:10:42 +02:00
vcasino examples: update vcasino.v (#5880) 2020-07-22 20:45:55 +03:00
vweb gen: fix multiple call of expression in match (#6324) 2020-09-08 00:38:24 +02:00
word_counter .gitignore: ignore all binary files by default 2020-04-29 16:49:13 +02:00
x/websocket all: TypeSymbol.source_name (#6187) 2020-08-22 12:29:15 +02:00
x64 make v build-examples work: part 1 2020-06-02 16:09:41 +02:00
.gitignore .gitignore: ignore all binary files by default 2020-04-29 16:49:13 +02:00
cli.v examples: fix a typo in the cli example (#6237) 2020-08-27 23:15:49 +03:00
fetch.v http: mutable request fields 2020-04-28 13:57:48 +02:00
fibonacci.v examples: fix fibonacci warning 2020-05-13 15:51:17 +03:00
fizz_buzz.v examples: reorganize 2020-03-21 09:47:38 +01:00
hanoi.v all: unify const names to snake_case 2020-05-22 17:36:09 +02:00
hello_v_js.v examples: reorganize 2020-03-21 09:47:38 +01:00
hello_world.v examples: reorganize 2020-03-21 09:47:38 +01:00
json.v parser: check `(mut f Foo)` syntax 2020-05-17 13:51:18 +02:00
lander.v all: remove `it` smartcast and replace with original variable name (#5764) 2020-07-09 17:14:14 +02:00
links_scraper.v http: refactor and reduce duplication 2020-01-16 18:16:11 +01:00
log.v log: fix example error 2020-04-06 17:22:53 +02:00
mini_calculator.v examples: vfmt calculator.v 2020-08-23 16:18:37 +02:00
nbody.v examples: fix `v build-examples` 2020-07-24 13:29:47 +03:00
net_raw_http.v parser: add an error for `import mod.sub as mod` and `import mod as mod` (#6194) 2020-08-23 02:12:25 +02:00
news_fetcher.v json.decode: fix expressions in the second argument, also fixes news_fetcher.v 2020-05-06 21:44:50 +03:00
path_tracing.v examples: add overflow protection in path_tracing.v, fix randomization 2020-06-15 19:56:19 +03:00
quick_sort.v example: make quick_sort generic (#5898) 2020-07-20 20:17:01 +03:00
random_ips.v examples: remove unused import (#6063) 2020-08-05 05:11:58 +02:00
rune.v add `str` function for `rune` 2019-07-01 17:36:23 +02:00
spectral.v all: change `f mut Foo` to `mut f Foo` 2020-06-04 10:35:40 +02:00
tcp_echo_server.v examples: add client ip logging to examples/tcp_echo_server.v 2020-07-04 14:14:43 +03:00
terminal_control.v term: add get_cursor_position and set_terminal_title (#6279) 2020-09-08 22:00:10 +03:00
v_script.vsh fix examples/v_script.vsh and add it to CI 2019-12-07 18:27:09 +03:00
vmod.v v.mod: remove commas; add example for v.vmod (#6169) 2020-08-19 16:07:10 +02:00
vpwgen.v examples: add a simplified mini (v)pwgen program 2020-07-05 01:44:00 +03:00