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

17 Commits

Author SHA1 Message Date
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
6756d28595 all: 2023 copyright 2023-03-28 22:55:57 +02:00
bf11df40e2 readline: give the possibility to ignore the empty line in the history (#13452) 2022-02-14 00:12:25 +02:00
59ed4be49a all: update copyright year 2022-01-04 12:21:12 +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
3881e97a40 vlib: remove ustring usage (#10618) 2021-06-30 22:30:28 +03:00
3e297bced4 ci: remove some tests from skip_with_werror in v test-self 2021-04-14 12:47:24 +03:00
ac2c3847af all: update copyright to 2019-2021 (#8029) 2021-01-18 13:20:06 +01:00
c943c8a16e readline: move get_prompt_offset back to _linux.c.v (#7714) 2020-12-30 17:09:07 +01:00
b1f16533b1 readline: add missing documentation, fix documentation format, add README.md (#7683) 2020-12-30 15:09:13 +02:00
7f709c3285 update copyright years 2020-02-03 05:00:36 +01:00
c7f3413d70 more vfmt fixes 2019-11-10 19:49:19 +03:00
f8ab629986 readline: fix cursor position with prompt including ansi escape sequences 2019-11-10 19:33:21 +03:00
55f6e810cf repl: moved as a tool and using readline 2019-10-31 19:01:04 +03:00
bb1eca3564 readline: basic mac and windows version using os.getline 2019-10-15 09:04:22 +03:00