canonical mode #1
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
we are to assert whether the associated tty is running in canonical mode, as this will determine the behaviour of
readapplied to the standard inputin canonical mode, read should yield whole lines at once, and will hang until it is able to supply all n requested bytes ; in such a mode, interrupts take the form of signals, and the read call may be interrupted by a signal handler
in non canonical mode,
by default, min = 1 and time = 0
if isatty, we should get our input from readline to enable history and signal handling
otherwise, we are sourcing a file into the env, and we should rely on gnl