Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Kein Zeilenumbruch in der Bash
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
Iced-Tux
Apprentice
Apprentice


Joined: 14 Apr 2004
Posts: 183
Location: Germany, Cologne

PostPosted: Sun Jun 06, 2004 9:44 am    Post subject: Kein Zeilenumbruch in der Bash Reply with quote

Hallo,
Ich habe mir meinen Bash-Prompt ein bischen angepasst, jedoch hab erfolgt kein Zeilenumbruch mehr bei einer Eingabe.

Hat jemand dafür eine Erklärung/lösung??


Hier mal meine PS1 Variable

export PS1="\t \d \033[1;31m<\w>[033;0m$ "

P.S: wenn jemand ne besser Idee hat meinen Prompt so darzustellen immer heraus damit :)

Gruß
iced-tux
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2961
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Sun Jun 06, 2004 11:17 am    Post subject: Reply with quote

wie? was meinst du mit keinem Zeilenumbruch?
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
Iced-Tux
Apprentice
Apprentice


Joined: 14 Apr 2004
Posts: 183
Location: Germany, Cologne

PostPosted: Sun Jun 06, 2004 11:55 am    Post subject: Reply with quote

na wenn bei einer Eingabe die Zeile zu ende ist *also hier gleichbedeutend mit rechtem Fensterrand* erfolgt kein Umbruch in die darunter liegende Zeile, sondern die Eingabe wird einfach in der gleichen Zeile fortgesetzt.
Back to top
View user's profile Send private message
pablo_supertux
Advocate
Advocate


Joined: 25 Jan 2004
Posts: 2961
Location: Somewhere between reality and Middle-Earth and in Freiburg (Germany)

PostPosted: Sun Jun 06, 2004 12:27 pm    Post subject: Reply with quote

1. Ich glaube, du willst so:
export PS1="\t \d \033[1;31m<\w> \[\033[00m\]"

2. Ich finde den Fehler nicht. Wie wäre damit? (das ist meine PS1)
export PS1="\[\033[01;32m\]\u@\h\[\033[01;34m\]:\w> \[\033[00m\]"
_________________
A! Elbereth Gilthoniel!
silivren penna míriel
o menel aglar elenath,
Gilthoniel, A! Elbereth!
Back to top
View user's profile Send private message
x000x
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jun 2002
Posts: 86
Location: Germany - Hamburg

PostPosted: Sun Jun 06, 2004 2:28 pm    Post subject: Reply with quote

Hallo,
Code:
export PS1="\t \d \[\033[1;31m\]<\w>\[\033[33m\]$\[\033[0m\] "

Eine kurze erklärung findest du hier

EDIT:
Meiner meinung nach stimmen die escape sequenzen in deinem ersten posting nicht...
_________________
-= Gruss Peter =-
-= alias x000x =-
Peter wrote:
perl -e 'print "\x47\x72\x75\x73\x73\x20\x50\x65\x74\x65\x72\x20\x3b\x2d\x29\x0a";'
Back to top
View user's profile Send private message
Iced-Tux
Apprentice
Apprentice


Joined: 14 Apr 2004
Posts: 183
Location: Germany, Cologne

PostPosted: Sun Jun 06, 2004 5:06 pm    Post subject: Reply with quote

Super danke :)

Es ist tatsächlich so, daß die Escape Sequence falsch ist.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
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