Disable ssh color

Discussion in 'Tomato Firmware' started by _wb_, May 30, 2014.

  1. _wb_

    _wb_ Networkin' Nut Member

    Last edited: May 30, 2014
  2. kthaddock

    kthaddock Network Guru Member

    Admin Access => Web Admin => SSH Daemon => Extended MOTD
  3. koitsu

    koitsu Network Guru Member

    This is not a Tomato/TomatoUSB question, this is a Busybox question.

    export LS_COLORS=none
    Taken from Busybox source for ls, see around line 1149.

    Colour is something supported per command, thus there is no guarantee you can "disable it" universally. Colour stuff in the MOTD file has no reliance on a command, and instead makes a blind assumption that the connecting terminal supports colour. This is a very bad/awful/horrible assumption. The default assumption should be that the connecting terminal does not support colour of any kind.

    Alternately if colour in general bothers you, consider using a terminal emulator that supports disabling colour support. For example, classic vt100 (rather than terminal types xterm, linux, cons25, etc.) does not support colour, but you may need to tweak/adjust settings in your terminal emulator to accomplish this. Some terminal emulators violate certain conventions/rules, such as supporting colour while using a vt100 term (and if they do, they should at least let you toggle that violation).
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice