All times are UTC [ DST ]




Post new topic Reply to topic  [ 127 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 13  Next
  Print view

Re: Programação - Tudo
Author Message
PostPosted: 03 Mar 2009, 20:45 
Chuck Norris
Chuck Norris
User avatar
Offline

Joined: 26 Jan 2009, 10:10
Posts: 2169
Provavelmente tá a ler o caracter ENTER.


Top
 Profile  
Reply with quote  

Re: Programação - Tudo
PostPosted: 03 Mar 2009, 20:49 
Chuck Norris
Chuck Norris
User avatar
Offline

Joined: 13 Jan 2009, 18:37
Posts: 2662
Location: atrás de ti
We have a winner.

_________________
Image


Top
 Profile  
Reply with quote  

Re: Programação - Tudo
PostPosted: 04 Mar 2009, 01:54 
Chuck Norris
Chuck Norris
Offline

Joined: 12 Jan 2009, 00:49
Posts: 2040
Exactamente, por isso é que mesmo sem pôr um \n no printf é impressa uma quebra de linha. Btw, man fgets faz milagres:
Quote:
fgets() reads in at most one less than size characters from stream and stores them into the buffer pointed to by s. Reading stops after an EOF or a newline. If a newline is read, it is stored into the buffer. A '\0' is stored after the last character in the buffer.


Top
 Profile  
Reply with quote  

Re: Programação - Tudo
PostPosted: 04 Mar 2009, 10:33 
Chuck Norris
Chuck Norris
User avatar
Offline

Joined: 14 Jan 2009, 16:00
Posts: 3679
Location: Lisboa
exacto :P


Top
 Profile  
Reply with quote  

Re: Programação - Tudo
PostPosted: 16 Mar 2009, 19:17 
Chuck Norris
Chuck Norris
Offline

Joined: 12 Jan 2009, 00:49
Posts: 2040
Ajuda a quem usa Debian, Ubuntu e derivados: podem instalar e ver se a minha extensão corre, sff? https://addons.mozilla.org/en-US/firefox/addon/9738

É que há um gajo que diz que usa Ubuntu mas aquilo não lhe abre janela nenhuma :(


Top
 Profile  
Reply with quote  

Re: Programação - Tudo
PostPosted: 16 Mar 2009, 20:43 
Chuck Norris
Chuck Norris
Offline

Joined: 14 Jan 2009, 15:35
Posts: 3648
parece estar a funcionar cm deve ser em Ubuntu 8.10. mais logo experimento no 9.04 alpha


Top
 Profile  
Reply with quote  

Re: Programação - Tudo
PostPosted: 16 Mar 2009, 21:09 
Chuck Norris
Chuck Norris
User avatar
Offline

Joined: 13 Jan 2009, 18:37
Posts: 2662
Location: atrás de ti
Aconselhava uma mudança de descrição.

Quote:
This addon allows you to run a command on a web page in a terminal by selecting and right clicking it.


Menos engrish e mais fácil de perceber penso eu.

_________________
Image


Top
 Profile  
Reply with quote  

Re: Programação - Tudo
PostPosted: 17 Mar 2009, 01:01 
Chuck Norris
Chuck Norris
Offline

Joined: 14 Jan 2009, 15:35
Posts: 3648
e tb funciona em Ubuntu 9.04

alguns detalhes sobre o suposto erro?


Top
 Profile  
Reply with quote  

Re: Programação - Tudo
PostPosted: 17 Mar 2009, 10:35 
Chuck Norris
Chuck Norris
Offline

Joined: 12 Jan 2009, 00:49
Posts: 2040
Nada, simplesmente não funciona :| Acho que vou fazer uma versão de debug que verifique se o ficheiro e a variável SHELL existem e mando-lhe para ele testar o_o


Top
 Profile  
Reply with quote  

Re: Programação - Tudo
PostPosted: 19 Mar 2009, 18:59 
Chuck Norris
Chuck Norris
User avatar
Offline

Joined: 13 Jan 2009, 18:37
Posts: 2662
Location: atrás de ti
Quero aprender a fazer aplicações java para telele (nokia, s40), alguém arranja tutoriais?

_________________
Image


Top
 Profile  
Reply with quote  

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 127 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7 ... 13  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Style by phpBB3 styles, zdrowie zdrowie alveo
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group