about summary refs log tree commit diff stats
path: root/src/ui
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/console.c7
-rw-r--r--src/ui/core.c5
2 files changed, 11 insertions, 1 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index d219a175..69abafef 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -1182,7 +1182,12 @@ cons_show_chat_prefs(void)
 void
 cons_inpblock_setting(void)
 {
-    cons_show("Input block (/inpblock)       : %d milliseconds", prefs_get_inpblock());
+    cons_show("Input timeout (/inpblock)     : %d milliseconds", prefs_get_inpblock());
+    if (prefs_get_boolean(PREF_INPBLOCK_DYNAMIC)) {
+        cons_show("Input dynamic (/inpblock)     : ON");
+    } else {
+        cons_show("Input dynamic (/inpblock)     : OFF");
+    }
 }
 
 void
diff --git a/src/ui/core.c b/src/ui/core.c
index 3b53b4ed..20db2010 100644
--- a/src/ui/core.c
+++ b/src/ui/core.c
@@ -206,6 +206,11 @@ ui_input_nonblocking(gboolean reset)
     static gint timeout = 0;
     static gint no_input_count = 0;
 
+    if (! prefs_get_boolean(PREF_INPBLOCK_DYNAMIC)) {
+        inp_non_block(prefs_get_inpblock());
+        return;
+    }
+
     if (reset) {
       timeout = 0;
       no_input_count = 0;