Re: cwm(1) without warping the pointer

Aric Gregson <[email protected]> Sat, 4 Jul 2026 11:23:49 -0700
Newsgroups gmane.os.openbsd.misc
Message-ID <[email protected]>
On 2026-07-04 12:13, Crystal Kolipe wrote:
>On Sat, Jul 04, 2026 at 01:49:47PM +0200, Walter Alejandro Iglesias wrote:
>> If, like me, you prefer the keyboard, any time you want to go back to
>> (or alternate with) the window you were previously working on, you
>> depend on the cycle stack
>
>If you prefer the keyboard, why not just use the 'menu-window' function which
>lets you display a list of currently open windows and navigate them using the
>cursor-up or cursor-down keys.
>
>By default the menu displays no entries and expects you to either start typing
>a search string or hit control-a to display all windows.

I think this is the function of searching open windows by name, which 
works pretty well when you remember to name your terminals. It has been 
hit and miss for me when I have more than one Emacs frame open and I 
almost always pick the wrong one. 
>
>The following trivial diff inverts that logic to display the list without the
>need to explicitly hit control-a:

Though that command sounds different. 

>--- menu.c.dist
>+++ menu.c
>@@ -105,8 +105,7 @@
> 	mc.geom.x = xsave;
> 	mc.geom.y = ysave;
>
>-	if (mc.flags & CWM_MENU_LIST)
>-		mc.list = 1;
>+	mc.list = 1;
>
> 	(void)strlcpy(mc.promptstr, prompt, sizeof(mc.promptstr));
> 	if (initial != NULL)
> 

Since cwm is in the base, I would need to check out the base to build 
against it?

Aric