ack/plat/cpm/libsys
George Koehler 154509038d Enable the line editor in read() for CP/M.
This changes the BDOS call from CPM_BDOS_CONSOLE_INPUT to
CPN_BDOS_READ_CONSOLE_BUFFER.  This allows commands like ^H to delete
characters and ^C to exit to CCP.  This is more like how Unix read(2)
uses canonical mode of termios to read a line.

This change has a disadvantage: the user buffer to read(2) must now be
large enough for an entire line.  This is because CP/M, unlike Unix,
lacks a kernel buffer to hold the rest of the line.  If you use a
buffered input library like stdio to call read(2), then it works; but
if you try to read part of a line or a single character, then it
doesn't work.
2018-05-04 18:21:01 -04:00
..
_bdos.s Added cpm platform. 2007-04-27 22:42:41 +00:00
_hol0.s Added cpm platform. 2007-04-27 22:42:41 +00:00
_inn2.s Added cpm platform. 2007-04-27 22:42:41 +00:00
_trap.s Fixed the trap code to write out the error message correctly. 2007-04-29 20:47:48 +00:00
brk.c Change sbrk() to take an int rather than an intptr_t (following the OpenBSD way 2016-11-23 22:06:24 +01:00
build.lua Fix dependency error (only shows up with make, not ninja. Odd). 2016-08-15 00:46:43 +02:00
close.c Added cpm platform. 2007-04-27 22:42:41 +00:00
creat.c Added cpm platform. 2007-04-27 22:42:41 +00:00
errno.s Added cpm platform. 2007-04-27 22:42:41 +00:00
getpid.c Added cpm platform. 2007-04-27 22:42:41 +00:00
isatty.c Added cpm platform. 2007-04-27 22:42:41 +00:00
kill.c Added cpm platform. 2007-04-27 22:42:41 +00:00
lseek.c Added cpm platform. 2007-04-27 22:42:41 +00:00
open.c Added cpm platform. 2007-04-27 22:42:41 +00:00
read.c Enable the line editor in read() for CP/M. 2018-05-04 18:21:01 -04:00
signal.c Added cpm platform. 2007-04-27 22:42:41 +00:00
time.c Added cpm platform. 2007-04-27 22:42:41 +00:00
write.c Added cpm platform. 2007-04-27 22:42:41 +00:00