You are not logged in.
Pages: 1
Having some trouble with my terminal in Arch. I currently have Arch running with i3 and using Terminator emulating xterm. Everything is fine except something is causing the terminal instance to wrap the cursor way too earlier (before the end of the columns) and it wraps back to the start of the line rather than the beginning of a new line. I'm not sure how this would have happened or if there is some option to fix this. It works fine when I have no seperate tiles, adding vertical tiles causes the weird word wrap but horizontal tiling doesn't affect it. It's almost like its trying to programmatically figure out the word wrap point but gets halved with you add vertical tiles
Thanks for any help!
Last edited by mihok (2013-01-29 14:27:04)
Offline
I have the same issue on a intermittent basis with gnome-terminal in open-box. I can't figure it out either
Life is pleasant. Death is peaceful. It's the transition that's troublesome. Isaac Asimov - / -
Offline
It sounds like unescaped color codes in your PS1.
To test, set PS1 to something simple (eg `PS1='>'`). If that fixes it, then fix your custom PS1.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Thanks for the suggestion but I still get the behavior aorund 70% of the way into the line.
echo $PS1
\e[00;31m[-\e[107;34m\u@\h\e[00;31m-] |-\e[107;31m in [* \W *]\e[00;31m-|->\e[00m
Life is pleasant. Death is peaceful. It's the transition that's troublesome. Isaac Asimov - / -
Offline
Yes, and that PS1 is the problem. You need to surround color codes (or any other non-printing characters with \[ \]. None of your color sequences are in these brackets.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Thanks Trilby.
echo $PS1
\e\[[00;31m\][-\e\[[107;34m\]\u@\h\e\[[00;31m\]-] |-\e\[[107;31m\] in [* \W *]\e\[[00;31m\]-|->\e\[[00m\]
Life is pleasant. Death is peaceful. It's the transition that's troublesome. Isaac Asimov - / -
Offline
Does that work? It shouldn't.
\e\[[00;31m\] should be \[\e[00;31m\] for example.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Amazing!! This also did it for me, thank you so much!
Offline
Thanks for the direction.
PS1="\[\e[00;31m\][- \[\e[107;34m\]\u@\h\[\e[00;31m\]- ]
|-\[\e[107;31m\] in [* \W * ]\[\e[00;31m\]-|-->\[\e[00m\]"
------------------------------------------------------------------------------
[- joe@Tux-Box- ]
|- in [* Tunes * ]-|-->
Life is pleasant. Death is peaceful. It's the transition that's troublesome. Isaac Asimov - / -
Offline
Pages: 1