Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Release v0.5.1HEADv0.5.1master | Thijs Schreijer | 3 days | 19 | -20/+114 |
| | |||||
* | fix(random): on old glibc < 2.25, falback to /dev/urandom | Thijs Schreijer | 3 days | 2 | -5/+10 |
| | |||||
* | fix(ci): forcefully uninstall bundled luasystem | Thijs Schreijer | 11 days | 1 | -7/+13 |
| | |||||
* | chore(ci): add NetBSD | Thijs Schreijer | 11 days | 1 | -0/+19 |
| | |||||
* | Release v0.5.0v0.5.0 | Thijs Schreijer | 13 days | 20 | -37/+147 |
| | |||||
* | feat(readkey): allow a sleep function to be passed | Thijs Schreijer | 13 days | 4 | -14/+22 |
| | | | | | | There are cases where both a blocking and non-blocking sleep is needed. In those cases just poatching system.sleep isn't good enough. Hence now we can pass a sleep function. | ||||
* | refactor(term): feature check, not platform check | Thijs Schreijer | 13 days | 1 | -28/+43 |
| | |||||
* | Add support for OpenBSD+FreeBSD platforms | cos | 2025-02-25 | 3 | -1/+46 |
| | |||||
* | Reverse conditional compilation of non-POSIX | cos | 2025-02-25 | 2 | -17/+17 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | As https://www.openbsd.org/faq/ports/guide.html#PortsGeneric states, it is inappropriate to base feature inclusion on a growing list (60b66fc, 9160d12) of excluded platforms. Thus this commit attempts to switch the assumption from Linux to a modern POSIX as the default target. Firstly, merely checking for __unix__ should be functionally equivalent of having a long lists of practically "all" operating systems. Apart from Windows, the primary non-standard code covers these termios related constants: I_IUCLC, O_OLCUC, O_OFILL, O_OFDEL, O_NLDLY, O_CRDLY and L_XCASE. A few of them are documented as LEGACY as they were removed from POSIX https://pubs.opengroup.org/onlinepubs/007904875/basedefs/termios.h.html over two decades ago. The other constants are part of the X/Open System Interfaces, which supposedly should be available when _XOPEN_UNIX is set to another value than -1. However on Linux they exist, yet the variable indicating their presence is undefined. In summary; It is hard to find any feature specific preprocessor variables indicating availability, but it is quite safe to limit their inclusion to Linux until patches arrive for other platforms. Executing `cpp -dM </dev/null | grep -i linux` on contemporary glibc and musl based distributions tend to give a few constants, where __linux__ likely is the one most suitable. Based on the previous state of the code, the following constants are expected to be available also on Apple: O_BSDLY, O_VTDLY and O_FFDLY. They do not appear be documented in termios(4) on macOS 13, but they actually exist in /Library/Developer/…/sys/termios.h. Lastly, O_TABDLY is kept excluded exclusively for NetBSD as that is the only currently supported platform lacking it. | ||||
* | ci: Add FreeBSD vmaction | cos | 2025-02-25 | 1 | -0/+17 |
| | |||||
* | fix(ci): yamllint config file moved (#50) | Thijs Schreijer | 2025-02-25 | 2 | -1/+1 |
| | |||||
* | chore(ci): lint GH action workflows (#49) | Thijs Schreijer | 2025-02-25 | 4 | -36/+67 |
| | | | | Co-authored-by: cos <cos> | ||||
* | refactor(random): on linux+bsd use api instead of /dev/urandom | Thijs Schreijer | 2025-02-10 | 2 | -5/+31 |
| | | | | the api is faster and equally good | ||||
* | chore(random): replace deprecated Windows API | Thijs Schreijer | 2025-02-10 | 2 | -16/+5 |
| | |||||
* | feat(terminal): also accept codepoint integers for width check | Thijs Schreijer | 2025-02-10 | 3 | -15/+59 |
| | | | | | Lua utf8 functions return codepoints, hence it makes sense to accept those, instead of having to convert to utf8 string and back again. | ||||
* | fix(terminal): warning unused variable | Thijs | 2025-02-06 | 1 | -1/+1 |
| | |||||
* | fix(terminal): failing NetBSD compilation, missing symbols | Thijs Schreijer | 2025-02-06 | 2 | -5/+13 |
| | | | | fixes #43 | ||||
* | Release v0.4.5v0.4.5 | Hisham Muhammad | 2024-12-18 | 20 | -19/+118 |
| | |||||
* | ci: ensure we don't try installing old version of luasystem | Hisham Muhammad | 2024-12-18 | 1 | -5/+4 |
| | |||||
* | fix: suppress -Wexpansion-to-defined warning | Hisham Muhammad | 2024-12-18 | 1 | -1/+5 |
| | | | | See https://stackoverflow.com/questions/42074035/how-to-deal-with-clangs-3-9-wexpansion-to-defined-warning | ||||
* | fix: do not rely on luaconf.h to include limits.h | Hisham Muhammad | 2024-12-18 | 1 | -1/+1 |
| | | | | Fixes #38. | ||||
* | Release v0.4.4 (#37)v0.4.4 | Thijs Schreijer | 2024-09-03 | 19 | -18/+109 |
| | |||||
* | fix(makefile): include all objects (#36) | Thijs Schreijer | 2024-09-03 | 2 | -1/+5 |
| | |||||
* | Release v0.4.3 (#34)v0.4.3 | Thijs Schreijer | 2024-08-28 | 19 | -19/+111 |
| | |||||
* | Re-add FreeBSD support (broken since c1a64c1) (#33) | Thijs Schreijer | 2024-08-28 | 4 | -5/+20 |
| | | | | Co-authored-by: cos <cos> | ||||
* | chore(term): add descriptive error on Windows for lack of VT (#32) | Thijs Schreijer | 2024-07-31 | 2 | -0/+9 |
| | |||||
* | Release v0.4.2 (#31)v0.4.2 | Thijs Schreijer | 2024-07-11 | 19 | -17/+112 |
| | |||||
* | fix(term): headers on yet another MinGW version (#30) | Thijs Schreijer | 2024-07-11 | 2 | -1/+3 |
| | |||||
* | Release v0.4.1v0.4.1 | Thijs | 2024-06-25 | 19 | -17/+112 |
| | |||||
* | fix(ci): move away from deprecated macos version | Thijs | 2024-06-25 | 1 | -1/+1 |
| | |||||
* | fix(*): msys2 requires conio.h header | Thijs | 2024-06-25 | 1 | -3/+4 |
| | |||||
* | Release v0.4.0 (#24)v0.4.0 | Thijs Schreijer | 2024-06-20 | 20 | -311/+3774 |
| | |||||
* | Merge pull request #21 from lunarmodules/terminal | Thijs Schreijer | 2024-06-20 | 26 | -11/+4037 |
|\ | |||||
| * | simplify the __gc check | Thijs Schreijer | 2024-06-20 | 1 | -13/+3 |
| | | |||||
| * | add tests for autotermrestore | Thijs Schreijer | 2024-06-20 | 2 | -2/+89 |
| | | |||||
| * | add system.CODEPAGE_UTF8 for 65001 codepage | Thijs Schreijer | 2024-06-19 | 6 | -13/+18 |
| | | |||||
| * | switch termsize results to standard; rows, cols | Thijs Schreijer | 2024-06-08 | 3 | -11/+11 |
| | | |||||
| * | fix linter errors | Thijs Schreijer | 2024-06-08 | 1 | -3/+3 |
| | | |||||
| * | fix docs, merging modules | Thijs | 2024-06-03 | 7 | -55/+75 |
| | | |||||
| * | cleanup and documentation | Thijs Schreijer | 2024-05-23 | 5 | -30/+161 |
| | | |||||
| * | fix the final tests | Thijs Schreijer | 2024-05-23 | 1 | -2/+49 |
| | | |||||
| * | all done, but tcgetattr/tcsetattr tests, manual | Thijs Schreijer | 2024-05-23 | 1 | -4/+5 |
| | | |||||
| * | Windows fixes, some manual tests | Thijs | 2024-05-23 | 4 | -10/+31 |
| | | |||||
| * | fix several tests | Thijs Schreijer | 2024-05-23 | 4 | -21/+49 |
| | | |||||
| * | add final (failing for now) tests, to be fixed | Thijs Schreijer | 2024-05-23 | 1 | -4/+91 |
| | | |||||
| * | fix windows (manual) tests | Thijs | 2024-05-22 | 2 | -14/+11 |
| | | |||||
| * | fix | Thijs Schreijer | 2024-05-22 | 1 | -0/+11 |
| | | |||||
| * | add tests for get/setnonblock | Thijs Schreijer | 2024-05-22 | 1 | -4/+42 |
| | | |||||
| * | add tests for termbackup & termrestore | Thijs Schreijer | 2024-05-22 | 2 | -46/+84 |
| | | |||||
| * | drop debug line | Thijs Schreijer | 2024-05-22 | 1 | -1/+0 |
| | |