I recently did a project which required changed the terminal driver, tty.c.
The goal was to create a new editing capability along the lines of the
CTRL-U command to erase a complete line in canonical/cooked mode. So I put
the statement looking for my new control character in the if(canonical)
statement. Everything has worked fine, except the teaching assistant
responsible for grading the projects says that the new feature shouldn't
work in the MINIX shell because it is in non-canonical/raw mode. I don't
think it is because there is nothing in the source code for sh that sets any
flags in the termios structure and by default programs operate in canonical
mode.
So my question is: is the shell operating normally in canonical or
non-canonical mode?
Mr. Tanenbaum said he was swamped and that I should ask the newsgroup. So
thanks for any reply,
Daniel Edlen