LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-30-2005, 03:15 PM   #1
Napalm Llama
Member
 
Registered: Nov 2004
Location: Bristol, UK
Distribution: Gentoo 2005.0
Posts: 224

Rep: Reputation: 30
Gaim newlines


Hi there.

Does anybody know if there's a way in Gaim of making the message start on the next line down from your name? Here's what it does at the moment:

(20:43:13) Napalm Llama: This is the message.

And here's what I'd like it to do:

(20:43:13) Napalm Llama:
This is the message.

Fairly simple, but annoying when my name is longer and the first few words of the message get stuck on the name line, while the rest of the message appears where you'd expect it.

(20:43:13) Napalm Llama has a much longer name now: Do you see
the problem? It's very irritating.


Is there a plugin or a hack to change this behaviour?
Thanks.
 
Old 07-02-2005, 06:47 PM   #2
Centinul
Member
 
Registered: Jun 2005
Distribution: Gentoo
Posts: 552

Rep: Reputation: 30
what about pressing "Shift+Enter" before you start typing the message? I think it starts a new line
 
Old 07-02-2005, 07:17 PM   #3
ThorRune
LQ Newbie
 
Registered: Jul 2005
Location: Norway, Nordland, Steigen, Breivika
Distribution: Mandrake Linux 10.1
Posts: 7

Rep: Reputation: 0
I think he wants it to happen automatically, also when other people says things to him without doing that. I don't know any way to do this, but i'd imagine it (From my knowledge of PHP, i know no C++ what-so-ever) not to be much else then adding a /r/n in a syntax somewhere in the source file, and compiling it?
 
Old 07-03-2005, 08:40 AM   #4
Napalm Llama
Member
 
Registered: Nov 2004
Location: Bristol, UK
Distribution: Gentoo 2005.0
Posts: 224

Original Poster
Rep: Reputation: 30
That's what I thought, but the HACKING file in the source package itself admits the code to be a twisted and tangled mess - I did look through the it, but as I recall I couldn't find where to put it either.

C/C++ has a funny sytax that I'm not familiar with, either. I think I was trying to tweak Ctorrent to do something I wanted, but it was all weird - 3 quotes enclosing a string, with one up in parentheses somewhere else...

I'm a PHP guy myself, and it confused the hell out of me.

If there are no plugins to alter the behaviour, do you think I'd have more luck asking this to be moved to the Programming forum?
 
Old 07-03-2005, 09:02 AM   #5
exvor
Senior Member
 
Registered: Jul 2004
Location: Phoenix, Arizona
Distribution: Gentoo, LFS, Debian,Ubuntu
Posts: 1,537

Rep: Reputation: 87
in C and i think in C++ a new line charecter in a text string is the keboard special charecter \n

like this small program

Code:
#include<stdio.h><-- Header file used for input and output

int main ()
{
    printf("Hello linux questions\n");<-- this is the function that creates the text string

return 0; 
}

Last edited by exvor; 07-03-2005 at 09:05 AM.
 
Old 07-04-2005, 02:09 PM   #6
Napalm Llama
Member
 
Registered: Nov 2004
Location: Bristol, UK
Distribution: Gentoo 2005.0
Posts: 224

Original Poster
Rep: Reputation: 30
Kinda like in your sig

Thanks, but I already know about the \n newline special character - I use it in PHP and Javascript. I just need to know where to write it!

Quote:
Originally written by Eric Warmenhoven
A lot of people have tried to hack gaim, but haven't been able to because
the code is just so horrid.
Well, having had another look at the code, it appears that they've cleaned it up somewhat. I decided to track the function calls back to the one that actually deals with writing to the window... and lost the scent in gaim_conversation_write() in conversation.c. I'm in the latest version (1.3.1) - if anybody's any better at C, or knows the Gaim code at all... it'd be really cool if you could give me a point in the right direction?

Please?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Javascript: Converting newlines into actual CRLF scuzzman Programming 2 08-25-2005 11:52 PM
Dos to unix newlines Rotwang Linux - General 3 08-22-2005 01:45 PM
Bash: Supress newlines with \c - Doesn't work stefanlasiewski Programming 5 07-26-2005 01:17 PM
newlines in scrollback buffer - eterm asouldja Debian 0 05-04-2005 06:41 AM
Split a string on newlines (bash) rose_bud4201 Programming 7 04-14-2005 01:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration