How do I get the backspace key to send ^H in tmux?

2015-01-10 Thread Nuzhna Pomoshch
New user to tmux.

Unfortunately, one of the first things I discovered is that (in tmux), pressing 
the backspace key throws out ^? instead of ^H (xterm), which is causing me all 
sorts of problems.

I assume this is relatively easy to reconfigure, but I spent some time 
searching and reading for how to do it, but couldn't find it.

Can you please tell me what to place in the configuration file to get the 
backspace key to send ^H in tmux?

If that is not possible, can you direct me to the correct source file that 
controls this behavior, and I will patch my own copy and recompile?

Thanks.

Nuzhna

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: [PATCH] Makefile.am: remove unsafe headers path

2015-01-10 Thread Romain Naour
Hi,

Le 29/12/2014 22:35, Romain Naour a écrit :
> /usr/local/include is probably not needed and it's unsafe for
> cross-compilation.
> 
> Signed-off-by: Romain Naour 
> ---
>  Makefile.am | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Makefile.am b/Makefile.am
> index a9ad5b9..0109e5d 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -38,12 +38,12 @@ else
>  CFLAGS += -O2
>  endif
>  if IS_GCC4
> -CPPFLAGS += -iquote. -I/usr/local/include
> +CPPFLAGS += -iquote.
>  if IS_DEBUG
>  CFLAGS += -Wno-pointer-sign
>  endif
>  else
> -CPPFLAGS += -I. -I- -I/usr/local/include
> +CPPFLAGS += -I. -I-
>  endif
>  endif
>  
> 

Please, consider this patch for the next release.

Thanks.

Best regards,
Romain Naour

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: [PATCH] Makefile.am: remove unsafe headers path

2015-01-10 Thread Nicholas Marriott
Well, why is it unsafe? I'm not too concerned about crossbuilding TBH. Are you 
sure this isn't still needed on eg FreeBSD?

 Original message 
From: Romain Naour  
Date:10/01/2015  14:12  (GMT+00:00) 
To: nicholas.marri...@gmail.com 
Cc: tmux-us...@lists.sf.net 
Subject: Re: [PATCH] Makefile.am: remove unsafe headers path 

Hi,

Le 29/12/2014 22:35, Romain Naour a écrit :
> /usr/local/include is probably not needed and it's unsafe for
> cross-compilation.
> 
> Signed-off-by: Romain Naour 
> ---
>  Makefile.am | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/Makefile.am b/Makefile.am
> index a9ad5b9..0109e5d 100644
> --- a/Makefile.am
> +++ b/Makefile.am
> @@ -38,12 +38,12 @@ else
>  CFLAGS += -O2
>  endif
>  if IS_GCC4
> -CPPFLAGS += -iquote. -I/usr/local/include
> +CPPFLAGS += -iquote.
>  if IS_DEBUG
>  CFLAGS += -Wno-pointer-sign
>  endif
>  else
> -CPPFLAGS += -I. -I- -I/usr/local/include
> +CPPFLAGS += -I. -I-
>  endif
>  endif
>  
> 

Please, consider this patch for the next release.

Thanks.

Best regards,
Romain Naour
--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: [PATCH] Makefile.am: remove unsafe headers path

2015-01-10 Thread Romain Naour
Hi Nicholas,

Le 10/01/2015 18:16, Nicholas Marriott a écrit :
> Well, why is it unsafe? I'm not too concerned about crossbuilding TBH. Are you
> sure this isn't still needed on eg FreeBSD?

Ok, let's me explain my use case.

tmux has been packaged in Buildroot [1][2] (and probably Yoto too) and the build
system use a cross-compiler to build the entire target system.

Also all headers and libraries for the target are installed in a specific
directory called STAGING_DIR. So using a path like /usr/local/include can lead
to mixing headers from host and target (that may come from different versions).

That why all paths that point to a host location (starting with /usr/include,
/usr/local/include or /lib) is considered unsafe for cross-compilation.

Recently, we added in Buildroot a tool to check if host headers or libraries
paths are used [3].

Regarding FreeBSD compatibility, I'm not sure (I'm not a FreeBSB user).
Probably yes, they still need /usr/local/include for native build.

But I think, it's the user's responsibility to ensure that their compiler
searches for headers in the appropriate location, not the tmux's Makefile.
Especially when headers paths are passed on the command line.

For example, on my Fedora host the /usr/local/include is an empty directory,
It's not needed to force to use this path in the CFLAGS even for a native build.

Or consider using pkg-config to search for headers and libraries (ncurses and
libevent).

Best regards,
Romain Naour

[1] http://buildroot.org/
[2] http://git.buildroot.net/buildroot/tree/package/tmux
[3] http://lists.busybox.net/pipermail/buildroot/2014-December/114848.html
> 
>  Original message 
> From: Romain Naour
> Date:10/01/2015 14:12 (GMT+00:00)
> To: nicholas.marri...@gmail.com
> Cc: tmux-us...@lists.sf.net
> Subject: Re: [PATCH] Makefile.am: remove unsafe headers path
> 
> Hi,
> 
> Le 29/12/2014 22:35, Romain Naour a écrit :
>> /usr/local/include is probably not needed and it's unsafe for
>> cross-compilation.
>>
>> Signed-off-by: Romain Naour 
>> ---
>>  Makefile.am | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/Makefile.am b/Makefile.am
>> index a9ad5b9..0109e5d 100644
>> --- a/Makefile.am
>> +++ b/Makefile.am
>> @@ -38,12 +38,12 @@ else
>>  CFLAGS += -O2
>>  endif
>>  if IS_GCC4
>> -CPPFLAGS += -iquote. -I/usr/local/include
>> +CPPFLAGS += -iquote.
>>  if IS_DEBUG
>>  CFLAGS += -Wno-pointer-sign
>>  endif
>>  else
>> -CPPFLAGS += -I. -I- -I/usr/local/include
>> +CPPFLAGS += -I. -I-
>>  endif
>>  endif
>> 
>>
> 
> Please, consider this patch for the next release.
> 
> Thanks.
> 
> Best regards,
> Romain Naour

--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net
___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users


Re: [PATCH] Makefile.am: remove unsafe headers path

2015-01-10 Thread Nicholas Marriott
Hmm well I think it's nice if users can just download the tarball and run 
configure and it works without having to point it at dependencies, something 
which regularly confuses users. /usr/local is a common default location for 
local builds, I've occasionally been tempted to add some others too.

Still, I'm not sure there is any evidence having this particulatly helps 
anybody, libevent and ncurses are part of base on OpenBSD, NetBSD uses 
/usr/pkg, GCC on Linux mostly searches /usr/local by default. I suspect the 
FreeBSD compiler searches /usr/local by default as well, I'll have a look at 
some point.

In the meantime, if you add your own include directories, they should be 
searched first no matter what tmux adds.

 Original message 
From: Romain Naour  
Date:10/01/2015  23:09  (GMT+00:00) 
To: Nicholas Marriott  
Cc: tmux-us...@lists.sf.net 
Subject: Re: [PATCH] Makefile.am: remove unsafe headers path 

Hi Nicholas,

Le 10/01/2015 18:16, Nicholas Marriott a écrit :
> Well, why is it unsafe? I'm not too concerned about crossbuilding TBH. Are you
> sure this isn't still needed on eg FreeBSD?

Ok, let's me explain my use case.

tmux has been packaged in Buildroot [1][2] (and probably Yoto too) and the build
system use a cross-compiler to build the entire target system.

Also all headers and libraries for the target are installed in a specific
directory called STAGING_DIR. So using a path like /usr/local/include can lead
to mixing headers from host and target (that may come from different versions).

That why all paths that point to a host location (starting with /usr/include,
/usr/local/include or /lib) is considered unsafe for cross-compilation.

Recently, we added in Buildroot a tool to check if host headers or libraries
paths are used [3].

Regarding FreeBSD compatibility, I'm not sure (I'm not a FreeBSB user).
Probably yes, they still need /usr/local/include for native build.

But I think, it's the user's responsibility to ensure that their compiler
searches for headers in the appropriate location, not the tmux's Makefile.
Especially when headers paths are passed on the command line.

For example, on my Fedora host the /usr/local/include is an empty directory,
It's not needed to force to use this path in the CFLAGS even for a native build.

Or consider using pkg-config to search for headers and libraries (ncurses and
libevent).

Best regards,
Romain Naour

[1] http://buildroot.org/
[2] http://git.buildroot.net/buildroot/tree/package/tmux
[3] http://lists.busybox.net/pipermail/buildroot/2014-December/114848.html
> 
>  Original message 
> From: Romain Naour
> Date:10/01/2015 14:12 (GMT+00:00)
> To: nicholas.marri...@gmail.com
> Cc: tmux-us...@lists.sf.net
> Subject: Re: [PATCH] Makefile.am: remove unsafe headers path
> 
> Hi,
> 
> Le 29/12/2014 22:35, Romain Naour a écrit :
>> /usr/local/include is probably not needed and it's unsafe for
>> cross-compilation.
>>
>> Signed-off-by: Romain Naour 
>> ---
>>  Makefile.am | 4 ++--
>>  1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/Makefile.am b/Makefile.am
>> index a9ad5b9..0109e5d 100644
>> --- a/Makefile.am
>> +++ b/Makefile.am
>> @@ -38,12 +38,12 @@ else
>>  CFLAGS += -O2
>>  endif
>>  if IS_GCC4
>> -CPPFLAGS += -iquote. -I/usr/local/include
>> +CPPFLAGS += -iquote.
>>  if IS_DEBUG
>>  CFLAGS += -Wno-pointer-sign
>>  endif
>>  else
>> -CPPFLAGS += -I. -I- -I/usr/local/include
>> +CPPFLAGS += -I. -I-
>>  endif
>>  endif
>> 
>>
> 
> Please, consider this patch for the next release.
> 
> Thanks.
> 
> Best regards,
> Romain Naour
--
Dive into the World of Parallel Programming! The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net___
tmux-users mailing list
tmux-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tmux-users