Author Topic: [TRICK] If man pages not display correctly in lxterminal  (Read 104 times)

aus9

  • Newbie
  • *
  • Posts: 32
  • Karma: +0/-0
If man pages do not display correctly in lxterminal read on

proof of glitch for me
https://i.imgur.com/XUDXk5K.png

possible fix, try at own risk but its a read only file. No need to make it executable. Special thanks to Bela Markus from Tinycore for the fix.

Code: [Select]
sudo su
cat >> /usr/bin/lxterminal-xterm <<'EOF'
#!/sbin/busybox sh

######################################################
# lxterminal xterm wrapper for Tiny Core Linux 5.x
# By bmarkus
# v1.0 - October 15, 2013
######################################################

a=0
c=""

for v in $*
do
  if [ $a == 0 ]
  then
    if [ "$v" == "-g" ]
    then
      a=1
      c="--geometry="
    elif [ "$v" == "-e" ]
    then
      a=2
      c=$c$v" "
    fi
  elif [ $a == 1 ]
  then
    a=0
    c=$c$v" "
  elif [ $a == 2 ]
  then
    c=$c$v" "
  fi
done

lxterminal $c
EOF

chmod 444 /usr/bin/lxterminal-xterm

Pathway of Tinycore differs from NutyX so adjusted. Hope it helps

proof of fix
https://i.imgur.com/oRHxOGK.png