Commit Graph

58 Commits (081e3c46b475035bd8975d0539f3ac0024f0ee4b)

Author SHA1 Message Date
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
pancake 76eec7b6ea
readline: fix input echo issue on musl-based systems 2020-05-10 07:39:31 +03:00
lutherwenxu dc4db87be3
vlib: use new filename format 2020-04-11 19:51:32 +02:00
Delyan Angelov abf15e863c
v2: compile vrepl, 'fn main(){println(2+2)}' runs now
It works if you give it complete V programs like
fn main(){println(2+2)}
but not for single expressions like 2+2 or statements like a:='abc'
2020-04-02 19:21:12 +03:00
Alexey a333ac1888
all: remove redundant parentheses in `if` statements 2020-03-29 10:08:42 +02:00
r00ster bee8972632
readline: make some functions public 2020-03-27 09:55:15 +01:00
Delyan Angelov ba088056ed
solaris: make 'v test-compiler' pass (stage 2) 2020-03-21 09:48:02 +01:00
joe-conigliaro 7f709c3285
update copyright years 2020-02-03 05:00:36 +01:00
Mateo Pidal 78c96fe989 term: get_terminal_size() 2020-01-28 05:18:19 +01:00
Shun Sakai c8c43a2475 update copyright year 2020-01-23 21:04:46 +01:00
Delyan Angelov 7882312697 rename $if mac => $if macos , _mac.v => _darwin.v 2020-01-09 11:12:35 +01:00
Alexander Medvednikov 7b0e378947 fix clipboard_linux.v 2019-12-07 18:16:19 +03:00
Alexander Medvednikov e1ad1794e3 fix readline_linux.v 2019-12-07 17:46:01 +03:00
Alexander Medvednikov f4fe90ea6d C fn definitions on Linux 2019-11-22 19:00:56 +03:00
Alexander Medvednikov c7f3413d70 more vfmt fixes 2019-11-10 19:49:19 +03:00
Henrixounez f8ab629986 readline: fix cursor position with prompt including ansi escape sequences 2019-11-10 19:33:21 +03:00
aliczin 53981c8747 compiler: supress windows (MSVC) warnings 2019-11-05 14:09:33 +03:00
Henrixounez b5d457b5ce readline: catch siguser signal to reset tty 2019-11-04 05:05:12 +03:00
Henrixounez 55f6e810cf repl: moved as a tool and using readline 2019-10-31 19:01:04 +03:00
Don Alfons Nisnoni 0c229aacdd readline: use new enum syntax 2019-10-31 14:06:48 +03:00
Don Alfons Nisnoni acaf66ac80 readline: switch => match 2019-10-27 12:38:36 +03:00
Henrixounez 99e07718da readline: fix reading on linux, crash on mac 2019-10-16 12:46:24 +03:00
Alexander Medvednikov 66f36be7d0 Revert "repl: readline line editing "
This reverts commit 1956c6f906.
2019-10-16 03:31:48 +03:00
Alexander Medvednikov 00fd1abf82 readline: fix macos 2019-10-16 03:20:40 +03:00
Henrixounez 1956c6f906 repl: readline line editing 2019-10-16 02:50:48 +03:00
Henrixounez bb1eca3564 readline: basic mac and windows version using os.getline 2019-10-15 09:04:22 +03:00
Henrixounez 5acadbab32 readline: optional return, automatic raw mode and standalone functions 2019-10-06 16:28:41 +03:00
Alexander Medvednikov 243626c7c1 readline: capitalize structs 2019-10-01 06:28:06 +03:00
Henrixounez db44004d51 readline: utf8 compatibility 2019-09-23 13:43:24 +03:00
Henrixounez 04ff9ede9f readline: allow writing without tty + small fixes 2019-09-15 04:33:31 +03:00
Vitor Oliveira 1a099c9284 vlib: fix several typos 2019-09-14 23:54:14 +03:00
Henrixounez f83bc9528d readline: added suspend handling and dont print special characters 2019-09-05 15:06:41 +03:00
Henrixounez cc5470d068 readline: overwrite mode and eof fix 2019-09-05 02:02:04 +03:00