comparison src/ui.c @ 10240:175b1116f96a v8.0.0018

commit https://github.com/vim/vim/commit/b9c31e71f5a4653a27e81c21226039bfa35b9131 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Sep 29 15:18:57 2016 +0200 patch 8.0.0018 Problem: When using ":sleep" channel input is not handled. Solution: When there is a channel check for input also when not in raw mode. Check every 100 msec.
author Christian Brabandt <cb@256bit.org>
date Thu, 29 Sep 2016 15:30:05 +0200
parents 4aead6a9b7a9
children abc27e523e2a
comparison
equal deleted inserted replaced
10239:ebbc8d21105b 10240:175b1116f96a
351 } 351 }
352 352
353 void 353 void
354 ui_breakcheck(void) 354 ui_breakcheck(void)
355 { 355 {
356 ui_breakcheck_force(FALSE);
357 }
358
359 /*
360 * When "force" is true also check when the terminal is not in raw mode.
361 * This is useful to read input on channels.
362 */
363 void
364 ui_breakcheck_force(int force)
365 {
356 #ifdef FEAT_GUI 366 #ifdef FEAT_GUI
357 if (gui.in_use) 367 if (gui.in_use)
358 gui_mch_update(); 368 gui_mch_update();
359 else 369 else
360 #endif 370 #endif
361 mch_breakcheck(); 371 mch_breakcheck(force);
362 } 372 }
363 373
364 /***************************************************************************** 374 /*****************************************************************************
365 * Functions for copying and pasting text between applications. 375 * Functions for copying and pasting text between applications.
366 * This is always included in a GUI version, but may also be included when the 376 * This is always included in a GUI version, but may also be included when the