Re: unix locate cmd
The file is called xinitrc not .xinitrc /usr/X11R6/lib/X11/xinit/xinitrc if user has no .xinitrc file which would reside in ~ (so it's ~/.xinitrc). See startx(1) - and my system were it works with ~/.xinitrc :) Cheers, Frank To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: xterm and colors
On Sat, Sep 28, 2002 at 12:54:10AM -0500, Bryan Cassidy wrote: How do i set the colors so when I just use ls I get the color directories and the rest of colors? I just want the basic colors that I can get without having to do alot of configuring. Have you set your TERM environment variable to 'xterm-color' ? The way to do this differs depending on the shell you use, if it's bash just type: export TERM=xterm-color if it's csh type: setenv TERM xterm-color (There are more shells, look at the man page of your shell for more details!) Hope that helps, Cheers and Good Morning :) Frank P.S. I have read that in new versions of FreeBSD the TERM variable is set to xterm-color by default, but I have forgotten if this is already done in -stable or if this is done in -current - and I don't know which version of FreeBSD you are running :) To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
centericq and xterm
Hi. Yesterday I posted a message describing a problem with centericq and X (running centericq in an xterm console did not work at my system, because the arrow keys did not work right from the start). Today I was able to solve that problem by changing ESCDELAY=0 to ESCDELAY=1 in conscommon.cc and compile it again. Anyway, I still wonder if anyone has had the same problem and has maybe solved it? Tommorow I will read further in the curses documentation to find out more; maybe there is a better way to tweak it, but maybe I am going in the wrong direction?! Cheers - and good night :) Frank To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: there must be a better way
Did you never consider that FreeBSD is a server system? I use it as a desktop system, I hope that's also ok :) And to the original poster: I have used Windows all my life (ok, it's not that long, because I have just become 22, but in computer-years it's a lot :) and have just started to use FreeBSD two month ago, and I won't deny if someone says it's hard to learn (Unix in general), but if you spend a lot of time reading and learning and practising then you will notice what a great system it is. Also as a desktop system :) Cheers, Frank To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
xterm and centericq
Hi. I have just installed centericq from the ports but when I execute it I am not able to use the arrow keys in the configuration screen. I try to run it under X in a xterm console with TERM=xterm-color (when I am not running X and have TERM=cons25l1 everything works fine). I have read the readme and the FAQ, but haven't found anything - any ideas or hints ? Maybe I have to tweak some X keyboard configurations?! Greets, Frank To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: xterm and centericq
I have just installed centericq from the ports but when I execute it I am not able to use the arrow keys in the configuration screen. I try to run it under X in a xterm console with TERM=xterm-color. One more thing to add: In programs like mutt, slrn and midnight commander the arrow keys work fine. Cheers, Frank P.S. Sorry for reply instead of a new post. To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message
Re: gethostbyname
Anyone have a simple example of how to use this function.. This should work (and is really reduced to a minimum) = struct hostent *hostentry; if ( (hostentry = gethostbyname(localhost)) == NULL) { // Error handling } printf(Name: %s; Alias: %s\n, hostentry-h_name, hostentry-h_aliases[0]); = At my system the output is just: Name: localhost; Alias: (null) Note that gethostbyname tries to get information from the nameserver or /etc/hosts. (I don't know if the order in which these are accessed depends on /etc/host.conf and I also do not know if the lookup in /etc/hosts only occurs if the local name server is not running - it seems so to me, according to gethostbyname(3)) Cheers, Frank -- Be aware that this message has been written by a FreeBSD newbie! Using FreeBSD for approximately 6 weeks and 3 days now :) To Unsubscribe: send mail to [EMAIL PROTECTED] with unsubscribe freebsd-questions in the body of the message