Mark J. Nelson writes:
>       "working" != "elegant"
>       "working" == "ugly"

;-}

> +            settings = termios.tcgetattr(sys.stdin.fileno())
> +         settings[3] = settings[3] & (~termios.ISIG) # c_lflag
> +         termios.tcsetattr(sys.stdin.fileno(), termios.TCSANOW, settings)

Perhaps a dumb question, but what brings the c_lflag settings back
afterwards?  If it's your shell setting ISIG when prompting, can we
trust all shells to do the same?

> ...which I have tested, including that I'm able to use ^C in my terminal 
> after the push completes.  (Tested in gnome-terminal and xterm.)

I guess this is part of the "!= 'elegant'" factor, but what happens if
the client doesn't take ^C at the tty, but instead burns to the ground
after starting but not completing a push?

-- 
James Carlson, Solaris Networking              <james.d.carlson at sun.com>
Sun Microsystems / 35 Network Drive        71.232W   Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757   42.496N   Fax +1 781 442 1677

Reply via email to