I am using Fedora Core 5, fish version 1.21.4. 

 

I have the following shell script which cycles through pretty colours on my terminal.

 

#!/bin/bash

#

# "colsel" - a term color selector

 

for n in `seq 40 47`

do

    for m in `seq 30 37`

    do

        echo -en "\E[$m;${n}m"

        clear

        echo $n $m

        read

    done

done

 

I’ve attempted to convert this for usage under the fish shell.  I ended u with:

 

#!/usr/bin/fish

#

# "colsel" - a term color selector

 

for n in `seq 40 47`;

    for m in `seq 30 37`;

        echo -en "\E[$m;${n}m"

        clear

        echo $n $m

        read

    end;

end;

 

 

When I run the script a get no colours, plus the read command appears not to work.

Reply via email to