v icon indicating copy to clipboard operation
v copied to clipboard

readline: linux features to other *nix

Open thomas-mangin opened this issue 2 years ago • 1 comments

The current code only implements raw mode features for Linux. This patch split the definition of the termios structure per os, allowing to use of the Linux code with other Unixes, bringing the full API to them.

The termios definition for Linux was also not matching the kernel definition (by one byte, which would have been padded), so it was updated.

As it would appear that while qnx is listed as an OS using _qnx.c.v is not working as should (the file is always included), the QNX definition was included but left out commented.

The code was only tested for OSX (M1) and Linux (aarch64 qemu).

thomas-mangin avatar Mar 11 '23 13:03 thomas-mangin

qnx does not have full platform support like say freebsd, linux, windows, or macos have. Imho just add the declarations for macos .

spytheman avatar Mar 11 '23 14:03 spytheman