39 "amath features a case sensitive command line interface, internal IEEE 754" NEWLINE 40 "calculations with 15 significant digits, calculations with real and complex" NEWLINE 41 "numbers, variables and user defined functions, logarithmic and exponential" NEWLINE 42 "functions, trigonometric and hyperbolic function and selected mathematical" NEWLINE 43 "constants and rounding functions." NEWLINE;
45 "usage: amath [ --noansi ] [ --shell | expression ]" NEWLINE;
47 "Copyright (c) 2014-2018 Carsten Sonne Larsen <cs@innolan.net>";
49 "Copyright (c) 2007 The NetBSD Foundation, Inc." NEWLINE 50 "Copyright (c) 1990, 1993 The Regents of the University of California." NEWLINE 52 "This code is derived from software written by Stephen L. Moshier." NEWLINE 53 "It is redistributed by the NetBSD Foundation by permission of the author." NEWLINE NEWLINE 54 "This code is derived from software contributed to Berkeley by" NEWLINE 56 "Redistribution and use in source and binary forms, with or without" NEWLINE 57 "modification, are permitted provided that the following conditions are met:" NEWLINE NEWLINE 58 "* Redistributions of source code must retain the above copyright notice, this" NEWLINE 59 " list of conditions and the following disclaimer." NEWLINE NEWLINE 60 "* Redistributions in binary form must reproduce the above copyright notice," NEWLINE 61 " this list of conditions and the following disclaimer in the documentation" NEWLINE 62 " and/or other materials provided with the distribution." NEWLINE NEWLINE 63 "THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"" NEWLINE 64 "AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE" NEWLINE 65 "IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE" NEWLINE 66 "DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE" NEWLINE 67 "FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL" NEWLINE 68 "DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR" NEWLINE 69 "SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER" NEWLINE 70 "CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY," NEWLINE 71 "OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE" NEWLINE 72 "OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE." NEWLINE NEWLINE;
73 static const char *
footer =
"Specific details should be found in the source files.";
119 static const char *normal =
"\x1B[0m";
128 static const char *bold =
"\x1B[1m";
137 static const char *italics =
"\x1B[3m";
146 static const char *clear =
"\x1B[1;1H\x1B[J";
152 static const char *msg =
"Screen can only be cleared in ANSI mode.";
static const char * license
ConsoleBase(const char *prompt)
Abstract base class encapsulating console logic.
const char * GetVersionText()
virtual bool SetAnsiMode(bool value)
static const char * about
virtual void ResetConsole()
static const char * copyright
virtual void WriteString(const char *string)=0
static const char * compiler
static const char * version
const char * GetCompilerText()
static const char * footer
virtual void SetPrompt(const char *string)
virtual void ShowLicense()
virtual void StartMessage()
unsigned int AllocAndCopy(char **destination, const char *source)
Allocate memory and copy a string into the array.
virtual void ShowVersion()