99 Commits

Author SHA1 Message Date
Pepper Gray
ce8f62146b
utf8, readline: clarify UTF-8 vs UTF-32 usage (see also #22461) (#22558) 2024-10-18 11:18:31 +03:00
yuyi
ddb6685d8a
fmt: fix and simplify align of struct fields (#21995) 2024-08-05 20:23:39 +03:00
yuyi
581c5c7eeb
readline: fix s := read_line('Message\nName:') on unix/linux (#21930) 2024-07-25 10:44:59 +03:00
Turiiya
1a35a783f1
breaking,checker: disallow initializing private struct fields outside structs module (#21183) 2024-04-12 13:53:02 +03:00
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
Felipe Pena
8d5f95d604
readline: add completion support (#20559) 2024-01-16 23:32:47 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
Turiiya
5b74f3af3e
vlib: use the builtin flush functions, instead of the C. ones (#20108) 2023-12-07 18:24:27 +02:00
gym603
f4937aef9e
repl: make sure the prompt is output before user input (on windows) (#20035) 2023-11-29 18:12:21 +02:00
indexxd
bf00ac656f
readline: remove new line \n character from readline output, now just Enter produces '' (#18934) 2023-07-22 07:01:57 +03:00
indexxd
96ff3ce8f7
readline: add support for ctlr+w and ctrl+u shortcuts (#18921) 2023-07-21 13:20:12 +03:00
l-33ter
9addede0ea
readline: README.md change '?' to '!' (#17868) 2023-04-04 02:51:30 +03:00
Thomas Mangin
580d9cedc7
termios: new termios module (#17792)
* termio: new termio module

move the tcgetattr and tcsetattr functions in a new termio module.
The code needed refactoring as different OS have different fields
size, position and number for the C.termios structure, which
could not be correctly expressed consitently otherwise.

It has the positive side effect to reduce the number of unsafe calls.
New testing code was also added for the readline module as it is
relying of the feature.

* apply 2023 copyright to the new files too
2023-03-30 08:58:52 +03:00
Alexander Medvednikov
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
Thomas Mangin
8490ea318b
readline: add more readline support to macos too (not simply os.get_raw_line based, but arrow key navigation, history etc too) (#17602) 2023-03-12 01:06:35 +02:00
yuyi
017ace6ea7
vfmt: change all '$expr' to '${expr}' (#16428) 2022-11-15 16:53:13 +03:00
yuyi
51f4d99399
all: change optional to result in most of the libraries (#16123) 2022-10-20 22:14:33 +03:00
locriacyber
a3b050aced
vrepl: add support for Home and End keys (#16116) 2022-10-20 20:07:57 +03:00
yuyi
de136f6baf
checker: improve pub struct check (fix #14446) (#14777) 2022-06-19 17:42:22 +03:00
Daniel Däschle
d679146a80
fmt: remove space in front of ? and ! (#14366) 2022-05-13 06:56:21 +03:00
Alexander Medvednikov
fbb9e65c0f all: ~500 more byte=>u8 2022-04-15 18:25:45 +03:00
Alexander Medvednikov
d4a0d6f73c all: byte => u8 2022-04-15 14:58:56 +03:00
Vincenzo Palazzo
bf11df40e2
readline: give the possibility to ignore the empty line in the history (#13452) 2022-02-14 00:12:25 +02:00
jeffmikels
a60b381d5e
docs: adding skeleton README.md files for all vlib modules (#13034) 2022-01-05 18:06:08 +02:00
Alexander Medvednikov
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
zakuro
85f3372a32
readline: fix bug that full-width spaces are treated as eof (#12763) 2021-12-08 22:35:21 +02:00
Delyan Angelov
1785b184b9
readline: improve README.md with working examples 2021-10-29 17:36:17 +03:00
yuyi
7bc3e67e24
fmt: fix import with symbols (fix #12065) (#12069) 2021-10-05 11:44:48 +03:00
playX
8d1ba52d0c
js: fix string.bytes codegen, readline, add tests for strings (#12060) 2021-10-04 18:28:30 +03:00
Delyan Angelov
166dd61e90
Revert "Revert "term: obtain the cursor position via termios.h (#11372)""
This reverts commit 0376cbf6bdd52fd82ad4e858d6962b3ea76591ea.
2021-09-06 19:04:14 +03:00
Alexander Medvednikov
0376cbf6bd Revert "term: obtain the cursor position via termios.h (#11372)"
This reverts commit af28d096302e0d4ac67b655887e1561d80a1542f.
2021-09-06 18:21:55 +03:00
AAAA
af28d09630
term: obtain the cursor position via termios.h (#11372) 2021-09-06 17:24:39 +03:00
Wertzui123
e5c4c408b5
readline: fix typo (#11405) 2021-09-06 03:11:25 +03:00
Leo Developer
b417d3c043
v.readline: fix key delete panic'king on linux (#11204) 2021-08-16 12:28:40 +03:00
Daniel Däschle
3881e97a40
vlib: remove ustring usage (#10618) 2021-06-30 22:30:28 +03:00
Enzo
39c376bb5b
builtin,gen: use operator overloading on ustring (#10197) 2021-05-25 14:51:48 +03:00
Delyan Angelov
3e297bced4
ci: remove some tests from skip_with_werror in v test-self 2021-04-14 12:47:24 +03:00
Delyan Angelov
c76c69ec35
all: simplify return if ... constructs to make more code compatible with -autofree 2021-03-22 16:45:29 +02:00
joe-conigliaro
2d73411396
checker: define missing C fn args & check C & JS args (#8770) 2021-03-05 17:41:11 +03:00
spaceface
b712af56fd
all: bring back panic(err.msg) -> panic(err) (#9022) 2021-03-01 00:18:14 +01:00
spaceface
d63b7bc35a
all: update repo to use the new error handling syntax (#8950) 2021-02-28 23:20:21 +03:00
Lukas Neubert
ac2c3847af
all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
Larpon
c943c8a16e
readline: move get_prompt_offset back to _linux.c.v (#7714) 2020-12-30 17:09:07 +01:00
Larpon
b1f16533b1
readline: add missing documentation, fix documentation format, add README.md (#7683) 2020-12-30 15:09:13 +02:00
Delyan Angelov
e5d3aa916d ci: fix windows jobs by restoring vlib/readline/readline_windows.c.v 2020-12-24 13:10:39 +02:00
Delyan Angelov
9d1365ec67 readline: put duplicated code in readline_default.c.v 2020-12-24 12:39:11 +02:00
Alexander Medvednikov
3c210a57f9 all: minor array fixes 2020-12-20 15:40:49 +01:00
Delyan Angelov
d633261a99
os: add Process (#6786) 2020-11-16 17:32:50 +01:00
Delyan Angelov
d67e177733 ci: run v vet over cmd/tools and cmd/v too 2020-10-21 15:26:29 +03:00
JalonSolov
a4cc1ab7e3
all: cleanup more match statements (#6616) 2020-10-15 08:08:27 +03:00