On 03/04/2011 05:22 AM, Vaibhav Bedia wrote: > Setting TERMINFO manually to /usr/share/terminfo worked.
My suspicion is that the ncurses you linked against with tmux 1.4, has the wrong set of "default paths" to search, while the one you linked against with 1.3 had the right ones. Was probably a configure-time option to ncurses. To verify this, run "strings <path> | grep /usr/share/terminfo" on both of the ncurses library files, and see whether you get any results for the new one. If not, you may have to rebuild/obtain a new copy of your ncurses; one with the right search paths (or you could just set TERMINFO in your exports permanently, which is probably easier). > However i have a really strange observation. > > I just exported TERMINFO variable and then launched a tmux session. > Then i detached from it and logged out from the server i was working > on. > > When i again log in i again check TERMINFO and its not set to anything > (since i just did an export earlier). > > But now i can reattach to the session i had invoked earlier. Yeah, as I said before, setting TERMINFO only matters to the server. This is because it's the server that does all the work; the clients do almost nothing, other than tell the server where to draw things to (and what the name of the terminal is, and other environment settings). So, it's the server that does terminal name lookups in ncurses, which is affected by its own true environment settings with regard to TERMINFO. So once the server is started with a proper TERMINFO, you're good to go (as long as there does exist a terminfo entry for whatever the client's TERM is set to when it attaches). -- Micah J. Cowan http://micah.cowan.name/ ------------------------------------------------------------------------------ What You Don't Know About Data Connectivity CAN Hurt You This paper provides an overview of data connectivity, details its effect on application quality, and explores various alternative solutions. http://p.sf.net/sfu/progress-d2d _______________________________________________ tmux-users mailing list tmux-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/tmux-users