[BRLTTY] stty and ofill
james collins
james.collins75 at gmail.com
Thu Oct 1 08:54:13 EDT 2009
So if I open a shell and then set the stty parameters when I hit
return the changes I made wouldn't be in effect if I went to use my
serial device? Like if I tried the following:
$ stty ofill nl1 (or whataver the correct command is)
$ cat > /dev/cu.usbserial-FTKVMAFF
The changes I made to stty after I hit return will not be in effect
for the cat command?
Sent from my iPhone
On Oct 1, 2009, at 3:48 AM, Samuel Thibault <samuel.thibault at ens-lyon.org
> wrote:
> Dave Mielke, le Thu 01 Oct 2009 00:26:17 -0400, a écrit :
>> Note that all setting changes are lost when the device is closed.
>> Applying stty
>> to a device which is closed, therefore, will simply open the
>> device, change the
>> settings, and close the device. In other words, the stty command will
>> ultimately have no effect whatsoever. Again, therefore, you need a
>> script which
>> opens the device, changes its settings appropriately, writes to it
>> as needed,
>> and then closes it.
>
> On linux, stty parameters are kept between opens of ttyS* at least.
>
> Samuel
> _______________________________________________
> This message was sent via the BRLTTY mailing list.
> To post a message, send an e-mail to: BRLTTY at mielke.cc
> For general information, go to: http://mielke.cc/mailman/listinfo/brltty
More information about the BRLTTY
mailing list