[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
We have moved to a new Sailfish OS Forum. Please start new discussions there.
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
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 +0200 )editA 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 +0200 )editI created a new build on OpenRepos.net with a fix created by @inz. (Thank you and please create a pull request for Jolla)
This thread is public, all members of Together.Jolla.Com can read this page.
Asked: 2017-02-08 20:32:02 +0200
Seen: 1,182 times
Last updated: Jun 12 '18
Fingerterm terminal defaults to / as current working directory [duplicate]
[Fixed in 1.0.3.8] Crash when linking contacts? [not relevant]
Time slider usage in video player of Gallery app causes the app to hang [duplicate]
QAudioOutput isn't integrated with system volume and libresource like QMediaPlayer
Bug: E-Mail synchronization does not work as configured [released]
Word prediction should be always turned off when entering passwords in Android apps [released]
Don't enforce focus to textfield [answered]
[Implemented in 1.0.3.8] Email: Honour Reply-To header [answered]
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 +0200 )editconfirm difference observed between Jolla C and Jolla 1.
coley ( 2017-02-09 15:42:36 +0200 )editjust incrementing the font size makes it better.
cy8aer ( 2017-02-09 22:50:00 +0200 )editsame on Turing Phone (2.1.0.9)
cvp ( 2017-02-15 17:26:07 +0200 )editThis also happens on Jolla 1. Editing any kind of text through the terminal is now impossible.
nthn ( 2017-02-18 12:09:38 +0200 )edit