[net.unix] Block mode terminals.

wa371@sdcc12.UUCP (Senior Gnome) (07/27/85)

>  Is it possible to use a block-mode terminal with a unix system?
>  Does anyone have information or (better yet) source code for this?
>  I'm sure someone has been through this and I don't want to 
>  re-invent the wheel.  Please mail to ...!utcsri!dciem!asc.  Thanks.
>                    Stuart

     I regularly use block mode transmission when I prepare a page of text
off line on my (editing) terminal and then download it to the UNIX system.
To make it easy, I have the following shell script in my .cshrc file:

alias load 'echo "ready for load, end with ctrl-d"; stty -echo;
cat >>\!*; echo "load done"; stty echo'   

     Although it appears here in two lines, this alias program must
be all on one line, i.e. without a carriage return between lines.
     To use it, I give the command 'load filename', transmit the block of
text from the screen, and send the appropriate eof signal (such as
control-D) to get back to the command level.
     If you want to use block mode all the time, you should turn off the
echo with 'stty -echo', so that the system does not rewrite on your
screen what you have there already. This way it operates the same as a half-
duplex terminal mode, except that you can make corrections before you
send everything to the computer.
     In either case, it is important that your terminal is programmed
to insert nothing but a carriage return between lines when it transmits
a block of text.
     Cheers,
Bernd <bear-nd>           *** hooray for USENET ***
UUCP: ...!ucbvax!sdcsvax!sdcc12!wa371,   ARPA: sdcsvax!sdcc12!wa371@nosc