xterm - how to go onto next line when end of current line is reached?
Hi,
I am using xterm and sometimes when typing long commands into a small window, the command extends beyond the end of the line. On my old uni setup, when this happens, the cursor moves to the line below and you can see what text you have typed above however on my slack 13 setup, it overwrites the current line so you cannot see what you have typed! How can I set xterm to move onto the next line instead of overtyping? Thanks |
You have to configure xterm to enable "line wrapping".
autoWrap is supposed to be true by default so you may have it set false. if your xterm window has an edit menu - edit > preferences |
Hi,
It doesn't have an edit menu - I can use ctrl+click but that doesn't show up any such option. I see from the man page that the -aw flag should enable auto-wraparound however if I invoke xterm with this, it makes no difference. |
btw, I have created a .xresources file in my home directory as such:
Code:
xterm*autoWrap: true Code:
xrdb -merge .Xresources |
Is yours a standard, full Slack 13 install? Do you get the same behavior with other terminal emulators or is it only with xterm? Do you get the same behavior when logged in as root vs user? Have you made changes to /etc/termcap? What does 'echo $TERMCAP' report?
|
Is yours a standard, full Slack 13 install?
> Yep Do you get the same behavior with other terminal emulators or is it only with xterm? > It's the same with rxvt although I only use xterm Do you get the same behavior when logged in as root vs user? > If I run "su" then yes, it's the same however if I use "su -" then no, it works fine and goes onto the next line (in both xterm and rxvt) Have you made changes to /etc/termcap? > No, I haven't made any changes to this What does 'echo $TERMCAP' report? > For my user, it returns this: Code:
vs|xterm|xterm-color|vs100|xterm terminal emulator (X Window System):am:bs:km:co#100:li#70:ct=\E[3k:ue=\E[m:is=\E[m\E[?1l\E>:rs=\E[m\E[?1l\E>:eA=\E)0:as=^N:ae=^O:ac=aaffggjjkkllmmnnooqqssttuuvvwwxx:kI=\E[2~:kD=:kP=\E[5~:kN=\E[6~:k1=\E[11~:k2=\E[12~:k3=\E[13~:k4=\E[14~:k5=\E[15~:k6=\E[17~:k7=\E[18~:k8=\E[19~:k9=\E[20~:k0=\E[21~:F1=\E[23~:F2=\E[24~:kh=\E[H:kH=\EOw:ks=:ke=:te=\E[2J\E[?47l\E8:ti=\E7\E[?47h:ms:pt:xn:xo:it#8:RA=\E[?7l:SA=\E?7h:bl=^G:cr=^M:ta=^I:cm=\E[%i%d;%dH:le=^H:up=\E[A:do=\E[B:nd=\E[C:LE=\E[%dD:RI=\E[%dC:UP=\E[%dA:DO=\E[%dB:ho=\E[H:cl=\E[H\E[2J:ce=\E[K:cb=\E[1K:cd=\E[J:sf=\ED:sr=\EM:st=\EH:cs=\E[%i%d;%dr:sc=\E7:rc=\E8:ic=\E[@:IC=\E[%d@:al=\E[L:AL=\E[%dL:dc=\E[P:DC=\E[%dP:dl=\E[M:DL=\E[%dM:so=\E[7m:se=\E[m:us=\E[4m:mb=\E[5m:mh=\E[2m:md=\E[1m:mr=\E[7m:me=\E[m:ku=\E[A:kd=\E[B:kr=\E[C:kl=\E[D:kb=\177: Cheers! |
What Window Manager and/or Desktop Environment are you running?
|
I'm running fvwm with a custom (yet basic) .fvwmrc2 file:
Code:
#------------------------------------------------------------------------------ |
Have you tried running 'xterm -ls' (i.e., the login option)? I'm grasping at straws here because I'm not experiencing this behavior in my Slack 13 running LXDE.
|
Hi,
It is just the same with xterm -ls. :( Thanks |
Quote:
~/.Xresources |
Sorry, yes it was called that, I just didn't type it with the capital - me being lazy! :)
|
I have just discovered something. If I type LOTS of text into the console, it eventually wraps onto a new line and then continues wrapping after than. I am wondering whether it is maybe some setting which is setting the width of my window to be larger than it actually is? I have looked but can't find anything. :(
|
Your xterm console set to 80 characters?
maximise the window and see. |
I have the same problem, and also sometimes have junk appearing in terminal-based programs like irssi, but I think I've fixed it.
Check your PS1 variable, and make sure you surround non-printing characters (e.g. colour codes) with "\[" and "\]". |
All times are GMT -5. The time now is 06:10 PM. |