User Tools

Site Tools


localization_and_you_-_utf_8_on_netbsd

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
localization_and_you_-_utf_8_on_netbsd [2022/02/07 20:43] – [Rxvt-Unicode] jquahlocalization_and_you_-_utf_8_on_netbsd [2022/02/07 20:56] – [Rxvt-Unicode] jquah
Line 41: Line 41:
 </file> </file>
  
-In simple terms, this tricks NetBSD into thinking your terminal is rxvt, the original program urxvt is based on. However, the same volume of home directories is mounted by the OpenBSD machine //beastie//, which //does// have an entry for rxvt-unicode in its terminfo database! So if you log in to both systems on a regular basis, your OpenBSD experience might be needlessly downgraded. In that case, change the condition to+In simple terms, this tricks NetBSD into thinking your terminal is rxvt, the original program urxvt is based on. However, the same volume of home directories is mounted by the OpenBSD machine //beastie//, which //does// have an entry for rxvt-unicode in its terminfo database! So if you log in to both systems on a regular basis, and on both systems you use a shell that sources ''.profile'', your OpenBSD experience might be needlessly downgraded. In that case, check that the machine you're logged into is actually NetBSD before exporting the changed value of $TERM.
  
-  if [ "$(uname)" == "NetBSD" ] && [ "$TERM" == "rxvt-unicode" ] || [ "$TERM" == "rxvt-unicode-256color" ]; then+<file config add these lines> 
 +if [ "$TERM" == "rxvt-unicode" ] || [ "$TERM" == "rxvt-unicode-256color" ]; then 
 +      [ "$(uname)" == "NetBSD" ] && export TERM="rxvt" 
 +fi 
 +</file> 
 + 
 +(The latter code should work in any case, but it's pointless to run 'uname' on every login if you know you'll only ever be sourcing ''.profile'' from a NetBSD machine.)
  
 If you have a MetaArpa account, don’t worry - the MetaArray is running Debian, which understands urxvt just fine. If you have a MetaArpa account, don’t worry - the MetaArray is running Debian, which understands urxvt just fine.
localization_and_you_-_utf_8_on_netbsd.txt · Last modified: 2022/02/08 23:59 by jquah