The GNU Readline library is used to prompt the user for textual input at the terminal. It provides features like a history and completion.
This project provides Pascal header translations plus an object-oriented wrapper for convenience. Code examples on the usage are included.
Copyright (C) 2012 Johann Glaser <[email protected]>
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
src/
- Header translations and OOP wrapper.
src/examples/
- Examples for the direct usage of the header translations as well as for the usage of the OOP wrapper. This directory also has a
Makefile
.
$ cd src/examples/ $ make
Simply add the units HistoryOOP
and ReadlineOOP
to the uses-clause
of your program. Then follow src/examples/ootest.pas.
Alternatively, use the common wrapper for Readline and History TCmdLine
in src/cmdline.pas.
This project was compiled with FreePascal 2.6.0 on Linux.
- k7103-usb
- The USB Interface of the Velleman k7103 PC Storage Oscilloscope http://k7103.sourceforge.net/ includes a command line tool to test the hardware and to program the CPLD. This is a bigger usage example which also includes a the TCL scripting language with a Pascal wrapper. See k7103usbtest.pas.
- chll
- The tools for the Design Methodology for Custom Reconfigurable Logic Architectures use Tcl scripts and also provide an interactive command line.