[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: read a reply from the terminal
From: |
Dan Nicolaescu |
Subject: |
Re: read a reply from the terminal |
Date: |
Sun, 15 Jul 2007 17:56:37 -0700 |
Richard Stallman <address@hidden> writes:
> ! ;; Try to find out the type of terminal by sending a "Secondary
> ! ;; Device Attributes (DA)" query.
> ! (send-string-to-terminal "\e[>0c")
> !
> ! ;; The reply should be of the form: \e [ > NUMBER1 ; NUMBER2 ;
NUMBER3 c
> ! (when (equal (read-event) ?\e)
> ! (when (equal (read-event) 91)
>
> Is there any danger that some terminal programs won't implement
> that query, and that these read-event calls will hang?
It's not impossible, someone can implement a terminal emulator that
does not support this type of query and still set TERM to xterm. Most
applications won't care.. To be safe adding a timeout to the
read-event call seems to be the right thing to do.
> Perhaps the best thing to do is install the patch
> and see if anyone complains.
I'll do that.
> + (defun xterm-turn-on-modifyOtherKeys ()
>
> Please rename that to xterm-turn-on-modify-other-keys.
> Likewise the following function.
Sure.
- Re: read a reply from the terminal, (continued)
Re: read a reply from the terminal, Stefan Monnier, 2007/07/14
- Re: read a reply from the terminal, Dan Nicolaescu, 2007/07/14
- Re: read a reply from the terminal, Stefan Monnier, 2007/07/14
- Re: read a reply from the terminal, Andreas Schwab, 2007/07/15
- Re: read a reply from the terminal, Dan Nicolaescu, 2007/07/15
- Re: read a reply from the terminal, Eli Zaretskii, 2007/07/15
- Re: read a reply from the terminal, Dan Nicolaescu, 2007/07/15
Re: read a reply from the terminal, Richard Stallman, 2007/07/15
Re: read a reply from the terminal,
Dan Nicolaescu <=
Re: read a reply from the terminal, Johan Bockgård, 2007/07/14