We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2019-11-08 13:57:27 +0200

Terminal is jumbling up code

I have a strange problem with Terminal. Random digits are being removed or inserted causing my code to not work.

Device is connected to PC via USB, accessed via SSH.

The following code has worked without fail up until now;

        onClicked: {
            if   (dimmer.color == "#90000000") dimmer.color = "#80000000"
            else (dimmer.color == "#80000000") dimmer.color = "#70000000"
            else (dimmer.color == "#70000000") dimmer.color = "#60000000"
            else (dimmer.color == "#60000000") dimmer.color = "#50000000"
            else (dimmer.color == "#50000000") dimmer.color = "#40000000"
            else (dimmer.color == "#40000000") dimmer.color = "#30000000"
            else (dimmer.color == "#30000000") dimmer.color = "#20000000"
            else (dimmer.color == "#20000000") dimmer.color = "#10000000"
        }

When I view my code again, I see this;

        onClicked: {
            if   (dimmer.color == "#9000000m") dimmor.color0= "#800 0000"
            else (dimmer.color == "#8000000m") dimmor.color0= "#700 0000"
            else (dimmer.color == "#7000000m") dimmor.color0= "#600 0000"
            else (dimmer.color == "#6000000m") dimmor.color0= "#500 0000"
            else (dimmer.color == "#5000000m") dimmor.color0= "#400 0000"
            else (dimmer.color == "#4000000m") dimmor.color0= "#300 0000"
            else (dimmer.color == "#3000000m") dimmor.color0= "#200 0000"
            else (dimmer.color == "#2000000m") dimmor.color0= "#100 0000"
        }
    }

But to see the above code as it is above, I have to run the cursor forwards through it. All attempts to correct the text just makes things worse, resulting in errors for lipstick.

Where are these random numbers and letters coming from?, this was a minor problem with SFOS 3.1 but seems worse with SFOS 3.

Terminal is jumbling up code

I have a strange problem with Terminal. Random digits are being removed or inserted causing my code to not work.

Device is connected to PC via USB, accessed via SSH.

The following code has worked without fail up until now;

        onClicked: {
            if   (dimmer.color == "#90000000") dimmer.color = "#80000000"
            else (dimmer.color == "#80000000") dimmer.color = "#70000000"
            else (dimmer.color == "#70000000") dimmer.color = "#60000000"
            else (dimmer.color == "#60000000") dimmer.color = "#50000000"
            else (dimmer.color == "#50000000") dimmer.color = "#40000000"
            else (dimmer.color == "#40000000") dimmer.color = "#30000000"
            else (dimmer.color == "#30000000") dimmer.color = "#20000000"
            else (dimmer.color == "#20000000") dimmer.color = "#10000000"
        }

When I view my code again, I see this;

        onClicked: {
            if   (dimmer.color == "#9000000m") dimmor.color0= "#800 0000"
            else (dimmer.color == "#8000000m") dimmor.color0= "#700 0000"
            else (dimmer.color == "#7000000m") dimmor.color0= "#600 0000"
            else (dimmer.color == "#6000000m") dimmor.color0= "#500 0000"
            else (dimmer.color == "#5000000m") dimmor.color0= "#400 0000"
            else (dimmer.color == "#4000000m") dimmor.color0= "#300 0000"
            else (dimmer.color == "#3000000m") dimmor.color0= "#200 0000"
            else (dimmer.color == "#2000000m") dimmor.color0= "#100 0000"
        }
    }

But to see the above code as it is above, I have to run the cursor forwards through it. All attempts to correct the text just makes things worse, resulting in errors for lipstick.

Where are these random numbers and letters coming from?, this was a minor problem with SFOS 3.1 but seems worse with SFOS 3.3.2

Terminal is jumbling up code

I have a strange problem with Terminal. Random digits are being removed or inserted causing my code to not work.

Device is connected to PC via USB, accessed via SSH.

The following code has worked without fail up until now;

        onClicked: {
            if   (dimmer.color == "#90000000") dimmer.color = "#80000000"
            else (dimmer.color == "#80000000") dimmer.color = "#70000000"
            else (dimmer.color == "#70000000") dimmer.color = "#60000000"
            else (dimmer.color == "#60000000") dimmer.color = "#50000000"
            else (dimmer.color == "#50000000") dimmer.color = "#40000000"
            else (dimmer.color == "#40000000") dimmer.color = "#30000000"
            else (dimmer.color == "#30000000") dimmer.color = "#20000000"
            else (dimmer.color == "#20000000") dimmer.color = "#10000000"
        }

When I view my code again, I see this;

        onClicked: {
            if   (dimmer.color == "#9000000m") dimmor.color0= "#800 0000"
            else (dimmer.color == "#8000000m") dimmor.color0= "#700 0000"
            else (dimmer.color == "#7000000m") dimmor.color0= "#600 0000"
            else (dimmer.color == "#6000000m") dimmor.color0= "#500 0000"
            else (dimmer.color == "#5000000m") dimmor.color0= "#400 0000"
            else (dimmer.color == "#4000000m") dimmor.color0= "#300 0000"
            else (dimmer.color == "#3000000m") dimmor.color0= "#200 0000"
            else (dimmer.color == "#2000000m") dimmor.color0= "#100 0000"
        }
    }

But to see the code as it is above, I have to run the cursor forwards through it. All attempts to correct the text just makes things worse, resulting in errors for lipstick.

Where are these random numbers and letters coming from?, this was a minor problem with SFOS 3.1 but seems worse with SFOS 3.2

Terminal is jumbling up code

I have a strange problem with Terminal. Random digits are being removed or inserted causing my code to not work.

Device is connected to PC via USB, accessed via SSH.

Nano is my default editor

The following code has worked without fail up until now;

        onClicked: {
            if   (dimmer.color == "#90000000") dimmer.color = "#80000000"
            else (dimmer.color == "#80000000") dimmer.color = "#70000000"
            else (dimmer.color == "#70000000") dimmer.color = "#60000000"
            else (dimmer.color == "#60000000") dimmer.color = "#50000000"
            else (dimmer.color == "#50000000") dimmer.color = "#40000000"
            else (dimmer.color == "#40000000") dimmer.color = "#30000000"
            else (dimmer.color == "#30000000") dimmer.color = "#20000000"
            else (dimmer.color == "#20000000") dimmer.color = "#10000000"
        }

When I view my code again, I see this;

        onClicked: {
            if   (dimmer.color == "#9000000m") dimmor.color0= "#800 0000"
            else (dimmer.color == "#8000000m") dimmor.color0= "#700 0000"
            else (dimmer.color == "#7000000m") dimmor.color0= "#600 0000"
            else (dimmer.color == "#6000000m") dimmor.color0= "#500 0000"
            else (dimmer.color == "#5000000m") dimmor.color0= "#400 0000"
            else (dimmer.color == "#4000000m") dimmor.color0= "#300 0000"
            else (dimmer.color == "#3000000m") dimmor.color0= "#200 0000"
            else (dimmer.color == "#2000000m") dimmor.color0= "#100 0000"
        }
    }

But to see the code as it is above, I have to run the cursor forwards through it. All attempts to correct the text just makes things worse, resulting in errors for lipstick.

Where are these random numbers and letters coming from?, this was a minor problem with SFOS 3.1 but seems worse with SFOS 3.2

Terminal is jumbling up code

I have a strange problem with Terminal. Random digits are being removed or inserted causing my code to not work.

Device Jolla1 device is connected to PC via USB, accessed via SSH.USB.

Nano is my default editoreditor. Fingerterm is the default terminal.

The following code has worked without fail up until now;

        onClicked: {
            if   (dimmer.color == "#90000000") dimmer.color = "#80000000"
            else (dimmer.color == "#80000000") dimmer.color = "#70000000"
            else (dimmer.color == "#70000000") dimmer.color = "#60000000"
            else (dimmer.color == "#60000000") dimmer.color = "#50000000"
            else (dimmer.color == "#50000000") dimmer.color = "#40000000"
            else (dimmer.color == "#40000000") dimmer.color = "#30000000"
            else (dimmer.color == "#30000000") dimmer.color = "#20000000"
            else (dimmer.color == "#20000000") dimmer.color = "#10000000"
        }

When I view my code again, I see this;

        onClicked: {
            if   (dimmer.color == "#9000000m") dimmor.color0= "#800 0000"
            else (dimmer.color == "#8000000m") dimmor.color0= "#700 0000"
            else (dimmer.color == "#7000000m") dimmor.color0= "#600 0000"
            else (dimmer.color == "#6000000m") dimmor.color0= "#500 0000"
            else (dimmer.color == "#5000000m") dimmor.color0= "#400 0000"
            else (dimmer.color == "#4000000m") dimmor.color0= "#300 0000"
            else (dimmer.color == "#3000000m") dimmor.color0= "#200 0000"
            else (dimmer.color == "#2000000m") dimmor.color0= "#100 0000"
        }
    }

But to see the code as it is above, I have to run the cursor forwards through it. All attempts to correct the text just makes things worse, resulting in errors for lipstick.

Where are these random numbers and letters coming from?, this was a minor problem with SFOS 3.1 but seems worse with SFOS 3.2

Terminal is jumbling up code

I have a strange problem with Terminal. Random digits are being removed or inserted causing my code to not work.

Jolla1 device is connected to PC via USB.

Nano is my default editor. Fingerterm is the default terminal.

The following code has worked without fail up until now;

        onClicked: {
            if   (dimmer.color == "#90000000") dimmer.color = "#80000000"
            else (dimmer.color == "#80000000") dimmer.color = "#70000000"
            else (dimmer.color == "#70000000") dimmer.color = "#60000000"
            else (dimmer.color == "#60000000") dimmer.color = "#50000000"
            else (dimmer.color == "#50000000") dimmer.color = "#40000000"
            else (dimmer.color == "#40000000") dimmer.color = "#30000000"
            else (dimmer.color == "#30000000") dimmer.color = "#20000000"
            else (dimmer.color == "#20000000") dimmer.color = "#10000000"
        }

When I view my code again, I see this;

        onClicked: {
            if   (dimmer.color == "#9000000m") dimmor.color0= "#800 0000"
            else (dimmer.color == "#8000000m") dimmor.color0= "#700 0000"
            else (dimmer.color == "#7000000m") dimmor.color0= "#600 0000"
            else (dimmer.color == "#6000000m") dimmor.color0= "#500 0000"
            else (dimmer.color == "#5000000m") dimmor.color0= "#400 0000"
            else (dimmer.color == "#4000000m") dimmor.color0= "#300 0000"
            else (dimmer.color == "#3000000m") dimmor.color0= "#200 0000"
            else (dimmer.color == "#2000000m") dimmor.color0= "#100 0000"
        }
    }

But to see the code as it is above, I have to run the cursor forwards through it. All attempts to correct the text just makes things worse, resulting in errors for lipstick.

Where are these random numbers and letters coming from?, this was a minor problem with SFOS 3.1 but seems worse with SFOS 3.2

Related or duplicate?, hmmmm;

https://together.jolla.com/question/198062/terminal-in-developer-mode-is-horrible/

Terminal is jumbling up code

EDIT: It seems (as pointed out) that the problem is with nano. I used vi instead to edit and could not reproduce the problem laid out below - closing as not relevant ~ Edz

I have a strange problem with Terminal. Random digits are being removed or inserted causing my code to not work.

Jolla1 device is connected to PC via USB.

Nano is my default editor. Fingerterm is the default terminal.

The following code has worked without fail up until now;

        onClicked: {
            if   (dimmer.color == "#90000000") dimmer.color = "#80000000"
            else (dimmer.color == "#80000000") dimmer.color = "#70000000"
            else (dimmer.color == "#70000000") dimmer.color = "#60000000"
            else (dimmer.color == "#60000000") dimmer.color = "#50000000"
            else (dimmer.color == "#50000000") dimmer.color = "#40000000"
            else (dimmer.color == "#40000000") dimmer.color = "#30000000"
            else (dimmer.color == "#30000000") dimmer.color = "#20000000"
            else (dimmer.color == "#20000000") dimmer.color = "#10000000"
        }

When I view my code again, I see this;

        onClicked: {
            if   (dimmer.color == "#9000000m") dimmor.color0= "#800 0000"
            else (dimmer.color == "#8000000m") dimmor.color0= "#700 0000"
            else (dimmer.color == "#7000000m") dimmor.color0= "#600 0000"
            else (dimmer.color == "#6000000m") dimmor.color0= "#500 0000"
            else (dimmer.color == "#5000000m") dimmor.color0= "#400 0000"
            else (dimmer.color == "#4000000m") dimmor.color0= "#300 0000"
            else (dimmer.color == "#3000000m") dimmor.color0= "#200 0000"
            else (dimmer.color == "#2000000m") dimmor.color0= "#100 0000"
        }
    }

But to see the code as it is above, I have to run the cursor forwards through it. All attempts to correct the text just makes things worse, resulting in errors for lipstick.

Where are these random numbers and letters coming from?, this was a minor problem with SFOS 3.1 but seems worse with SFOS 3.2

Related or duplicate?, hmmmm;

https://together.jolla.com/question/198062/terminal-in-developer-mode-is-horrible/

Terminal is jumbling up code

EDIT: It seems (as pointed out) out by @peterleinchen) that the problem is with nano. I used vi instead to edit and could not reproduce the problem laid out below - closing question as not relevant ~ Edz

I have a strange problem with Terminal. Random digits are being removed or inserted causing my code to not work.

Jolla1 device is connected to PC via USB.

Nano is my default editor. Fingerterm is the default terminal.

The following code has worked without fail up until now;

        onClicked: {
            if   (dimmer.color == "#90000000") dimmer.color = "#80000000"
            else (dimmer.color == "#80000000") dimmer.color = "#70000000"
            else (dimmer.color == "#70000000") dimmer.color = "#60000000"
            else (dimmer.color == "#60000000") dimmer.color = "#50000000"
            else (dimmer.color == "#50000000") dimmer.color = "#40000000"
            else (dimmer.color == "#40000000") dimmer.color = "#30000000"
            else (dimmer.color == "#30000000") dimmer.color = "#20000000"
            else (dimmer.color == "#20000000") dimmer.color = "#10000000"
        }

When I view my code again, I see this;

        onClicked: {
            if   (dimmer.color == "#9000000m") dimmor.color0= "#800 0000"
            else (dimmer.color == "#8000000m") dimmor.color0= "#700 0000"
            else (dimmer.color == "#7000000m") dimmor.color0= "#600 0000"
            else (dimmer.color == "#6000000m") dimmor.color0= "#500 0000"
            else (dimmer.color == "#5000000m") dimmor.color0= "#400 0000"
            else (dimmer.color == "#4000000m") dimmor.color0= "#300 0000"
            else (dimmer.color == "#3000000m") dimmor.color0= "#200 0000"
            else (dimmer.color == "#2000000m") dimmor.color0= "#100 0000"
        }
    }

But to see the code as it is above, I have to run the cursor forwards through it. All attempts to correct the text just makes things worse, resulting in errors for lipstick.

Where are these random numbers and letters coming from?, this was a minor problem with SFOS 3.1 but seems worse with SFOS 3.2

Related or duplicate?, hmmmm;

https://together.jolla.com/question/198062/terminal-in-developer-mode-is-horrible/