[code] [textadept] Control-c to clear Message Buffer

From: Jay Young <jyng7.att.hotmail.com>
Date: Fri, 24 Jul 2015 19:04:52 -0500

I've been trying to figure out a way where I can press Control-c and make that clear the Message Buffer. Here's some code I've been testing with in my init.lua file. It doesn't work right though - it only clears whichever buffer is active.

keys.cc = { function()
    for k,v in ipairs(_BUFFERS) do
        if v._type then
            v.clear_all()
            break
        end
    end
end }

Jay
                                               

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Fri 24 Jul 2015 - 20:04:52 EDT

This archive was generated by hypermail 2.2.0 : Sat 25 Jul 2015 - 06:41:26 EDT