View previous topic :: View next topic |
Author |
Message |
return13 Guru


Joined: 02 Feb 2004 Posts: 513 Location: Hamburg - Germany
|
Posted: Fri Jun 09, 2006 12:32 pm Post subject: PS1 und Bash Farben "Problem" |
|
|
Also hab mir aus verschiedenen tuts und unserem netten forum ne PS1 zusammengebastelt...
Code: |
PS1="\n\[\033[0;34;47m\]\$(/bin/date '+%A %d %b %t %T')\n\[\033[1;36;44m\]\w\n\[\033[0;32;40m\]\u@\[\033[0;32;40m\]\$(/usr/bin/tty | /bin/sed -e 's:/dev/::') # \[\033[0;36;40m\]"
|
Ansich funktioniert es ja auch soweit... - aber wenn ich eine länger Ausgabe hab, wie z.B. bei ls -lha oder wenn ich ncurses Programme öffne macht er nicht mehr das was er sollte... mach ich dann ein clear ist alles wieder normal....
Wo liegt der Fehler?
Ist die Syntax falsch? _________________ Wer Recht erkennen will, muß zuvor in richtiger Weise gezweifelt haben.
Aristoteles (384-322), griech. Philosoph, Begründer d. abendländ. Philosophie |
|
Back to top |
|
 |
mv Watchman


Joined: 20 Apr 2005 Posts: 6781
|
Posted: Sat Jun 10, 2006 4:48 pm Post subject: Re: PS1 und Bash Farben "Problem" |
|
|
return13 wrote: | Aber wenn ich eine länger Ausgabe hab, wie z.B. bei ls -lha oder wenn ich ncurses Programme öffne macht er nicht mehr das was er sollte... |
Was heißt das "er tut nicht mehr, was er sollte"? Bei mir (bash-3.1_p17) sieht alles ganz normal aus.
Die aktuelle Bash 3.1 hat allerdings zuweilen Probleme, wenn $(...) und \[..\] kominiert werden, siehe Bug 130955. Das soll angeblich in der nächsten Bash-Version behoben werden. |
|
Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|