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 0376cbf6bd
.
2021-09-06 19:04:14 +03:00
Alexander Medvednikov
0376cbf6bd
Revert "term: obtain the cursor position via termios.h ( #11372 )"
...
This reverts commit af28d09630
.
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
Henrixounez
46dc6cc24b
repl: fix ctrl+z job to background on linux ( #6417 )
2020-09-18 16:34:00 +03:00
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
Maciej Obarski
7bd2804ce9
all: automatic error propagation in place of "or { return(err) }"
2020-08-29 01:58:03 +02:00
Delyan Angelov
3b03edd7cb
repl: fix compilation after 6921d46
2020-08-27 12:20:31 +03:00
Mike 'Fuzzy' Partin
ac0fee8e64
repl: fix BSDs
2020-06-03 08:44:44 +03:00
Uwe Krüger
076089d3c5
checker: apply stricter type checks to function args and return types
2020-06-01 21:15:59 +02:00
Delyan Angelov
0970e61350
repl: fix exiting raw mode by reverting da9b3d8
...
This reverts commit da9b3d82d2
.
2020-05-29 09:03:55 +03:00
Matt Baulch
da9b3d82d2
readline: fix stack memory leak on Linux
2020-05-28 15:38:20 +02:00
yuyi
7f4cf08516
parser: check (mut f Foo)
syntax
2020-05-17 13:51:18 +02:00