Skip to content
/ cmenu Public
forked from 10xJSChad/cmenu

Vaguely dmenu-like minimal TUI menu utility. It reads entries from stdin, creates a selection menu, and writes the selected entry to an output file.

License

Notifications You must be signed in to change notification settings

skeeto/cmenu

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cmenu
a minimal tui menu thing

2023-12-24.09-26-23.mp4

cmenu reads newline separated entries from stdin and creates a simple selection menu. Search entries by typing, use up/down arrows to navigate, hit enter to select.

The entry is written to standard output. This can be used to create dmenu-like scripts for the terminal.

An example script is provided in this repository, the script covers all you need to know, as cmenu has no additional features other than what you see in the example script.

Limitations:

  • The pattern matching is very barebones, it matches from the start of each entry, so "orang" will match "orange", but "rang" will not.
usage:
    cmenu <listing >selection

building:
    cc cmenu.c

About

Vaguely dmenu-like minimal TUI menu utility. It reads entries from stdin, creates a selection menu, and writes the selected entry to an output file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 98.2%
  • Shell 1.8%