Welcome! Log In Create A New Profile

Advanced

Why tmux think screen's serial feature is bloated?

Posted by syong 
Why tmux think screen's serial feature is bloated?
April 01, 2013 11:46PM
Here is my guess:

(%8)(23:42)(punk)~> cat bin/serial 
#!/bin/sh

if [ $# -ne 2 -o ! -c $1 ]; then
        echo "`basename $0` <device> <speed>"
else
        stty -F $1 $2 line 0 kill ^H min 100 time 2 brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -echo
        cat $1 &
        trap "kill $?" INT
        while read _C
        do
                echo "$_C" > $1
        done
fi
(%8)(23:42)(punk)~>

-syong
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: