[U-Boot] [PATCH v3 16/21] sandbox: Add serial uart

Mike Frysinger vapier at gentoo.org
Tue Oct 4 03:10:02 CEST 2011


On Monday, October 03, 2011 20:21:15 Simon Glass wrote:
> On Mon, Oct 3, 2011 at 12:42 PM, Mike Frysinger wrote:
> > On Monday, September 26, 2011 20:10:50 Simon Glass wrote:
> >> +int serial_init(void)
> >> +{
> >> +     return 0;
> >> +}
> > 
> > this probably should set the tty to raw input with termios.  if you're
> > not familiar with the termios API, just lemme know, and i can send you a
> > chunk of code to do what you need.
> 
> Yes I know what you mean.
> 
> How would this cope with having a script controlling it? We would need
> to check for a terminal and do something different in that case,
> right?

i don't think so.  it's just changing the input from being buffered to not.

otherwise, fun things like tab completion wouldn't work since stdin is being 
line buffered by default.

> Can we leave this until later?

sure ... toss it into the README ;)
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20111003/2d36b4af/attachment.pgp 


More information about the U-Boot mailing list