www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/1999/04/18/11:11:33

Message-Id: <199904181610.QAA84502@out4.ibm.net>
From: "Mark E." <snowball3 AT usa DOT net>
To: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>, djgpp-workers AT delorie DOT com
Date: Sun, 18 Apr 1999 12:11:25 -0400
MIME-Version: 1.0
Subject: Re: Termios and getchar
In-reply-to: <Pine.SUN.3.91.990418135049.22615M-100000@is>
X-mailer: Pegasus Mail for Win32 (v3.01d)
Reply-To: djgpp-workers AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Mark, does this mean that Bash never uses any buffered stdio functions,
> only `read' and `write' for its interactive I/O?  Otherwise, I don't
> understand how does the new port manage to invoke termios.

Bash uses Readline which in turn uses read() and write() which 
termios hooks. The hooks themselves are installed during Readline's 
initialization when tcgetattr is called (see the docs for 
__libc_termios_init to explain how this is true).

Mark

--- 
Mark Elbrecht, snowball3 AT usa DOT net
http://snowball.digitalspace.net/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019