Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 9 Mar 1997 23:45:54 +0100
From:      j@uriah.heep.sax.de (J Wunsch)
To:        un_x@hotmail.com (steve  howe)
Cc:        hackers@FreeBSD.ORG
Subject:   Re: profile probs
Message-ID:  <19970309234554.GF64239@uriah.heep.sax.de>
In-Reply-To: <199703071417.GAA09165@f5.hotmail.com>; from  steve  howe on Mar 7, 1997 06:17:33 -0800
References:  <199703071417.GAA09165@f5.hotmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
As  steve  howe wrote:

> 2.1.5 - sh ...
> regarding ~/.profile.  any alias as the 1st non-comment line will
> show up in a following alias command, but will not function, resulting
> in an "alias: not found" error.

I can't reproduce this, so it's probably fixed as a side-effect of
some other change.

>  and secondly, if i use:
> export ENV=~/.shinit INSTEAD OF ENV=~/.shinit; export ENV ...
> ~/.shinit never gets called on any "sh" startups ... ???

Confirmed.  Please type `send-pr', and submit a PR for this.

> lastly, can anyone tell me where to find C functions that will
> allow me to position the cursor on a screen AND change text
> field colors?  something similiar to Borlands "gotoxy()" ???

The curses package is the closest equivalent.  Unlike Borland, it's
terminal independent, thus a little more complex:

j@uriah 194% cat > foo.c 
#include <curses.h>

int
main(void)
{
        initscr();
        move(9, 19);
        addstr("I'm on line 10, column 20.");
        move(LINES - 2, 0);
        addstr("I'm in the line just below the bottom...");
        refresh();
        move(LINES - 1, 0);
        endwin();
}
^D
j@uriah 195% cc foo.c -ltermcap -lcurses
j@uriah 196% ./a.out
...

This should suffice to look it up in the man pages.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19970309234554.GF64239>