You are not logged in.

#1 2008-10-04 19:46:48

Zaxariadis
Member
From: Hellas
Registered: 2007-03-30
Posts: 21

cursor in terminal runs ahead of text (KDE4) [solved]

Hi,
I have a very annoying problem with my terminal since my system upgrade to KDE4.

The cursor in terminal window in both Yakuake and Konsole runs ahead of text while I am typing.
In fact as much I write the cursor draws away leaving a growing space between the text and the cursor.
That space remains if I go back with the arrow key, splitting the line in two parts!
The same happens when I am trying to mark a text with my mouse.

The problem improved a bit when I replace the default .bashrc with the one is in archwiky (the space between the text and the cursor was decreased) but the problem (the space) remains. :@

Any ideas?
Thnx allot!

Last edited by Zaxariadis (2008-10-05 21:34:39)

Offline

#2 2008-10-05 10:41:38

Zaxariadis
Member
From: Hellas
Registered: 2007-03-30
Posts: 21

Re: cursor in terminal runs ahead of text (KDE4) [solved]

My .bashrc is

zaxariadis ~ $  cat .bashrc
alias ls='ls --color=auto'
alias rm='rm -i'
alias mv='mv -i'
alias cp='cp -i'
alias df='df -h'
alias mtv='LC_ALL=el_GR mtv'


#PS1='[\u@\h \W]\$ '
BLUE=`tput setf 1`
GREEN=`tput setf 2`
CYAN=`tput setf 3`
RED=`tput setf 4`
MAGENTA=`tput setf 5`
YELLOW=`tput setf 6`
WHITE=`tput setf 7`
#PS1='\[$GREEN\]\u@\h \[$BLUE\]\w/\[$GREEN\]\$\[$WHITE\] '
PS1='\[\e[0;32m\]\u\[\e[m\] \[\e[0;34m\]\w\[\e[m\] \[\e[0;31m\]\$ \[\e[m\]\[\e[0;37m\] '

and some screenshots ...
[url][IMG]http://img407.images

Offline

#3 2008-10-05 13:27:36

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: cursor in terminal runs ahead of text (KDE4) [solved]

I can see your problem.

I was hoping you'd post some screenshots, and I'm glad you did. Upon sight of them I immediately noticed something wrong, but it didn't hit me in the head for a few seconds.

You're not using a monospaced font.

Take a look at this:

w x
i x
w x
i x

And now this:

w x
i x
w x
i x

See how in the 2nd example the 'x's line up, although "w" and "i" aren't the same width? This is because the font used for code blocks in most forums (and most terminals! tongue) is monospaced - each character is equally spaced apart.

Now, I have no idea how on earth your terminal is letting you get away with using a proportionally spaced font (the opposite of monospaced), but at any rate, you'll need to use a monospaced font to get around the issue - "Monospace" is a good, obvious start, and there are many more available, like Terminus (package terminus-font) big_smile

-dav7

Last edited by dav7 (2008-10-05 13:29:19)


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#4 2008-10-05 16:58:31

Zaxariadis
Member
From: Hellas
Registered: 2007-03-30
Posts: 21

Re: cursor in terminal runs ahead of text (KDE4) [solved]

yikes yikes yikes

Yes that was it!

Thanx allot!

The weird thing is that I was used the "Monospace - Regular" fonts (I thing that was the default setting) which are NOT actual monospace tongue:P:P Almost every font in that list is monospace EXCEPT this! lol

And for a second I thought "What the Hell is going on... ?:|"

Using the DeJaVu solved my problem...

Last edited by Zaxariadis (2008-10-05 21:35:40)

Offline

#5 2008-10-05 17:16:17

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: cursor in terminal runs ahead of text (KDE4) [solved]

That's fine big_smile

*pokes the thread title and its lack of a "[solved]" tongue*

Edit: Default setting? It might be a bug in KDE then!

-dav7

Last edited by dav7 (2008-10-05 17:18:34)


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#6 2008-10-05 21:33:42

Zaxariadis
Member
From: Hellas
Registered: 2007-03-30
Posts: 21

Re: cursor in terminal runs ahead of text (KDE4) [solved]

dav7 wrote:

Edit: Default setting? It might be a bug in KDE then!

-dav7

I don't know!
In my Laptop after upgrade into KDE4 everything worked fine. hmm

The same happened to a friend.
In his first desktop no prob at all, but in the second he dealt with the same prob. with his terminal.

Maybe it depends to KDE's 3 configurations. hmm

Offline

#7 2008-10-06 05:13:20

dav7
Member
From: Australia
Registered: 2008-02-08
Posts: 674

Re: cursor in terminal runs ahead of text (KDE4) [solved]

Oddness... maybe you're right. I'm not too sure though, Konsole works okay here. I can't remember if it was a 3->4 upgrade hmm

At any rate, the fix is easy to apply big_smile

-dav7


Windows was made for looking at success from a distance through a wall of oversimplicity. Linux removes the wall, so you can just walk up to success and make it your own.
--
Reinventing the wheel is fun. You get to redefine pi.

Offline

#8 2018-11-25 12:59:00

iarigby
Member
Registered: 2018-11-25
Posts: 1

Re: cursor in terminal runs ahead of text (KDE4) [solved]

I had the same problem, thank you so much for help

Offline

#9 2018-11-25 15:04:59

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: cursor in terminal runs ahead of text (KDE4) [solved]

If you're still running KDE4 on an Arch system, you have bigger problems.

Please do not necrobump or create empty posts.

https://wiki.archlinux.org/index.php/Co … bumping%22
https://wiki.archlinux.org/index.php/Co … mpty_posts

Closing.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB