Commit graph

219 commits

Author SHA1 Message Date
Delyan Angelov
3725576729
docs,ci: check more vlib modules in the report-missing-dots-in-doc-comments job (#24928) 2025-07-19 11:51:01 +03:00
kbkpbot
4c530217d2
term: add writeln_color() (#24463) 2025-05-15 13:37:13 +03:00
Adam Stringer
0b7a20d938
term.ui: fix panic from missing cursor pos response (#24468) 2025-05-12 22:19:21 +03:00
Mike
d54a8232f9
pkgconfig, termios: support NetBSD (#24176) 2025-04-10 08:32:34 +03:00
Delyan Angelov
3c88926fdb
term: make the second example in the README.md compilable as well 2025-02-23 14:26:16 +02:00
Delyan Angelov
be3a5362c2
term: add more comments in vlib/term/README.md 2025-02-23 13:40:33 +02:00
kbkpbot
5b44b67211
term: add key_pressed, enable_echo (fix #21826) (#23171) 2024-12-27 10:36:39 +02:00
Felipe Pena
7d47219808
checker: fix immutable to mutable reference (fix #22653) (#22663) 2024-12-10 15:15:26 +02:00
Turiiya
5e9e09f16d
term: improve performance of repeated can_show_color_on_stdout and can_show_color_on_stderr calls, by caching their results (#22893) 2024-11-18 11:03:27 +02:00
Felipe Pena
67f2e9331d
v: fix aliased type checking, add error for passing aliased int values to fns that accept u8 (fix #18278) (#22572) 2024-10-20 02:20:42 +03:00
yuyi
dd2210abf6
ast: fix const field str() (#22192) 2024-09-10 17:02:51 +03:00
yuyi
008aaad999
fmt: remove the prefixed module name of const names, that are in the same module (related #22183) (#22185) 2024-09-10 11:25:56 +03:00
yuyi
c51d30bf53
fmt: fix alignment of struct init fields (#22025) 2024-08-11 09:11:24 +03:00
yuyi
19f080ffb8
all: change single blank comment to blank line (#22016) 2024-08-09 14:55:58 +03:00
yuyi
3247b98bb5
ast: fix const field str() (#21998) 2024-08-06 17:42:24 +03:00
Delyan Angelov
3ca5bc3bcd
term, term.termios: update fn C.ioctl declaration (#21982) 2024-08-02 18:03:13 +03:00
yuyi
209063ffd0
fmt: implement wrapping function's super long arguments (fix #15545, fix #21643) (#21782) 2024-07-02 23:10:00 +03:00
Larpon
47e93d1c39
term: add functions for detecting Sixel support + example (#21665) 2024-06-11 19:59:58 +03:00
Alexander Medvednikov
6cc096a4b3 checker: ambiguous expression notice for & << >>, similar to && || 2024-05-07 20:38:32 +03:00
Turiiya
1a35a783f1
breaking,checker: disallow initializing private struct fields outside structs module (#21183) 2024-04-12 13:53:02 +03:00
Delyan Angelov
a8d0cdd31b
all: replace usages of C.atexit(cb) with at_exit(cb) or {} (part 2) (#21263) 2024-04-12 13:51:18 +03:00
Turiiya
f77bb32044
all: fix typos (#21089) 2024-03-25 12:18:27 +02:00
Anton
763f94388b
all: update copyright year (#20334) 2024-01-01 23:29:54 +02:00
Alexander Medvednikov
f09826e928 all: unwrap const() blocks 2023-11-25 10:02:51 +03:00
JalonSolov
6cc51f254f
sync,szip,term,time,x.ttf: prepare for making -W impure-v the default (#19929) 2023-11-19 18:33:07 +02:00
Joe C
757929392e
all: update attributes to use new syntax 2023-11-15 16:16:01 +11:00
Turiiya
690ec7d3a5
all: fix typos (#19693) 2023-10-30 03:28:34 +02:00
Larpon
95509cf8fb
all: make all struct C.XYZ -> pub struct C.XYZ (#19651) 2023-10-25 15:01:50 +03:00
Turiiya
f98bb863ab
vlib: fix typos and formatting (#19649) 2023-10-25 11:19:56 +03:00
Wertzui123
a1c16a76be
term.ui: fix exception thrown in GetConsoleMode on windows (stop abusing consts as globals) (#19529) 2023-10-10 20:34:06 +03:00
Delyan Angelov
121fa0e92d
term.ui,os.notify: fix .ctrl being stuck in examples/term.ui/event_viewer.v (regression happened in e9a3817a from 2023-02-20) 2023-10-09 14:25:44 +03:00
Wertzui123
75355395b9
term.ui: fix notices about uninitialized pointers (#19528) 2023-10-08 17:36:34 +03:00
yuyi
55ca8d8d8e
fmt: align the custom values of the enum fields (#19331) 2023-09-12 14:44:38 +03:00
yuyi
18e60e77de
fmt: remove inline comments (#19263) 2023-09-03 23:51:56 +03:00
Delyan Angelov
e3b0dfbfdd
term.termios: allow again for v -prod -os wasm32_emscripten examples/2048/, by using an eprintln, instead of a $compile_warn 2023-08-11 11:05:26 +03:00
Delyan Angelov
81e99a2af3
term: fix vlib/term/termios/termios_test.v on windows 2023-07-31 14:22:03 +03:00
Delyan Angelov
30d4e25385
term: fix v run cmd/tools/check_os_api_parity.v term, for term.clear 2023-07-31 10:39:28 +03:00
Delyan Angelov
32114a679a
os,term.termios: add termios.set_state/2, state.disable_echo/0, use them in os.input_password, to fix v -os wasm32_emscripten examples/2048/ 2023-07-31 10:28:45 +03:00
Swastik Baranwal
1c7df29bed
checker: disallow voidptr cast to struct (#18845) 2023-07-12 11:07:34 +03:00
Ikko Eltociear Ashimine
c75382ad23
term: fix typo in term_windows.c.v (#18745) 2023-07-02 23:53:56 +03:00
Turiiya
a27f2ddcc3
term.ui, vweb, v: update deprecated functions (#18726) 2023-07-02 09:38:33 +03:00
Delyan Angelov
e0656ad1b1
term.ui: cleanup of meaningless comment 2023-04-14 11:13:50 +03:00
Swastik Baranwal
3d99f1f2c2
checker: disallow struct int to ptr outside unsafe (#17923) 2023-04-13 07:38:21 +02: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
Swastik Baranwal
e9a3817aed
checker: disallow enum initalization (#17361) 2023-02-19 22:22:07 +01:00
Delyan Angelov
b13f7118ab
os,term: fix C.tcsetattr declaration (add missing int return type) 2023-02-13 15:16:23 +02:00
Delyan Angelov
988aed0353
ci: fix broken tests after 322eb81 2023-02-01 23:30:48 +02:00
Nahua
90dbf683d5
term: add missing documentation for all remaining public functions (#17044) 2023-01-20 11:07:28 +02:00
Nahua
b69f9419f0
term: add missing documentation for all public functions in colors.v (#17033) 2023-01-19 09:09:09 +02:00