ports/153942: Tmux patch breaks backspace in tmux command mode

Brandon Low lostlogic at lostlogicx.com
Thu Jan 13 02:40:13 UTC 2011


The following reply was made to PR ports/153942; it has been noted by GNATS.

From: Brandon Low <lostlogic at lostlogicx.com>
To: bug-followup at freebsd.org
Cc:  
Subject: Re: ports/153942: Tmux patch breaks backspace in tmux command mode
Date: Wed, 12 Jan 2011 18:36:20 -0800

 --TybLhxa8M7aNoW+V
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 Content-Transfer-Encoding: quoted-printable
 
 Here's an email that I received from the maintainer of tmux about this
 issue, indicating that it should be safe to remove the patch nowadays:
 
 the reason they did that is because at least some freebsd versions have    =
                                                            =20
 xterm etc generate ^H by default and have ^H as verase in termios (stty)   =
                                                            =20
                                                                            =
                                                            =20
 tmux always sends ^? as backspace to programs inside, but earlier          =
                                                            =20
 versions did not change the termios inside to set verase to ^?             =
                                                            =20
                                                                            =
                                                            =20
 new versions do, so outside can have verase=3D^H, tmux will detect that is =
                                                              =20
 backspace (from termios) and translate it to ^? inside as well as          =
                                                            =20
 setting verase to ^? in new windows so applications inside tmux use the    =
                                                            =20
 right thing                                                                =
                                                            =20
                                                                            =
                                                            =20
 this is all because terminfo kbs is too unreliable and so many             =
                                                            =20
 applications just blindly accept ^? anyway                                 =
                                                            =20
                                                                            =
                                                            =20
 since your terminal on freebsd sends ^? (and termios is ^? too) either     =
                                                            =20
 you're using a terminal which uses that by default, you changed the        =
                                                            =20
 xterm deleteIsDEL property (like everyone else does), or freebsd changed   =
                                                            =20
 their default=20
 
 --TybLhxa8M7aNoW+V
 Content-Type: application/x-pkcs7-signature
 Content-Disposition: attachment; filename="smime.p7s"
 Content-Transfer-Encoding: base64
 
 MIIPtAYJKoZIhvcNAQcCoIIPpTCCD6ECAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCC
 DQ0wggbRMIIFuaADAgECAgIOIjANBgkqhkiG9w0BAQUFADCBjDELMAkGA1UEBhMCSUwxFjAU
 B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