[bug] Cursor position wrong in Terminal
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
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
The problem is still there and here's a patch, quoting from #mer IRC channel: https://gist.github.com/inzanity/2ff9ba5538bd9b37bb5afc9ebae7d34b
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.
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).
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.
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 )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 )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 )I created a new build on OpenRepos.net with a fix created by @inz. (Thank you and please create a pull request for Jolla)
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 )Could you test this last terminal app build?
unresolved dependency - but installed anyway - cannot launch fingerterm now.
coley ( 2017-02-09 13:01:13 +0300 )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 )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 )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 )Asked: 2017-02-08 20:32:02 +0300
Seen: 1,225 times
Last updated: Jun 12 '18
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 )confirm difference observed between Jolla C and Jolla 1.
coley ( 2017-02-09 15:42:36 +0300 )just incrementing the font size makes it better.
cy8aer ( 2017-02-09 22:50:00 +0300 )same on Turing Phone (2.1.0.9)
cvp ( 2017-02-15 17:26:07 +0300 )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 )