v/vlib/readline
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
..
readline.js.v all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00
readline.v update copyright years 2020-02-03 05:00:36 +01:00
readline_darwin.c.v all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00
readline_dragonfly.c.v all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00
readline_freebsd.c.v all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00
readline_linux.c.v term: add get_cursor_position and set_terminal_title (#6279) 2020-09-08 22:00:10 +03:00
readline_netbsd.c.v all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00
readline_openbsd.c.v all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00
readline_solaris.c.v all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00
readline_windows.c.v all: automatic error propagation in place of "or { return(err) }" 2020-08-29 01:58:03 +02:00