Subject: Re: bug#1072: Viper version is 3.14 of April 06, 2008; can't exit viper insert mode with ESC using emacsclient -t

From: Stefan Monnier <[email-masked]>
Date: Fri, 14 Nov 2008 17:39:30 -0500

>> Yes, you are right. If there is a way to find out whether the selected window
>> is in a terminal frame or X frame then viper-ESC-keyseq-timeout can be made
>> into a function.

> If (window-system) is nil, you are using a terminal frame.

Or if you want code that also works with Emacs-22 (don't know about
XEmacs), you can use (framep (selected-frame)) which also returns info
about the kind of terminal used.

        Stefan