Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[conf] problema shell (a capo)
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Tue Apr 05, 2005 5:41 am    Post subject: [conf] problema shell (a capo) Reply with quote

QUI potete vedere il problema che mi si presenta quando non c'è più posto nella linea del terminale (aterm).

non so se sia una cavolata o cosa, ma non so come fare :oops:

qualcuno sa aiutarmi, pf?

grazie mille
Back to top
View user's profile Send private message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3272
Location: Italy, Milano

PostPosted: Tue Apr 05, 2005 5:55 am    Post subject: Reply with quote

Ovvero quando una riga e' troppo lunga non va a capo ma inizia a sovrascrivere la riga corrente rendendo molto difficile il lavoro? Ho sempre avuto anche io questo problema con qualsiasi terminale, pensavo fosse una cosa che non si potesse risolvere, vediamo se qualcuno ha brillanti idee! :)

Federico
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk
Back to top
View user's profile Send private message
fat_penguin
Apprentice
Apprentice


Joined: 25 Jul 2004
Posts: 294
Location: sud side of Switzerland

PostPosted: Tue Apr 05, 2005 6:06 am    Post subject: Reply with quote

Anche a me succede la stessa cosa, ma non sempre e non su tutte le macchine... mah...

byebye
fat_penguin
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30967
Location: here

PostPosted: Tue Apr 05, 2005 6:08 am    Post subject: Reply with quote

Capita a dipendenza di come si mette il prompt per esempio con quello di gentoo di default non mi capita ma con il mio personalizato si.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Tue Apr 05, 2005 6:14 am    Post subject: Reply with quote

beh, come si dice allora "mal comune mezzo gaudio", anche se...:?...
Back to top
View user's profile Send private message
sovtek
n00b
n00b


Joined: 13 Jan 2005
Posts: 32

PostPosted: Tue Apr 05, 2005 6:28 am    Post subject: Reply with quote

Io ho utilizzato un prompt prendendo spunto da quello di fedeliallalinea e ho risolto non mettendo i caratteri MYL1 e MYL2 che avava messo lui nella variabile PS1.
Back to top
View user's profile Send private message
shev
Bodhisattva
Bodhisattva


Joined: 03 Feb 2003
Posts: 4084
Location: Italy

PostPosted: Tue Apr 05, 2005 9:40 am    Post subject: Reply with quote

Yes, anch'io ho avuto ancora problemi simili con prompt personalizzati. Dipende dal codice che genera il promt, io ho sempre sistemato aggiungendo o togliendo determinati valori (quando torno a casa sulla mia gentoo verifico quali fossero). Postaci il tuo PS1
_________________
Se per vivere ti dicono "siediti e stai zitto" tu alzati e muori combattendo
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Tue Apr 05, 2005 9:49 am    Post subject: Reply with quote

shev wrote:
Postaci il tuo PS1


si effettivamente hai ragione, avrei dovuto farlo...
questa sera provvedo,

grazie mille a tutti
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30967
Location: here

PostPosted: Tue Apr 05, 2005 10:17 am    Post subject: Reply with quote

sovtek wrote:
Io ho utilizzato un prompt prendendo spunto da quello di fedeliallalinea e ho risolto non mettendo i caratteri MYL1 e MYL2 che avava messo lui nella variabile PS1.

Praticamente i caratteri 'L' hai tolto?
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
sovtek
n00b
n00b


Joined: 13 Jan 2005
Posts: 32

PostPosted: Tue Apr 05, 2005 4:59 pm    Post subject: Reply with quote

fedeliallalinea wrote:
sovtek wrote:
Io ho utilizzato un prompt prendendo spunto da quello di fedeliallalinea e ho risolto non mettendo i caratteri MYL1 e MYL2 che avava messo lui nella variabile PS1.

Praticamente i caratteri 'L' hai tolto?


Si proprio quelli , una volta tolti ha funzionato tutto a meraviglia anche se non ho ben capito il perche' .
Back to top
View user's profile Send private message
sovtek
n00b
n00b


Joined: 13 Jan 2005
Posts: 32

PostPosted: Tue Apr 05, 2005 5:07 pm    Post subject: Reply with quote

fedeliallalinea wrote:
sovtek wrote:
Io ho utilizzato un prompt prendendo spunto da quello di fedeliallalinea e ho risolto non mettendo i caratteri MYL1 e MYL2 che avava messo lui nella variabile PS1.

Praticamente i caratteri 'L' hai tolto?


Si proprio quelli , una volta tolti ha funzionato tutto a meraviglia anche se non ho ben capito il perche' .
Back to top
View user's profile Send private message
federico
Advocate
Advocate


Joined: 18 Feb 2003
Posts: 3272
Location: Italy, Milano

PostPosted: Tue Apr 05, 2005 5:55 pm    Post subject: Reply with quote

Io non ho L di sorta ma ho lo stesso problema!
Code:

PS1='\[\033[36;06m\][\[\033[0m\]$(python /home/blackman/.easyprompt/plugins/acpi.py)\[\033[36;06m\]]\[\033[0m\] \[\033[32;01m\]\u@\h\[\033[0m\] \[\033[34;01m\]\W $\[\033[0m\] '


Fede
_________________
Sideralis www.sideralis.org
Pic http://blackman.amicofigo.com/gallery
Arduino http://www.arduino.cc
Chi aveva potuto aveva spaccato
2000 pezzi buttati là
Molti saluti,qualche domanda
Semplice come musica punk
Back to top
View user's profile Send private message
neryo
Veteran
Veteran


Joined: 09 Oct 2004
Posts: 1292
Location: Ferrara, Italy, Europe

PostPosted: Tue Apr 05, 2005 6:36 pm    Post subject: Reply with quote

fat_penguin wrote:
Anche a me succede la stessa cosa, ma non sempre e non su tutte le macchine... mah...


quoto e aggiungo che mi e' capitato con tutte le shell di qualsiasi distro abbia usato.. non capita sempre.. sembra un problema sporadico ma comune! :wink:
_________________
cache: a safe place for hiding or storing things..

D-link DWL-G650 AirPlus
Apache Php Mysql
Back to top
View user's profile Send private message
luna80
Veteran
Veteran


Joined: 01 Feb 2004
Posts: 1546
Location: switzerland

PostPosted: Tue Apr 05, 2005 6:52 pm    Post subject: Reply with quote

questo il mio PS1

Code:
export PS1="\n$red(\u)-(\$(mybattery))-(\w)->$blank"

dove

Code:

red='\[\033[1;31m\]'
blank='\[\033[0m\]'


function mybattery {
  AC_MESG="charging"
  NO_AC_MESG=" discharging"

  ACPI_RESPONSE=`acpi |cut -d : -f 2 |cut -d , -f 1`
  case $ACPI_RESPONSE in
    *$NO_AC_MESG*)
      ACstat="dschg"
      ;;
    *$AC_MESG*)
      ACstat="chg"
      ;;
    *)
      ACstat="charged"
      ;;
  esac
                                             
  TOPtime=200 #minuts(3h20m)
  TOP="100" #100%
                                                 
  BATstat=`acpi | cut -d , -f 2 | cut -d % -f 1`
  let "BATtime=$TOPtime*$BATstat/$TOP"
  let "h=$BATtime/60"
  let "min=$BATtime%60"
  BATtime="$h h $min m"
  echo -n $ACstat,"$BATstat %",$BATtime
}
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) 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