From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12599 invoked by alias); 17 Nov 2015 18:05:00 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 20962 Received: (qmail 25462 invoked from network); 17 Nov 2015 18:04:58 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,T_HDRS_LCASE, T_MANY_HDRS_LCASE autolearn=ham autolearn_force=no version=3.4.0 X-Authority-Analysis: v=2.1 cv=X+5rdgje c=1 sm=1 tr=0 a=xY5rj5NlzTK4lf4M8/OJTA==:117 a=xY5rj5NlzTK4lf4M8/OJTA==:17 a=IkcTkHD0fZMA:10 a=p_jxou1oX4JfEh6KKqYA:9 a=QEXdDO2ut3YA:10 Message-id: <564B653B.9050607@eastlink.ca> Date: Tue, 17 Nov 2015 09:34:51 -0800 From: Ray Andrews User-Agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Icedove/31.7.0 MIME-version: 1.0 To: Zsh Users Subject: zcurses scrolling Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 7bit All: I'm experimenting with mouse input and getting strange results with the scrolling wheel. If I grab input like this: zcurses input status key keypad ... then the scroll wheel returns either 'UP' or 'DOWN' in '$keypad'. So it simulates the arrow keys, which is logical and it works fine. However, when I attempt to handle mouse events explicitly: zcurses input status key keypad mouse ... things change. Now, if I scroll up: $keypad is 'MOUSE' and $mouse is '0 40 18 0 PRESSED4' ... but if I scroll down: $keypad is 'MOUSE' and $mouse is [unset] So if I want to capture mouse clicks (which is working fine) then I'm not able to capture scrolling down, tho I can capture scrolling up.