User Tools

Site Tools


tips:solaris:screen_terminfo

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
tips:solaris:screen_terminfo [2010/01/10 23:35]
mattieu
tips:solaris:screen_terminfo [2010/02/02 10:12] (current)
mattieu
Line 1: Line 1:
-====== Get a screen terminfo entry on Solaris ====== +====== Get a screen terminfo entry on Solaris ​/ IRIX ====== 
-Solaris ​doesn't have a '​screen'​ terminfo entry by default, so you might notice that if you set TERM to '​screen'​ things don't work right.+Solaris ​and IRIX don't have a '​screen'​ terminfo entry by default, so you might notice that if you set TERM to '​screen'​ things don't work right. This is especially true when you want to use terminal multiplexers like screen or [[http://​tmux.sourceforge.net/​|tmux]].
  
 Screen itself comes with a termcap entry. If you install using the sunfreeware package, the termcap file will be: ''/​usr/​local/​doc/​screen/​terminfo/​screencap''​.\\ Screen itself comes with a termcap entry. If you install using the sunfreeware package, the termcap file will be: ''/​usr/​local/​doc/​screen/​terminfo/​screencap''​.\\
 Otherwise, you can download {{:​tips:​solaris:​screencap.txt|this one}}. Otherwise, you can download {{:​tips:​solaris:​screencap.txt|this one}}.
  
-We need to convert this to a terminfo file and compile it. All tools used below come standard with Solaris.+We need to convert this to a terminfo file and compile it. All tools used below come standard with Solaris ​/ IRIX.
  
 <code bash>$ captoinfo screencap > screen.ti <code bash>$ captoinfo screencap > screen.ti
Line 16: Line 16:
 //Note: Make sure you're running ''/​usr/​bin/​tic'',​ not ''/​usr/​local/​bin/​tic''​ (comes with some sunfreeware package). The ''/​usr/​local/​bin/​tic''​ will write it's terminfo file to ''/​usr/​local/​share/​terminfo''​ which isn't used by any shell I've tried, not by default anyway. Something to keep in mind.// //Note: Make sure you're running ''/​usr/​bin/​tic'',​ not ''/​usr/​local/​bin/​tic''​ (comes with some sunfreeware package). The ''/​usr/​local/​bin/​tic''​ will write it's terminfo file to ''/​usr/​local/​share/​terminfo''​ which isn't used by any shell I've tried, not by default anyway. Something to keep in mind.//
  
-Now you've got a screen terminfo entry. Setting your TERM to '​screen'​ should work now, which is the default inside new screen sessions.+Now you've got a 'screen' ​terminfo entry. Setting your TERM to '​screen'​ should work now, which is the default inside new screen ​and [[http://​tmux.sourceforge.net/​|tmux]] ​sessions.
 ~~NOTOC~~ ~~NOTOC~~
tips/solaris/screen_terminfo.txt · Last modified: 2010/02/02 10:12 by mattieu