1
0
Fork 0
forked from murx/murx

Show the murx logo in command-line help

This commit is contained in:
Johannes Findeisen 2026-11-23 13:24:16 +01:00
commit 842e9064ea
5 changed files with 24 additions and 8 deletions

View file

@ -22,7 +22,7 @@ make
./murx --hostname work # show the hostname: prefix in window titles ./murx --hostname work # show the hostname: prefix in window titles
./murx --pane-titles work # show a title row above each pane ./murx --pane-titles work # show a title row above each pane
./murx -l, --list-sessions # list running sessions without attaching ./murx -l, --list-sessions # list running sessions without attaching
./murx --help # version, usage and all shortcuts ./murx --help # logo, version, usage and shortcuts
./murx -v, --version # print the version and exit ./murx -v, --version # print the version and exit
``` ```

2
murx.1
View file

@ -96,7 +96,7 @@ Show the hostname: prefix in window names and the outer terminal title.
Show the title row above each pane. Pane titles are off by default. Show the title row above each pane. Pane titles are off by default.
.TP .TP
.BR \-h ", " \-\-help .BR \-h ", " \-\-help
Print the program version, usage and keyboard shortcuts, then exit. Print the text logo, program version, usage and keyboard shortcuts, then exit.
.TP .TP
.BR \-v ", " \-\-version .BR \-v ", " \-\-version
Print the program version and exit. Print the program version and exit.

16
murx.c
View file

@ -4962,6 +4962,22 @@ static void help_row(FILE *out, const char *left, const char *right) {
} }
static void print_help(FILE *out) { static void print_help(FILE *out) {
fputs(" +-------------------------+\n"
" | o o o |\n"
" +-------------+-----------+\n"
" | >_ | ======== |\n"
" | | ==== |\n"
" | +-----------+\n"
" | | :|:||: |\n"
" +-------------+-----------+\n"
"\n"
" ######## ## ## ###### ## ##\n"
" ## ## ## ## ## ## ## ##\n"
" ## ## ## ## ## ## ###\n"
" ## ## ## ## ## ## ## ##\n"
" ## ## ## ##### ## ## ##\n"
" -- terminal multiplexer --\n"
"\n", out);
fprintf(out, "murx %s\n\n", MURX_VERSION); fprintf(out, "murx %s\n\n", MURX_VERSION);
fputs("usage: murx [OPTIONS] [session]\n" fputs("usage: murx [OPTIONS] [session]\n"
"\n" "\n"

View file

@ -26,10 +26,10 @@ package() {
} }
sha512sums=" sha512sums="
68c0e952a57d03e5c2cc6a7451cca1687341c20620634617529b6dc84f0fcdc7cb49cbc662bfad5b1fe3229c082a61480813ed5c01a1994c1b2a8e34bd421e29 murx.c 315f6bd49ede1f83132698347e5766a9b3df918abc7fbdae891851bf202064bb68a76dd2c4faa920f610600817278650deae3a8fe6746047d42753d9b49b62ad murx.c
ac75bfe596fae665ba882a10f5d16551bdd02cd601b786364763ac74dbc651c386d3a464eb63e0344354b953611629135190633e3b8ff3a8ef0f0849d60a3f7b Makefile ac75bfe596fae665ba882a10f5d16551bdd02cd601b786364763ac74dbc651c386d3a464eb63e0344354b953611629135190633e3b8ff3a8ef0f0849d60a3f7b Makefile
219082e6277ee8c226cdd61a5b17d4e3c6893adf04b2f59ea84a6b6421dbd5a6d0ff38b93d8dd8ae41ed037e77252058dacadd5ff1f0c36c7c1ff95503e1e7a8 murx.1 84713fc8e6b244292bdd53d6071578cde67b9fe136d85e4b4809eceab53dbb6d86f33fd846ec87eeccefdbd006744ca7898b677f43b3447a1c357b8a6a2f8301 murx.1
1b98d82dc3c41c376827cfd3883ee8918f24e82eab138fbb0e62bc5c2b0ba9498eb3abe59dc96b3f3d67a20fbdb331ed113d1898297c4f3c904e6341364cfdc9 MURX-README.md 167090193501e8f2fbe1a6c34369b7ee556ca5c84207b54e8952b19b44ef6d4eac89c03ec450956284d6754dd3c00ffa2241976545909d9504e30802c9c28e26 MURX-README.md
2fe33ba22c5f68e124904be594208f050be20f33d115f9a56f60cac93304102da32e6a7e78154e831d3704da7ca8bfefd7025e7b8901e65babcd83e7342f6382 LICENSE 2fe33ba22c5f68e124904be594208f050be20f33d115f9a56f60cac93304102da32e6a7e78154e831d3704da7ca8bfefd7025e7b8901e65babcd83e7342f6382 LICENSE
4d32dba475e5f9818fcd008068b011cbae9fc4b8e29897c933775d6660f44a7992d08a1550320d83233af729a42b241ef1d182bf5983ef2f64deab76cab2260d AUTHORS 4d32dba475e5f9818fcd008068b011cbae9fc4b8e29897c933775d6660f44a7992d08a1550320d83233af729a42b241ef1d182bf5983ef2f64deab76cab2260d AUTHORS
" "

View file

@ -8,10 +8,10 @@ url='https://codeberg.org/armin/murx'
license=('Apache-2.0') license=('Apache-2.0')
depends=('glibc') depends=('glibc')
source=('murx.c' 'Makefile' 'murx.1' 'MURX-README.md' 'LICENSE' 'AUTHORS') source=('murx.c' 'Makefile' 'murx.1' 'MURX-README.md' 'LICENSE' 'AUTHORS')
sha256sums=('358d39eed410a9657ef811892288ef407fe8f17709cb1b4b5e0405635594b70d' sha256sums=('68b2e3aa8cf2de7a69aeee008242983f5ca01839e54127547b2f6860ff249dd5'
'78a9c19c212e8038422e1bb4bb96d9b25eb19ad1359489cd32edf9e1a76638b2' '78a9c19c212e8038422e1bb4bb96d9b25eb19ad1359489cd32edf9e1a76638b2'
'953966bfdd0b49cb26c11220e1e2bf6b5862aaa1b2d0bf002cde9d276f0ae96b' 'b0965c6c8cd73cef1e578e4a8295df0899b43f20ab9a9649150790a3b1434c1b'
'1a9c479723f74cdc3a2af6cf7a4ad52388681b11a5ba3f4cfb73d28af631e036' '7cb95cc829fd2f9756cbb611aa4ddb8dc97853ccf360efd18d1423628e484aa1'
'31c5556be4cdd9bf52bb55f18ead0c68a4f0e793c2c2dab0a2a2c6d92407d0d4' '31c5556be4cdd9bf52bb55f18ead0c68a4f0e793c2c2dab0a2a2c6d92407d0d4'
'dbc8a4fc569d4cd7bcd45516ccc98c1396fce0682c262103069c8f5150538cdb') 'dbc8a4fc569d4cd7bcd45516ccc98c1396fce0682c262103069c8f5150538cdb')