Subject: Re: Better term drivers...
To: Paul Goyette <paul@pgoyette.bdt.com>
From: The Great Mr. Kurtz [David A. Gatwood] <davagatw@mars.utm.edu>
List: port-mac68k
Date: 05/19/1996 19:36:19
On Sun, 19 May 1996, Paul Goyette wrote:

> Try `<esc>[0m' which resets all video modes, including blink, bold,
> underline, and reverse.

This could probably be done more simply if I knew how to send escape via
the echo command, but otherwise, create a file called normal.c

------- cut here -------

#include <stdio.h>
main(){
char a[2];
a[0]=27;
a[1]=0;
printf("%s[0m",a);
exit(0);
}

------- cut here -------

then compile (gcc normal.c -o normal) and insert one line into your
.profile file:

PROMPT_COMMAND="/insert_path_here/normal"

replacing, of course, insert_path_here with the path for the normal video
program.  The little snippet of c code (if I didn't make any typos :-)
will automatically be executed by bash before every shell prompt.

Hope that helps,

 /---------------------------------------------------------------------\
|David A. Gatwood             And Richard Cory, one calm summer night,  |
|davagatw@mars              Went home and put a bullet through his head.|
|dgatwood@nyx.cs.du.edu              --Edwin Arlington Robinson         |
|http://mars.utm.edu/~davagatw -or- http://nox.cs.du.edu:8001/~dgatwood |
 \---------------------------------------------------------------------/