From 5a3c68a6d13464be6330aa4a5a32ec6115cedef0 Mon Sep 17 00:00:00 2001 From: Lars-Dominik Braun Date: Sun, 15 Jun 2008 21:35:45 +0200 Subject: client: Removed unneeded debugging printf's; some more documentation for functions --- src/terminal.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/terminal.c') diff --git a/src/terminal.c b/src/terminal.c index e3fd5d0..2b13e24 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -23,6 +23,11 @@ THE SOFTWARE. #include #include +/* en/disable echoing for stdin + * @author PromyLOPh + * @added 2008-06-15 + * @param 1 = enable, everything else = disable + */ void termSetEcho (char enable) { struct termios termopts; @@ -35,6 +40,12 @@ void termSetEcho (char enable) { tcsetattr(fileno (stdin), TCSANOW, &termopts); } +/* en/disable stdin buffering; when enabling line-buffer method will be + * selected for you + * @author PromyLOPh + * @added 2008-06-15 + * @param 1 = enable, everything else = disable + */ void termSetBuffer (char enable) { struct termios termopts; -- cgit v1.2.3