LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Blogs
User Name
Password

Notices


Old

"dialog --file '&<file descriptor>' ..." and reset/restore stdin.

Posted 01-10-2016 at 10:10 PM by MadMaverick9 (MadMaverick9's Blog)
Updated 01-11-2016 at 10:39 PM by MadMaverick9

Code:
#!/bin/bash

STDINTTY=$(/usr/bin/readlink -n /dev/fd/0)

...

exec 3>&1
choice=$(/usr/bin/dialog --file '&4' <<__EOI__ 4<&0 0<${STDINTTY} 2>&1 1>&3
    --begin 6 10 --clear --backtitle "Main Menu" --title "MAIN MENU"
    --menu "Use [UP/DOWN] key to move" 32 96 25
    "alsamixer"         "soundcard mixer for ALSA soundcard driver, with ncurses
...
Member
Posted in Uncategorized
Views 1271 Comments 0 MadMaverick9 is offline
Old

tmux - "tmux new-window \; split-window -h" does not work as expected anymore.

Posted 10-06-2015 at 01:54 AM by MadMaverick9 (MadMaverick9's Blog)
Tags patch, tmux

Start tmux with:
Code:
bash $ tmux
Which will start a session with one window and a shell started. In that shell type:
Code:
bash $ tmux new-window \; split-window
Up to 1.9a this would create a new window and split that new window.
In 2.0 and above it creates a new window, but then splits the first window.

The first patch "current-session-02.patch.txt" restores previous 1.9a behavior. But in order to be complete, tmux should also keep track of the...
Attached Files
File Type: txt current-session-02.patch.txt (519 Bytes, 0 views)
File Type: txt current-session-04.patch.txt (1.6 KB, 0 views)
Member
Posted in Uncategorized
Views 1010 Comments 0 MadMaverick9 is offline
Old

rxvt-unicode - urxvt - utempter patch.

Posted 10-01-2015 at 02:46 AM by MadMaverick9 (MadMaverick9's Blog)

This patch removes all utmp/wtmp/lastlog related code from rxvt-unicode and replaces it with two calls to utempter_add_record and utempter_remove_record.

Why am I posting this here? Because neither Github.com nor Wordpress.com allow attaching patch/diff files to posts/comments. They only allow image files to be attached, which is very surprising esp. with regards to Github.com, which is supposed to be a website for programmers/developers.

Thank you very much Jeremy....
Attached Files
File Type: txt urxvt-utempter.patch.txt (41.2 KB, 0 views)
Member
Posted in Uncategorized
Views 1031 Comments 0 MadMaverick9 is offline

  



All times are GMT -5. The time now is 08:52 PM.

Main Menu
Advertisement
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration