aboutsummaryrefslogtreecommitdiff
path: root/.github (unfollow)
Commit message (Collapse)AuthorFilesLines
3 daysfix(random): on old glibc < 2.25, falback to /dev/urandomThijs Schreijer2-5/+10
12 daysfix(ci): forcefully uninstall bundled luasystemThijs Schreijer1-7/+13
12 dayschore(ci): add NetBSDThijs Schreijer1-0/+19
13 daysRelease v0.5.0v0.5.0Thijs Schreijer20-37/+147
13 daysfeat(readkey): allow a sleep function to be passedThijs Schreijer4-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.
13 daysrefactor(term): feature check, not platform checkThijs Schreijer1-28/+43
2025-02-25Add support for OpenBSD+FreeBSD platformscos3-1/+46
2025-02-25Reverse conditional compilation of non-POSIXcos2-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.
2025-02-25ci: Add FreeBSD vmactioncos1-0/+17
2025-02-25fix(ci): yamllint config file moved (#50)Thijs Schreijer2-1/+1
2025-02-25chore(ci): lint GH action workflows (#49)Thijs Schreijer4-36/+67
Co-authored-by: cos <cos>
2025-02-10refactor(random): on linux+bsd use api instead of /dev/urandomThijs Schreijer2-5/+31
the api is faster and equally good
2025-02-10chore(random): replace deprecated Windows APIThijs Schreijer2-16/+5
2025-02-10feat(terminal): also accept codepoint integers for width checkThijs Schreijer3-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.
2025-02-06fix(terminal): warning unused variableThijs1-1/+1
2025-02-06fix(terminal): failing NetBSD compilation, missing symbolsThijs Schreijer2-5/+13
fixes #43
2024-12-18Release v0.4.5v0.4.5Hisham Muhammad20-19/+118
2024-12-18ci: ensure we don't try installing old version of luasystemHisham Muhammad1-5/+4
2024-12-18fix: suppress -Wexpansion-to-defined warningHisham Muhammad1-1/+5
See https://stackoverflow.com/questions/42074035/how-to-deal-with-clangs-3-9-wexpansion-to-defined-warning
2024-12-18fix: do not rely on luaconf.h to include limits.hHisham Muhammad1-1/+1
Fixes #38.
2024-09-03Release v0.4.4 (#37)v0.4.4Thijs Schreijer19-18/+109
2024-09-03fix(makefile): include all objects (#36)Thijs Schreijer2-1/+5
2024-08-28Release v0.4.3 (#34)v0.4.3Thijs Schreijer19-19/+111
2024-08-28Re-add FreeBSD support (broken since c1a64c1) (#33)Thijs Schreijer4-5/+20
Co-authored-by: cos <cos>
2024-07-31chore(term): add descriptive error on Windows for lack of VT (#32)Thijs Schreijer2-0/+9
2024-07-11Release v0.4.2 (#31)v0.4.2Thijs Schreijer19-17/+112
2024-07-11fix(term): headers on yet another MinGW version (#30)Thijs Schreijer2-1/+3
2024-06-25Release v0.4.1v0.4.1Thijs19-17/+112
2024-06-25fix(ci): move away from deprecated macos versionThijs1-1/+1
2024-06-25fix(*): msys2 requires conio.h headerThijs1-3/+4
2024-06-20Release v0.4.0 (#24)v0.4.0Thijs Schreijer20-311/+3774
2024-06-20simplify the __gc checkThijs Schreijer1-13/+3
2024-06-20add tests for autotermrestoreThijs Schreijer2-2/+89
2024-06-19add system.CODEPAGE_UTF8 for 65001 codepageThijs Schreijer6-13/+18
2024-06-08switch termsize results to standard; rows, colsThijs Schreijer3-11/+11
2024-06-08fix linter errorsThijs Schreijer1-3/+3
2024-06-03fix docs, merging modulesThijs7-55/+75
2024-05-23cleanup and documentationThijs Schreijer5-30/+161
2024-05-23fix the final testsThijs Schreijer1-2/+49
2024-05-23all done, but tcgetattr/tcsetattr tests, manualThijs Schreijer1-4/+5
2024-05-23Windows fixes, some manual testsThijs4-10/+31
2024-05-23fix several testsThijs Schreijer4-21/+49
2024-05-23add final (failing for now) tests, to be fixedThijs Schreijer1-4/+91
2024-05-22fix windows (manual) testsThijs2-14/+11
2024-05-22fixThijs Schreijer1-0/+11
2024-05-22add tests for get/setnonblockThijs Schreijer1-4/+42
2024-05-22add tests for termbackup & termrestoreThijs Schreijer2-46/+84
2024-05-22drop debug lineThijs Schreijer1-1/+0
2024-05-22add tests for termwrapThijs Schreijer1-1/+59