From owner-freebsd-questions Tue Dec 28 21:35:47 1999 Delivered-To: freebsd-questions@freebsd.org Received: from smtp2.cybersurf.net (smtp2.cybersurf.net [209.197.145.112]) by hub.freebsd.org (Postfix) with ESMTP id 3EA0815682 for ; Tue, 28 Dec 1999 21:35:44 -0800 (PST) (envelope-from 01031149@3web.net) Received: from webserver ([209.197.158.61]) by smtp2.cybersurf.net (Netscape Messaging Server 4.05) with SMTP id FNHMBR00.N0U for ; Tue, 28 Dec 1999 22:38:15 -0700 Message-ID: <001a01bf51c7$35e1de80$3d9ec5d1@webserver> From: "Duke Normandin" <01031149@3web.net> To: Subject: Re: cons25 && (midc, /stand/sysinstall, etc) Date: Tue, 28 Dec 1999 22:26:12 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 4.72.3612.1700 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Tried your sh script below... not much luck! It rendered the prompt in my chosen color, but that's it. A curious observation though, midc doesn't trash the screen border that I have set up using vidcontrol; only the fg and bg colors. Did your script work on your system? BTW, would the script be identical in csh? Thanks. -duke -----Original Message----- From: Oliver Fromme To: freebsd-questions@FreeBSD.ORG Date: Monday, December 27, 1999 9:01 AM Subject: Re: cons25 && (midc, /stand/sysinstall, etc) >Duke Normandin wrote in list.freebsd-questions: > > From: Oliver Fromme > > >#!/bin/sh - > > >midc "$@" > > >vidcontrol ... [whatever] > > > > > >Save the above as /usr/local/bin/mc, chmod 755 it, and you > > >should be done. > > > > Thanks for the script example! What does the "$@" do/mean? > >It will preserve all command-line options and arguments >(including any whitespace), and forward them to midc as-is. >See the explanation of ``@'' in the section "Special >Parameters" in the manpage of sh. > >Regards > Oliver > >-- >Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany >(Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de) > >"In jedem Stück Kohle wartet ein Diamant auf seine Geburt" > (Terry Pratchett) > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message