summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c11
1 files changed, 11 insertions, 0 deletions
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 <termios.h>
#include <stdio.h>
+/* 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;