summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-08-23 18:37:24 +0200
committerDaniel Friesel <derf@finalrewind.org>2017-08-23 18:37:24 +0200
commit3b53d965289346b73a6af42225175768e5e202fc (patch)
tree04ffe00e3dde2f2d679c5ab73ec502887a22e061 /src/main.c
parent84c27062d8035b634d13e96858cfa34fa7e67173 (diff)
Add terminal-input support for space and return
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index 9e4081b..57b7a7b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -119,8 +119,7 @@ int feh_main_iteration(int block)
if (tcgetattr(STDIN_FILENO, &ctrl) == -1)
eprintf("tcgetattr failed");
ctrl.c_iflag &= ~(PARMRK | ISTRIP
- | INLCR | IGNCR | ICRNL | IXON);
- ctrl.c_oflag &= ~OPOST;
+ | INLCR | IGNCR | IXON);
ctrl.c_lflag &= ~(ECHO | ICANON | IEXTEN);
ctrl.c_cflag &= ~(CSIZE | PARENB);
ctrl.c_cflag |= CS8;