As the topic says, please.
Tia,
Ozelo
As the topic says, please.
Tia,
Ozelo
No it is not possible, unless you use dumb terminal that doesn’t understand colors ![]()
Sorry I don’t have a solution for you. I just wondering…WHY?
Unless the user is colour-blinded, I found that the colour coding is very useful. It help me pick out my incorrect syntax in my command-lines.
Just my 2-cents.
Cheers
When outside in the bright sunlight the color text may not have enough contrast to be read easily. Especially green text on white background when using terminal within winbox.
When using command line I normally use telnet or putty (SSH) and get a black background which is a little easier to read.
Yes, that is one reason. Its pretty hard to see the text on a notebook under the sun and ppl are complaining about that. The most annoying also. But, another reason is a particular program that I use to remotely interact with ROS via telnet that get completely messed when reading the escape chars. Guess I need to research another solution or parse these chars to make things up. Thank you anyway. ![]()
can you clarify the telnet issue? what OS and what telnet program?
can you clarify the telnet issue? what OS and what telnet program?
Of course.
We run a program that we made in Delphi 7 to read the registration table stats and the access list entries via telnet and then the program write all this data on a MySQL database. Been working great on all ROS 2.9 versions, but cant do the job on 3.0rc versions without parsing the ROS console colors.
We didnt any changes yet cuz we are intended to use API on ROS 3.0 in a near future. These are sample raw data we grab from both ROS:
2.9.46
MikroTik v2.9.46
Login:
adminPassword:
MMM MMM KKK TTTTTTTTTTT KKKMMMM MMMM KKK TTTTTTTTTTT KKK
MMM MMMM MMM III KKK KKK RRRRRR OOOOOO TTT III KKK KKK
MMM MM MMM III KKKKK RRR RRR OOO OOO TTT III KKKKK
MMM MMM III KKK KKK RRRRRR OOO OOO TTT III KKK KKK
MMM MMM III KKK KKK RRR RRR OOOOOO TTT III KKK KKK
MikroTik RouterOS 2.9.46 (c) 1999-2007 > http://www.mikrotik.com/
(37 messages not shown)
jan/01/2000 00:00:24 system,error,critical router rebooted without proper shutdown, probably power outage
jan/01/2000 00:00:24 system,error,critical router rebooted without proper shutdown, probably power outage
jan/01/2000 00:00:24 system,error,critical router rebooted without proper shutdown, probably power outage
jan/01/2000 00:00:24 system,error,critical router rebooted without proper shutdown, probably power outage
jan/01/2000 00:00:24 system,error,critical router rebooted without proper shutdown, probably power outage
jan/01/2000 00:00:23 system,error,critical router rebooted without proper shutdown, probably power outage
jan/01/2000 00:00:24 system,error,critical router rebooted without proper shutdown, probably power outage
jan/01/2000 00:00:23 system,error,critical router rebooted without proper shutdown, probably power outage
Terminal dumb detected, using single line input mode
[admin@Lancernet_Porto_Porto_Seguro_AP_10] >
[admin@Lancernet_Porto_Porto_Seguro_AP_10] >
/
interface wireless access-list pr
[admin@Lancernet_Porto_Porto_Seguro_AP_10] > /interface wireless access-list p>
<0] > /interface wireless access-list pri
<0] > /interface wireless access-list print brief
<0] > /interface wireless access-list print briefFlags: X - disabled
INTERFACE MAC-ADDRESS AUTHENTICATION FORWARDING
0 ;;; DOMINGOS
wlan1 00:05:9E:81:0A:65 yes no
1 ;;; DOMINGOS
wlan1 00:80:48:40:4C:E4 yes no
2 ;;; RCS
wlan1 00:40:96:A4:DB:50 yes no
3 ;;; RCS
wlan1 00:1B:59:07:AC:D4 yes no
4 ;;; RCS
3.0rc9
MikroTik v3.0rc9
Login:
adminPassword:
MMM MMM KKK TTTTTTTTTTT KKKMMMM MMMM KKK TTTTTTTTTTT KKK
MMM MMMM MMM III KKK KKK RRRRRR OOOOOO TTT III KKK KKK
MMM MM MMM III KKKKK RRR RRR OOO OOO TTT III KKKKK
MMM MMM III KKK KKK RRRRRR OOO OOO TTT III KKK KKK
MMM MMM III KKK KKK RRR RRR OOOOOO TTT III KKK KKK
MikroTik RouterOS 3.0rc9 (c) 1999-2007 > http://www.mikrotik.com/
[25;H[25;Hdec/06/2007 21:54:55 system,error,critical login failure for user via bandwidth-
test
Z [6n
[c
<_APs] >
<_APs] >
c[24;H
<_APs] >
<_APs] >
/
interface wireless access-list print brief
<_APs] > /interface wireless access-list print brief
Flags: X - disabled [KINTERFACE MAC-ADDRESS AUTHENTICATION FORWARDING [K
0 ;;; rosemiro [K
wlan1 00:0A:52:01:AD:F7 yes no [K
1 ;;; domingos [K
wlan1 00:16:6F:9B:A5:75 yes yes [K
2 ;;; domingos [K
wlan1 00:05:9E:81:0A:65 yes yes [K
3 ;;; domingos [K
wlan1 00:02:2D:8F:C5:01 yes yes [K
Obs: Look at the system identity on ROS 3.0rc9 (last sample). For some reason I dont know yet, the actual name is “Lancernet_Santa_Rita_APs”, but we only see “<_APs] >” reading from the console prompt. Anyway, the problem is a lack of parsing data coming from ROS 3.0rcx devices that we couldnt fix in time. Probably we wont spend more time on this program. Thats why Ive asked to know some way to turn off the console colors. ![]()
Hope it help normis, my pleasure.
Tia
Ozelo
I don’t think it is telnet issue, I believe that you also have to take into account color codes and strip them if you don’t need them.
3.0rc8 changelog:
fixed terminal capability detection, now windows telnet client
works better. TERM environment variable is ignored completely now,
it was overriding detected values before;
I think that because there is no negotiation of TERM type it will force colors on incapable terminals.
Was there ever a solution for this? I upgraded my core router to V3.3 when I had a hardware crash, but this has completely hosed my provisioning system which used custom expect scripts to interact with the MT.
Sam Tetherow
Sandhills Wireless
3.0rc14:
*) console - added login parameters, passed as part of login name, after ‘+’;
can be used to disable colors (+c) and terminal autodetection (+t), e.g.
“admin+ct”;
Thanks!