tty driver features

astro at princeton.UUCP astro at princeton.UUCP
Wed Jun 15 15:37:37 AEST 1983


While we are on the subject of tty drivers ...  one of my complaints with both
the BSD and System III tty drivers is that there is no way to turn off the
echoing of carriage return/line feeds. The most general case is where the
new-line is supplied by the program.  For example, suppose if one wanted the
computer's response to a question to appear on the same line after the question.
I have written Forth compilers for both PDP11 and VAX Unix, and have an
atavistic liking for the traditional OK prompt at the end of the line.  I have
usually had to mung the terminal driver to get this.
	4.1 BSD has a normally unused provision for an alternate end-of-line
character tbrk_c.  This would do the job if set to <CR> and tested for before
the test for CRMOD if this character was not echoed.  Alas, however, it is
echoed.  As I have said above, not echoing this character would have been more
general, as a program using this feature which desired it to be echoed could
have echoed it itself.
				William L. Sebok
				Princeton Univ. Observatory
				Peyton Hall
				Princeton N.J 08544
				..!allegra!princeton!astrovax!wls



More information about the Comp.unix.wizards mailing list