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

174 Commits

Author SHA1 Message Date
e9a3817aed checker: disallow enum initalization (#17361) 2023-02-19 22:22:07 +01:00
b13f7118ab os,term: fix C.tcsetattr declaration (add missing int return type) 2023-02-13 15:16:23 +02:00
988aed0353 ci: fix broken tests after 322eb81 2023-02-01 23:30:48 +02:00
90dbf683d5 term: add missing documentation for all remaining public functions (#17044) 2023-01-20 11:07:28 +02:00
b69f9419f0 term: add missing documentation for all public functions in colors.v (#17033) 2023-01-19 09:09:09 +02:00
b19db3a207 ci,term: add a term.set_tab_title/1 shim for windows too (for now just calling term.set_terminal_title/1) 2023-01-14 15:10:12 +02:00
6adafbb6ea term: add a separate term.set_tab_title/1 API for controling the current tab title in emulators like Konsole, that support many tabs 2023-01-14 12:00:39 +02:00
7c571c0945 term: fix set_terminal_title on nix 2023-01-14 11:08:49 +02:00
5acd855525 term: add format_esc/1 (#16574) 2022-12-03 14:01:39 +02:00
2d9808b2dc term: add term.slow_blink/1 and term.rapid_blink/1 (#16470) 2022-11-18 19:03:14 +02:00
017ace6ea7 vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
992b502198 db, json, time, term: change optional to result (#16201) 2022-10-26 11:26:28 +03:00
a3b050aced vrepl: add support for Home and End keys (#16116) 2022-10-20 20:07:57 +03:00
71bff213ef builtin: make the C. WIN32 API declarations more precise, to catch errors earlier (#16090) 2022-10-17 20:23:33 +03:00
f0871b87a4 term: fix errors in input_windows.c.v (#15966) 2022-10-05 13:24:22 +03:00
b584e1df98 checker: allow EnumName(number) casts only inside unsafe{} blocks (#15932) 2022-10-02 22:39:11 +03:00
41dbd12bc4 tests: make error handling the same as the main function (#15825) 2022-09-21 19:45:43 +03:00
9099594a49 all: wrap up unsafe { nil } (p. 3) 2022-07-21 21:01:30 +03:00
a68d03ac59 checker: allow x := unsafe { nil } 2022-07-21 20:56:24 +03:00
90197fd58a term.ui: make C. unions and structs public (solve conflicts with term on windows) 2022-07-04 10:50:19 +03:00
c160ba2a8d checker: stricter mutable reference check (fix #14803) (#14805) 2022-06-21 13:23:21 +03:00
de136f6baf checker: improve pub struct check (fix #14446) (#14777) 2022-06-19 17:42:22 +03:00
5ac9b5c9f1 term.ui: don't print event data in readme example (vlang#14719) (#14720) 2022-06-08 09:36:22 +03:00
0f3b2c2ae7 builtin: use C.fwrite (buffered) for _write_buf_to_fd (#14558) 2022-05-30 19:15:05 +03:00
17bba712bd checker: ban unsafe pointer/fn comparison (#14462) 2022-05-20 18:30:16 +03:00
d679146a80 fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
4400efeb9f checker: Revert part of small_unsigned == signed (#13967) (#14075)
`gcc -W` doesn't error for e.g. u16 == i32, only for u32 == i16.
Any u16 value can fit in an i32.
2022-04-18 21:30:09 +03:00
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
fb192d949b all: replace []byte with []u8 2022-04-15 15:35:35 +03:00
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
014c3c97f0 all: byte => u8 2022-04-15 14:45:52 +03:00
c780de6282 checker: disallow 'small_unsigned == signed' (#13967) 2022-04-12 19:37:30 +03:00
60e718e7c6 test: save removing the nonexistent binary output for v fmt and v vet tests 2022-04-09 13:04:52 +03:00
0bd8fbc9a8 term, term.ui: fix a panic on !=linux unixes when running examples/term.ui/ 2022-04-04 19:25:25 +03:00
04cc037955 ci: fix -cstrict compilation of term.ui tests 2022-03-29 18:03:05 +03:00
4f551d76c0 term.ui: fix conflicting C struct declarations when compiling programs, importing term.ui before term, on windows 2022-03-29 09:31:24 +03:00
f74b65b63f docs: change term.input to term.ui in vlib/term/README.md 2022-03-06 15:50:22 +02:00
74d5106e8f cli: print cli errors in red where possible (#13647) 2022-03-04 12:28:11 +02:00
28ddd8440a term.ui: add support for multi byte/UTF-8 events (#13274) 2022-01-25 14:46:48 +02:00
32f2f0dfa1 term.ui: fix shift notices, remove warning for main example 2022-01-24 20:11:36 +02:00
a60b381d5e docs: adding skeleton README.md files for all vlib modules (#13034) 2022-01-05 18:06:08 +02:00
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
2733319879 term: fix a leak in _test.v files in the default test runner without -autofree 2021-11-17 20:39:08 +02:00
814b4ebb4c term: get_terminal_size() for js_node, term.clear() for all js backends (#12189) 2021-10-15 10:10:40 +03:00
c29a5cdedb term: fix readme typo (#12180) 2021-10-15 06:08:31 +03:00
108a01d65f fmt: fix unnecessary line break in array init (fix #11448) (#11562) 2021-09-21 16:20:09 +03:00
c6ff687e8a term: do not put the unused c_line field in C.termios in declarations_linux.c.v (breaks BSD build) 2021-09-06 19:15:47 +03:00
166dd61e90 Revert "Revert "term: obtain the cursor position via termios.h (#11372)""
This reverts commit 0376cbf6bd.
2021-09-06 19:04:14 +03:00
0376cbf6bd Revert "term: obtain the cursor position via termios.h (#11372)"
This reverts commit af28d09630.
2021-09-06 18:21:55 +03:00
af28d09630 term: obtain the cursor position via termios.h (#11372) 2021-09-06 17:24:39 +03:00