Ask / Submit
21

[bug] Cursor position wrong in Terminal

asked 2017-02-08 20:32:02 +0300

cy8aer gravatar image

updated 2018-06-12 13:38:10 +0300

olf gravatar image

The cursor position of the terminal is not in sync with the letter positions: If you are writing there is space growing between the text and the cursor. This get's really fatal when using tab for completions

edit retag flag offensive close delete

Comments

2

I can observe the same. Cursor is always 'ahead' of what I'm typing. This only happens on my Jolla C (not Jolla1).

molan ( 2017-02-08 21:22:22 +0300 )edit
1

confirm difference observed between Jolla C and Jolla 1.

coley ( 2017-02-09 15:42:36 +0300 )edit
1

just incrementing the font size makes it better.

cy8aer ( 2017-02-09 22:50:00 +0300 )edit

same on Turing Phone (2.1.0.9)

cvp ( 2017-02-15 17:26:07 +0300 )edit

This also happens on Jolla 1. Editing any kind of text through the terminal is now impossible.

nthn ( 2017-02-18 12:09:38 +0300 )edit

6 Answers

Sort by » oldest newest most voted
3

answered 2018-06-12 03:10:42 +0300

sledges gravatar image

The problem is still there and here's a patch, quoting from #mer IRC channel: https://gist.github.com/inzanity/2ff9ba5538bd9b37bb5afc9ebae7d34b

edit flag offensive delete publish link more

Comments

1

@olf as far as I can see the patches are identical (besides whitespace)

Mohjive ( 2018-06-12 23:51:56 +0300 )edit

Sorry, yes they are (i.e., I don't understand anymore, what difference I believed to see yesterday late evening).
Thus deleted my comment, as it was nonsense, obviously.

olf ( 2018-06-13 13:03:58 +0300 )edit
3

answered 2018-06-12 13:31:49 +0300

olf gravatar image

updated 2018-06-12 23:29:54 +0300

A fix for this behaviour ("wrong cursor position") has been around for years, Jolla just does not apply it.

ToeTerm has a proper fix for this issue (plus more), just as the FingerTerm fork by Lourens does (since its v1.3.3-4 on 2017-03-03, though that fork seems to be unmaintained now).

Furthermore, this question / discussion thread ("question") iswas a duplicate of https://together.jolla.com/question/24400/bug-terminal-cursor-missalign/ and https://together.jolla.com/question/157139/fingerterm-cursor-shift-after-2109/ (AFAIR the issue is much older than SFOS 2.1.0, though). Edit: Not anymore, both related questions are closed, so this has become the main question WRT this issue, as it provides most votes, extensive discussion, concise description and multiple solutions.
For background information and code, see e.g. https://github.com/R-033/toeterm/issues/12

I assume the workaround of utilising only font sizes, which are 4n-1 pt (n being any positive integer number), also works in Jolla's FingerTerm.

P.S:. ToeTerm, ThumbTerm and the various FingerTerm versions for SFOS all have their roots in the original Fingerterm for the N9, hence they still are quite similar (code and usage).

edit flag offensive delete publish link more
2

answered 2017-03-03 10:26:27 +0300

inz gravatar image

updated 2017-03-03 11:33:32 +0300

Forcing integer metrics on font seems to fix the issue (see patch). I did not figure out a way to do the same for the "line input", which is implemented in QML.

edit flag offensive delete publish link more

Comments

1

Please, create a pull request for upstream git repo (for saving your name)

https://git.merproject.org/mer-core/fingerterm

Daeto ( 2017-03-03 21:56:59 +0300 )edit

I hinted this patch in Mer project IRC channel. Let's see it it gets picked up...

Direc ( 2018-06-11 15:57:39 +0300 )edit

A pull request would be better, and as Daeto said you'd get your name on the commit...

Andy Branson ( 2018-06-11 18:50:48 +0300 )edit
2

answered 2017-03-04 11:36:06 +0300

Daeto gravatar image

I created a new build on OpenRepos.net with a fix created by @inz. (Thank you and please create a pull request for Jolla)

edit flag offensive delete publish link more
2

answered 2017-03-24 06:50:44 +0300

Rikujolla gravatar image

The bug is not repaired in version 2.1.0.10. Using Jolla C.

edit flag offensive delete publish link more

Comments

hm not really - for me the cursor is still not behind the last char (JollaC) with 2.1.0.10

[Update] needed to change the font size once - probably because I did the trick more or less useful with 2.1.0.9. Works now.

cy8aer ( 2017-03-26 19:44:24 +0300 )edit

@cy8aer, yes, not working out of the box. Thanks for that simple font size hint. Works fine! So the bug exists but I can live with it.

Rikujolla ( 2017-03-27 07:44:43 +0300 )edit
0

answered 2017-02-08 22:42:48 +0300

Daeto gravatar image

Could you test this last terminal app build?

edit flag offensive delete publish link more

Comments

unresolved dependency - but installed anyway - cannot launch fingerterm now.

coley ( 2017-02-09 13:01:13 +0300 )edit

@coley Yep, same issue, got around it by doing ln -s /usr/lib/libQt5Feedback.so.0 /usr/lib/libQt0Feedback.so.0 (from my computer using ssh), after this it should run, but the cursor issue is not solved, even with the latest version (1.3.3-1).

ced117 ( 2017-02-09 20:09:17 +0300 )edit

version number of dist fingerterm is the same like your openrepos version. Looks to dangerous for me to install - sorry. You may have trouble with developer mode is enabled and the dist version is installed

cy8aer ( 2017-02-09 22:47:31 +0300 )edit

same here. Incrementing and Decrementing fontsize can make it more worse fir me. The cursor desyncs more and more with fontsize changes. edit: this should be up to the question.

jolladiho ( 2017-02-12 12:45:47 +0300 )edit

I am running SFOSX 2.2.0.29 and FingerTerm is at version 1.3.6 - which is newer than what is available at OpenRepos. The issue is still present and still the same.

Direc ( 2018-06-11 15:56:54 +0300 )edit
Login/Signup to Answer

Question tools

Follow
11 followers

Stats

Asked: 2017-02-08 20:32:02 +0300

Seen: 805 times

Last updated: Jun 12