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

How to change Fingerterm background color

asked 2015-05-13 16:03:17 +0200

bracket gravatar image

updated 2015-05-14 08:58:57 +0200

Hi,

I want to change the background color on Fingerterm to white(or light gray) and foreground color to black. Any ideas how to do that? Where does it get the colors settings it using by default? I doubt those would be hardcoded on it..

  • brc
edit retag flag offensive close delete

Comments

1

A quick find . -name main.qml as root found these files on my phone:

./usr/share/store-client/main.qml ./usr/share/jolla-startupwizard-pre-user-session/main.qml ./usr/share/jolla-startupwizard/main.qml ./usr/share/voicecall-ui-jolla/main.qml ./usr/share/csd/main.qml ./usr/share/sailfish-maps/main.qml ./usr/share/harbour-jopas/qml/main.qml ./usr/share/harbour-screenshot/qml/main.qml ./usr/share/lipstick-jolla-home-qt5/main.qml ./usr/share/sailfish-tutorial/main.qml ./usr/share/harbour-flappy/qml/main.qml ./usr/share/harbour-xbmcremote/qml/main.qml

Judging by the names I don't think those are the one which has the Fingerterm settings.. Where the hell could it be..

  • brc
bracket ( 2015-05-13 22:43:22 +0200 )edit

4 Answers

Sort by » oldest newest most voted
4

answered 2015-05-14 11:00:40 +0200

kimmoli gravatar image

Seems you can't do this on device directly.

Fingerterm contains QML files as resources integrated in binary, not as separate files under /usr/share.

So you need to make changes in source, and rebuild it yourself.

edit flag offensive delete publish link more

Comments

3

Well isn't that crappy... Well, there's a suggestion for improvement. :) Unless someone codes a better terminal that can be installed.. :)

  • brc
bracket ( 2015-05-14 12:42:26 +0200 )edit

The file resides here; /usr/share/fingerterm/Main.qml

@bracket@kimmoli

Yes, it can be done directly on the device - maybe the fingerterm package has been updated since you guys wrote these answers/comments.

See my 'workaround' here;

https://together.jolla.com/question/102504/allow-setting-background-colour-of-fingerterm/

Spam Hunter ( 2017-11-21 14:31:57 +0200 )edit

I did the change a while ago not to use resource to encapsulate the QML files, indeed. @pvuorela accepted them upstream and finally here they come.

Damien Caliste ( 2017-11-21 14:46:03 +0200 )edit

Thanks @Damien Caliste

Spam Hunter ( 2017-11-21 14:59:13 +0200 )edit
1

answered 2015-07-26 14:34:06 +0200

00prometheus gravatar image

updated 2015-07-26 16:35:49 +0200

Hmmm, something is strange here. I tried grep:ing the source for 000000 and ffffff. I only got hits in the *.qml-files and some irrelevant hits in *.layout. Since the qml-files remain as text in the binary I simply did a:

# Get root priviliges
devel-su
# Change black into almost-white yellow, and white into black with a tinge of red
cat /usr/bin/fingerterm | sed -e 's/#000000/#ffffe8/' | sed -e 's/#ffffff/#0f0000/' > fingerterm-yellow
# Save original fingerterm
mv /usr/bin/fingerterm fingerterm-orig
# Put my "yellowfied" fingerterm in place of the original
mv fingerterm-yellow /usr/bin/fingerterm
# Make the new fingerterm runnable and belonging to root
chown root:root /usr/bin/fingerterm
chmod a+xr /usr/bin/fingerterm

But no dice, fingerterm remained stubbornly black!

(Once you are done with experimenting, you can do:

mv fingerterm-orig /usr/bin/fingerterm

to restore fingerterm to its original state)

So, the colours are not set in the binary! Where then? (Or perhaps I am misunderstanding how the qml-files work in the binary?)

edit flag offensive delete publish link more
1

answered 2017-11-20 17:23:51 +0200

lakutalo gravatar image

updated 2017-11-20 21:30:07 +0200

To set colours of input and output text, type e.g. setterm --foreground black --background white

It really works, but yet I have not found a way to change the entire background. So this is not a perfect solution, but merely one move into that direction.

(Back-linking also same answer here)

edit flag offensive delete publish link more

Comments

Other terminals offer a startup option for fg/bg configuration, however there's nothing like that in the code of fingerterm.

marsch ( 2017-11-21 02:26:11 +0200 )edit
0

answered 2015-05-13 19:49:42 +0200

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

updated 2017-11-21 11:50:34 +0200

Spam Hunter gravatar image

https://github.com/nemomobile/fingerterm/blob/master/qml/Main.qml has some options to change! So there must be another file in the file system which you can change.

Moved here: https://git.merproject.org/mer-core/fingerterm/tree/master

edit flag offensive delete publish link more

Comments

I'm not a programmer, but this looks promising:

44    property string bgcolor: "#000000"

77    id: window
78    objectName: "window"
79    color: bgcolor

Replace "#000000" with the hex number of the color you want the bgcolor to be.

raketti ( 2015-05-13 20:21:07 +0200 )edit

I spent 15 minutes trying to find anything related to that file on my phone with no luck. :( The closest thing I could find was "~/.config/FingerTerm/settings.ini", but it doesn't have color settings.

drcouzelis ( 2015-05-13 21:09:42 +0200 )edit
Login/Signup to Answer

Question tools

Follow
1 follower

Stats

Asked: 2015-05-13 16:03:17 +0200

Seen: 1,060 times

Last updated: Nov 21 '17